Public bug reported:

Because of the wrong parsing Apache will give an error like:
NT_STATUS_OBJECT_NAME_INVALID opening remote file \\Foldername/Filename.txt
while the actual URL that should be retrieved is:
\\hostname\Sharename\TopFolder\Foldername\Filename.txt

The error can be resolved by changing in the file /usr/share/perl5/smb2www.pm 
and in /usr/lib/cgi-bin/samba/smbfile.pl
$file =~ s/^(.*)\/([^\/]*)$/$1$2/ ;
to
$file =~ s/^(.*)(\/[^\/]*)$/$1$2/ ;

(and also it is useful to afterwards change all the forward slashes of the 
directories to backslashes to prevent other irregular problems:
$file =~ s/\//\\/g ;
)

** Affects: smb2www (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- smb2www parses download links sometimes wrong (especially with deeper trees)
+ smb2www parses download links wrong (especially with deeper trees)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/871884

Title:
  smb2www parses download links wrong (especially with deeper trees)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/smb2www/+bug/871884/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to