On Thu, 25 Jun 2009, Theodoropoulos Theodoros wrote:
>> See also CFG_BIBUPLOAD_FFT_ALLOWED_LOCAL_PATHS in invenio.conf. Do
>> you have /cds allowed in your CFG_BIBUPLOAD_FFT_ALLOWED_LOCAL_PATHS?
>>
>> (This variable exists so that someone does not mistakenly upload
>> files from `forbidden' places.)
>
> THAT'S IT!!! And I was wondering why I could upload records from /tmp
> but not from /cds no matter what permission I set on /cds...
We should print more explicit error message indeed. Currently, it says:
/cds/ata/ata-2005-750.pdf is not a correct url:
/cds/ata/ata-2005-750.pdf is not in one of the allowed paths.
Sam, since I'll be merging your new bibdocfile branch soon, I won't do
it in git/master now, but please add this small amendment to your
branch, so that we don't forget:
raise StandardError, "%s is not in one of the allowed paths. " \
"See CFG_BIBUPLOAD_FFT_ALLOWED_LOCAL_PATHS " \
"in invenio.conf." % path
Best regards
--
Tibor Simko ** CERN Document Server ** <http://cds.cern.ch/>