-
Notifications
You must be signed in to change notification settings - Fork 4
Description
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}]}