Hello again,

I was trying to submit files to a new record (using a GR-translated version of Upload_Files.py) and I stumbled upon this issue: Say I submit a 'main' file named "this is a text.txt" (no problem at all) and then I want to submit the file in another format (let's say) "this is a text.dat", bibdocfile gives me the following exception:
--------
File "/opt/cds-invenio/lib/python/invenio/websubmit_functions/Upload_Files_GR.py", line 92, in Upload_Files_GR
    bibdoc = bibrecdocs.add_new_format(fullpath, mybibdocname)

File "/usr/lib/python2.4/site-packages/invenio/bibdocfile.py", line 540, in add_new_format
    bibdoc = self.get_bibdoc(docname=docname)

File "/usr/lib/python2.4/site-packages/invenio/bibdocfile.py", line 454, in get_bibdoc
    raise InvenioWebSubmitFileError, "Recid '%s' is not connected with " \

InvenioWebSubmitFileError: Recid '106254' is not connected with docname 'This'
---------

From what I see, probably decompose_file doesn't work properly with filenames that contain spaces. In a windows environment it is not uncommon for users to have filenames with spaces (although I personally dislike them a lot!)... Can you confirm/reproduce it? Do you think it is worth fixing?

FYI, I'm using the latest bibdocfile (from git), but I've tried it also with the 'official 0.99.1' version and got the same error!


Reply via email to