[Tickets #11770] Cannot download files with spaces using smb backend

bugs at horde.org bugs at horde.org
Wed Nov 28 01:08:37 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11770
------------------------------------------------------------------------------
  Ticket             | 11770
  Created By         | max at mxnet.co.nz
  Summary            | Cannot download files with spaces using smb backend
  Queue              | Gollem
  Version            | 3.0.0RC1
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


max at mxnet.co.nz (2012-11-28 01:08) wrote:

When I try to download a file who's name includes a space with gollem  
using the smb backend I get this error

A fatal error has occurred
1. Horde_Registry->callAppMethod()  
/var/www/horde/services/download/index.php:33
2. call_user_func_array() /usr/share/php/Horde/Registry.php:1139
3. Gollem_Application->download()
4. Horde_Vfs_Smb->readStream() /var/www/horde/gollem/lib/Application.php:316
5. Horde_Vfs_Smb->readFile() /usr/share/php/Horde/Vfs/Smb.php:133
6. Horde_Vfs_Smb->_command() /usr/share/php/Horde/Vfs/Smb.php:113
7. Horde_Vfs_Smb->_execute() /usr/share/php/Horde/Vfs/Smb.php:603

In this case, I'm downloading a file called "test space.jpg"

The url reads:
https://hordeaddress/services/download/?app=gollem&dir=%2F&driver=smb&fn=%2Ftest%2520space.xlsx

The filename in the address looks wrong. it should end with:
"fn=%2Ftest%20space.xlsx"
instead of
"fn=%2Ftest%2520space.xlsx"

If I edit the url and remove the "52" (I don't know where that came  
from) and hit enter, the browser immediately downloads the file.






More information about the bugs mailing list