Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LRSignature 0.1.10 fails to verify LR document obtained via Obtain #5

Open
damonregan opened this issue Feb 14, 2012 · 1 comment
Open

Comments

@damonregan
Copy link

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}]}

@jimklo
Copy link
Owner

jimklo commented Feb 14, 2012

See LearningRegistry/LearningRegistry#186 for additional discussion

@jimklo jimklo mentioned this issue Feb 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants