Hello everyone,
While experimenting with Upload_Files response element (following
help/admin/websubmit-admin-guide#5.4), i realised that while the default
response element displays properly in a form (ie DEMOART), the following
errors are produced in the apache log and thus the 'Upload' button is
not functional:
=========
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/webinterface_handler_wsgi.py",
line 462, in application
[Thu Sep 06 13:21:39 2012] [error] ret = invenio_handler(req)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/webinterface_handler.py",
line 362, in _profiler
[Thu Sep 06 13:21:39 2012] [error] return _handler(req)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/webinterface_handler.py",
line 425, in _handler
[Thu Sep 06 13:21:39 2012] [error] return root._traverse(req, path,
False, guest_p)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/webinterface_handler.py",
line 252, in _traverse
[Thu Sep 06 13:21:39 2012] [error] result = _check_result(req,
obj(req, form))
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/websubmit_webinterface.py",
line 1390, in index
[Thu Sep 06 13:21:39 2012] [error] return _index(req, **args)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/websubmit_webinterface.py",
line 1386, in _index
[Thu Sep 06 13:21:39 2012] [error] return interface(req, c, ln,
doctype, act, startPg, access, mainmenu, fromdir, nextPg, nbPg, curpage)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/websubmit_engine.py", line
533, in interface
[Thu Sep 06 13:21:39 2012] [error] exec co in the_globals
[Thu Sep 06 13:21:39 2012] [error] File "<string>", line 71, in <module>
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/websubmit_managedocfiles.py", line
514, in create_file_upload_interface
[Thu Sep 06 13:21:39 2012] [error] bibrecdocs = BibRecDocs(recid)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/bibdocfile.py", line 570, in
__init__
[Thu Sep 06 13:21:39 2012] [error] self.build_bibdoc_list()
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/bibdocfile.py", line 685, in
build_bibdoc_list
[Thu Sep 06 13:21:39 2012] [error] status<>'DELETED' ORDER BY
docname ASC""", (self.id,))
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/dbquery.py", line 206, in
run_sql
[Thu Sep 06 13:21:39 2012] [error] rc = cur.execute(sql, param)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/MySQLdb/cursors.py", line 175, in
execute
[Thu Sep 06 13:21:39 2012] [error] if not self._defer_warnings:
self._warning_check()
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/MySQLdb/cursors.py", line 89, in
_warning_check
[Thu Sep 06 13:21:39 2012] [error] warn(w[-1], self.Warning, 3)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/errorlib.py", line 511, in fun
[Thu Sep 06 13:21:39 2012] [error] traceback.print_stack()
[Thu Sep 06 13:21:39 2012] [error]
/usr/lib64/python2.6/site-packages/MySQLdb/cursors.py:175: Warning: Out
of range value for column 'id_bibrec' at row 1
[Thu Sep 06 13:21:39 2012] [error] if not self._defer_warnings:
self._warning_check()
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/webinterface_handler_wsgi.py",
line 462, in application
[Thu Sep 06 13:21:39 2012] [error] ret = invenio_handler(req)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/webinterface_handler.py",
line 362, in _profiler
[Thu Sep 06 13:21:39 2012] [error] return _handler(req)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/webinterface_handler.py",
line 425, in _handler
[Thu Sep 06 13:21:39 2012] [error] return root._traverse(req, path,
False, guest_p)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/webinterface_handler.py",
line 252, in _traverse
[Thu Sep 06 13:21:39 2012] [error] result = _check_result(req,
obj(req, form))
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/websubmit_webinterface.py",
line 1390, in index
[Thu Sep 06 13:21:39 2012] [error] return _index(req, **args)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/websubmit_webinterface.py",
line 1386, in _index
[Thu Sep 06 13:21:39 2012] [error] return interface(req, c, ln,
doctype, act, startPg, access, mainmenu, fromdir, nextPg, nbPg, curpage)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/websubmit_engine.py", line
533, in interface
[Thu Sep 06 13:21:39 2012] [error] exec co in the_globals
[Thu Sep 06 13:21:39 2012] [error] File "<string>", line 71, in <module>
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/websubmit_managedocfiles.py", line
758, in create_file_upload_interface
[Thu Sep 06 13:21:39 2012] [error] bibrecdocs = BibRecDocs(recid)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/bibdocfile.py", line 570, in
__init__
[Thu Sep 06 13:21:39 2012] [error] self.build_bibdoc_list()
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/bibdocfile.py", line 685, in
build_bibdoc_list
[Thu Sep 06 13:21:39 2012] [error] status<>'DELETED' ORDER BY
docname ASC""", (self.id,))
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/dbquery.py", line 206, in
run_sql
[Thu Sep 06 13:21:39 2012] [error] rc = cur.execute(sql, param)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/MySQLdb/cursors.py", line 175, in
execute
[Thu Sep 06 13:21:39 2012] [error] if not self._defer_warnings:
self._warning_check()
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/MySQLdb/cursors.py", line 89, in
_warning_check
[Thu Sep 06 13:21:39 2012] [error] warn(w[-1], self.Warning, 3)
[Thu Sep 06 13:21:39 2012] [error] File
"/usr/lib64/python2.6/site-packages/invenio/errorlib.py", line 511, in fun
[Thu Sep 06 13:21:39 2012] [error] traceback.print_stack()
=========
Is it reproducible in a stock master branch or did I break something?
Best regards,
Theodoros