Hi Theodoros,

This was fixed in the following commit, yet to be merged, you can apply the 
patch.

http://invenio-software.org/repo/invenio-inspire-ops/commit/?h=prod&id=ef24cf657ebc4a18d8a14074105e10b01a4b05c0

Cheers

On Nov 11, 2013, at 2:48 PM, Theodoros Theodoropoulos 
<[email protected]<mailto:[email protected]>> wrote:

In bibedit, i tried to revert back a DELETED record and got the following error:

2013-11-11 15:07:57 --> Task #131 started.
2013-11-11 15:07:57 --> Input file 
'/opt/invenio/var/tmp-shared/bibedit-cache/bibedit_record_2_1.xml', input mode 
'replace'.
2013-11-11 15:07:57 -->      -ERROR: Missing 005 -
2013-11-11 15:07:57 --> Traceback (most recent call last):
 File "/usr/lib64/python2.6/site-packages/invenio/bibtask.py", line 984, in 
_task_run
   if callable(task_run_fnc) and task_run_fnc():
 File "/usr/lib64/python2.6/site-packages/invenio/bibupload.py", line 2912, in 
task_run_core
   results_for_callback=results_for_callback)
 File "/usr/lib64/python2.6/site-packages/invenio/bibupload.py", line 2837, in 
bibupload_records
   tmp_vers = tmp_vers)
 File "/usr/lib64/python2.6/site-packages/invenio/bibupload.py", line 332, in 
bibupload
   submit_ticket_for_holding_pen(rec_id, err, "Missing 005. Inserting record 
into holding pen.")
 File "/usr/lib64/python2.6/site-packages/invenio/bibupload.py", line 741, in 
submit_ticket_for_holding_pen
   bibcatalog_system.ticket_submit(subject="%s: %s by %s" % (msg, rec_id, 
user), recordid=rec_id, text=text, 
queue=CFG_BIBUPLOAD_CONFLICTING_REVISION_TICKET_QUEUE, owner=uid)
 File "/usr/lib64/python2.6/site-packages/invenio/bibcatalog_system_email.py", 
line 88, in ticket_submit
   ownerset = " owner:" + escape_shell_arg(owner) + '\n'
 File "/usr/lib64/python2.6/site-packages/invenio/shellutils.py", line 298, in 
escape_shell_arg
   raise TypeError(msg)
TypeError: ERROR: escape_shell_arg() expected string argument but got '1L' of 
type '<type 'long'>'.
2013-11-11 15:07:57 --> Task #131 finished. [CERROR]


FYI, /opt/invenio/var/tmp-shared/bibedit-cache/bibedit_record_2_1.xml DOES have 
a 005 field and is:
<controlfield tag="005">20130514094613.0</controlfield>

Any ideas?

Cheers,
Theodoros

Reply via email to