Bug #2727
submission import fails without forms.json
Status: | Feedback | Start date: | 12/07/2013 | |
---|---|---|---|---|
Priority: | Urgent | Due date: | ||
Assignee: | harlo | % Done: | 0% | |
Category: | - | |||
Target version: | InformaCam - SERVER v2 | |||
Component: |
Description
the submission process should degrade gracefully is forms.json is not present
also, we need documentation no what forms.json is and how to get it
History
#1 Updated by harlo about 4 years ago
Can you point me to a stack trace for better debugging?
#2 Updated by harlo about 4 years ago
- Status changed from New to In Progress
#3 Updated by n8fr8 about 4 years ago
['/home/n8fr8/dev/repos/Unveillance/packages/j3m/j3mparser.out', '/home/n8fr8/dev/repos/Unveillance/logs/submissions/ddd683235e1cb330d785a3170380a336/testagain.jpg']
parsing j3m data
DOC TYPE: application/x-gzip
THIS WAS ALREADY A GZIP: /home/n8fr8/dev/repos/Unveillance/logs/submissions/ddd683235e1cb330d785a3170380a336/testagain.txt.unb64
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in bootstrap_inner
self.run()
File "/home/n8fr8/dev/repos/Unveillance/scripts/py/InformaCamUtils/j3mifier.py", line 30, in run
ok = self.getImageMetadata()
File "/home/n8fr8/dev/repos/Unveillance/scripts/py/InformaCamUtils/j3mifier.py", line 78, in getImageMetadata
if self.getJ3MMetadata():
File "/home/n8fr8/dev/repos/Unveillance/scripts/py/InformaCamUtils/j3mifier.py", line 233, in getJ3MMetadata
j3m_asset = J3M
File "/home/n8fr8/dev/repos/Unveillance/scripts/py/InformaCamModels/j3m.py", line 18, in __init
inflate = self.massageData(data, path_to_j3m)
File "/home/n8fr8/dev/repos/Unveillance/scripts/py/InformaCamModels/j3m.py", line 86, in massageData
f = open(os.path.join(forms_root, "forms.json"), 'rb')
IOError: [Errno 2] No such file or directory: '/home/n8fr8/dev/repos/Unveillance/forms/forms.json'
#4 Updated by harlo about 4 years ago
- Status changed from In Progress to Feedback