#1148 1.4 - File upload screen - what is the format of the link? error

1.4
closed-fixed
Chris Travers
None
9
2014-06-06
2014-05-23
Pongracz Istvan
No

I tried to save a link, like this: http://www.domain.tld/subdir/picture.jpg
file:///home/fit/Képek/comics/675899.114829.jpg
/home/fit/Képek/comics/675899.114829.jpg
but I got the following error (in general, without http I also got the error):

Attribute (file_name) does not pass the type constraint because: Validation failed for 'Str' with value undef at accessor LedgerSMB::File::file_name (defined at LedgerSMB/File.pm line 75) line 4
LedgerSMB::File::file_name('LedgerSMB::File::Part=HASH(0x577e460)', undef) called at LedgerSMB/Scripts/file.pm line 100 LedgerSMB::Scripts::file::attach_file('LedgerSMB=HASH(0x39e0368)') called at lsmb-request.pl line 108 LedgerSMB::Handler::ANON() called at /usr/share/perl5/Try/Tiny.pm line 76 eval {...} called at /usr/share/perl5/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x27f3418)', 'Try::Tiny::Catch=REF(0x4a29330)') called at lsmb-request.pl line 120 LedgerSMB::Handler::call_script('file.pl', 'LedgerSMB=HASH(0x39e0368)') called at lsmb-request.pl line 84 require lsmb-request.pl called at /opt/dev/stock14/file.pl line 8

Discussion

  • Chris Travers
    Chris Travers
    2014-05-23

    • Priority: 5 --> 9
     
  • Chris Travers
    Chris Travers
    2014-06-06

    • status: open --> closed-fixed
    • assigned_to: Chris Travers