Quando accedo come utente "ricevente" per visualizzare una segnalazione e provo ad esportarne il contenuto con l'apposito bottone, ricevo un "internal server error 500".
Di seguito il dettaglio dell'errore che trovo sull'owb.log:
File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File "/usr/local/owb/backen
d/lib/python2.7/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/handlers/export.py", line 76, in post
tip_export = yield get_tip_export(self.current_user.user_id, rtip_id, self.request.language)
File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/python/threadpool.py", line 250, in inContext
result = inContext.theWork()
File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/python/threadpool.py", line 266, in
inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/python/context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/python/context.py", line 85, in callWithContext
return func(*args,**kw)
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/orm.py", line 125, in _wrap
result = function(self.store, *args, **kwargs)
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/handlers/export.py", line 47, in get_tip_export
export_template = Templating().format_template(export_dict['notification']['export_template'], export_dict).encode('utf-8')
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 419, in format_template
variable_content = getattr(keyword_converter, kw[1:-1])()
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 295, in QuestionnaireAnswers
return dump_questionnaire_answers(self.data['tip']['questionnaire'], self.data['tip']['answers'])
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 154, in dump_questionnaire_answers
output = dump_fields(output, step['children'], answers, 1) +'\n'
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 133, in dump_fields
output = dump_field_entry(output, field, entries[0], indent_n + 1)
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 107, in dump_field_entry
output = dump_fields(output, field['children'], entry, indent_n)
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 133, in dump_fields
output = dump_field_entry(output, field, entries[0], indent_n + 1)
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 102, in dump_field_entry
output += indent(indent_n) + ISO8601_to_pretty_str(entry.get('value', '')) + '\n'
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/utility.py", line 372, in ISO8601_to_pretty_str
date = datetime(year=int(isodate[0:4]),
ValueError: invalid literal for int() with base 10: ''
Quando accedo come utente "ricevente" per visualizzare una segnalazione e provo ad esportarne il contenuto con l'apposito bottone, ricevo un "internal server error 500". Di seguito il dettaglio dell'errore che trovo sull'owb.log:
ValueError Inappropriate argument value (of correct type). Traceback (most recent call last):
File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks result = result.throwExceptionIntoGenerator(g)
File "/usr/local/owb/backen
d/lib/python2.7/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator return g.throw(self.type, self.value, self.tb)
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/handlers/export.py", line 76, in post tip_export = yield get_tip_export(self.current_user.user_id, rtip_id, self.request.language)
File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/python/threadpool.py", line 250, in inContext result = inContext.theWork()
File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/python/threadpool.py", line 266, in
inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/python/context.py", line 122, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/owb/backend/lib/python2.7/site-packages/twisted/python/context.py", line 85, in callWithContext return func(*args,**kw)
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/orm.py", line 125, in _wrap result = function(self.store, *args, **kwargs)
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/handlers/export.py", line 47, in get_tip_export export_template = Templating().format_template(export_dict['notification']['export_template'], export_dict).encode('utf-8')
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 419, in format_template variable_content = getattr(keyword_converter, kw[1:-1])()
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 295, in QuestionnaireAnswers return dump_questionnaire_answers(self.data['tip']['questionnaire'], self.data['tip']['answers'])
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 154, in dump_questionnaire_answers output = dump_fields(output, step['children'], answers, 1) +'\n'
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 133, in dump_fields output = dump_field_entry(output, field, entries[0], indent_n + 1)
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 107, in dump_field_entry output = dump_fields(output, field['children'], entry, indent_n)
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 133, in dump_fields output = dump_field_entry(output, field, entries[0], indent_n + 1)
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/templating.py", line 102, in dump_field_entry output += indent(indent_n) + ISO8601_to_pretty_str(entry.get('value', '')) + '\n'
File "/usr/local/owb/backend/lib/python2.7/site-packages/globaleaks/utils/utility.py", line 372, in ISO8601_to_pretty_str date = datetime(year=int(isodate[0:4]),
ValueError: invalid literal for int() with base 10: ''