Code Monkey home page Code Monkey logo

lrsignature's Issues

verify on Windows


This works on Mac/Linux:

cat test.download.json | python -m LRSignature.cmd verify


These do not seem to work on Windows. Command line errors:

type test.download.json | python -m LRSignature.cmd verify --gnupghome "C:\path\to\my\keys"

type test.download.json | python -m LRSignature.cmd verify --gnupghome "C:\path\to\my\keys" --gpgbin "C:\path\to\my\gpg.exe"

LRSignature 0.1.10 fails to verify LR document obtained via Obtain

I upgraded LRSignature to version 0.1.10 using

pip install --upgrade LRSignature

per guidance that 0.1.10 includes support for harvested json.

Indeed, harvested json now verifies, but surprisingly obtained json no longer verifies. I validated that the obtained json is valid json data. Here is a gist for the obtained json that fails to verify: https://gist.github.com/1829042

I'm using 64-bit windows 7 with python 2.7.2.

To reproduce:

curl -o harvested.json "http://sandbox.learningregistry.org/harvest/getrecord?request_ID=77d1e7a401da4dd7b00806d37ac7d81a&by_doc_ID=true"

curl -o obtained.json "http://sandbox.learningregistry.org/obtain?request_id=77d1e7a401da4dd7b00806d37ac7d81a&by_doc_ID=T"

type obtained.json | python -m LRSignature.cmd verify --gnupghome "C:/Users/x/AppData/Roaming/gnupg/"
type harvested.json | python -m LRSignature.cmd verify --gnupghome "C:/Users/x/AppData/Roaming/gnupg/"

output:

C:\Development\verify_analysis>type obtained.json | python -m LRSignature.cmd verify --gnupghome "C:/Users/548580/AppData/Roaming/gnupg/"

{"results": [{"doc_ID": "77d1e7a401da4dd7b00806d37ac7d81a", "verified": null}]}

C:\Development\verify_analysis>type harvested.json | python -m LRSignature.cmd verify --gnupghome "C:/Users/548580/AppData/Roaming/gnupg/"

{"results": [{"doc_ID": "77d1e7a401da4dd7b00806d37ac7d81a", "resource_locator":
"http://www.khanacademy.org/video/subtracting--fractions?topic=developmental-math-1", "verified": true}]}

--gpgbin argument on Windows

When I try to use --gpgbin I rec'd command line errors if the value for --gpgbin contains spaces in the path.

So, if I submit:

--gpgbin "C:\Program Files (x86)\foo\bar"

The command line error indicates that "C:\Program" is invalid as it has truncated the value at the first space.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.