This is an automated notification sent by LCG Savannah.
It relates to:
                bugs #54847, project CDS Invenio

==============================================================================
 OVERVIEW of bugs #54847:
==============================================================================

URL:
  <http://savannah.cern.ch/bugs/?54847>

                 Summary: Bibupload crasches when wrong input prrovided
                 Project: CDS Invenio
            Submitted by: piotr
            Submitted on: 2009-08-26 11:47
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________


If a wrong input file is provided, that might be a result of the wrong choice
in the Bibharvest admin interface, bibupload task fails ( a Python error)
instead of writing some meaningful message to the error log file.

Example:

User configures the Harvesting from arXiv. The processing mode is set to
harvest-upload.
The oaiharvest task downloads the recods that are in the OAI format ( not
accepted by the bibupload ).
Bibupload runs and fails without any meaningful message for the user. Only
the intervention of the system administrator having access to the logs can
unveil the reason of the crash. If user does not guess what went wrong,
he(she) is not provided with any meaningful message.



---> maybe an interface allowing to view recent bibupload crashes should be
provided ? (if not present yet)




the Python exception ebtained:

2009-08-26 11:46:04 -> AttributeError: 'NoneType' object has no attribute
'get'
No client information available
Forced traceback (most recent call last):
  File "/opt/cds-invenio/bin/bibupload", line 55, in ?
    main()
  File "/usr/lib64/python2.3/site-packages/invenio/bibupload.py", line 1820,
in main
    task_run_fnc=task_run_core)
  File "/usr/lib64/python2.3/site-packages/invenio/bibtask.py", line 289, in
task_init
    ret = _task_run(task_run_fnc)
Traceback (most recent call last):
  File "/usr/lib64/python2.3/site-packages/invenio/bibtask.py", line 755, in
_task_run
    if callable(task_run_fnc) and task_run_fnc():
  File "/usr/lib64/python2.3/site-packages/invenio/bibupload.py", line 1969,
in task_run_core
    oai_rec_id = record_id)
  File "/usr/lib64/python2.3/site-packages/invenio/bibupload.py", line 169,
in bibupload
    rec_id = retrieve_rec_id(record, opt_mode)
  File "/usr/lib64/python2.3/site-packages/invenio/bibupload.py", line 652,
in retrieve_rec_id
    CFG_BIBUPLOAD_EXTERNAL_OAIID_TAG[4:5] != "_" and \
  File "/usr/lib64/python2.3/site-packages/invenio/bibrecord.py", line 213,
in record_get_field_instances
    for possible_field_instance in rec.get(tag, []):
AttributeError: 'NoneType' object has no attribute 'get'




    _______________________________________________________

Carbon-Copy List:

CC Address                          | Comment
------------------------------------+-----------------------------
5686                                | -SUB-




==============================================================================

This item URL is:
  <http://savannah.cern.ch/bugs/?54847>

_______________________________________________
  Message sent via/by LCG Savannah
  http://savannah.cern.ch/

Reply via email to