6.0.0-git
2018-12-15

[#14755] FTP backend unable to open/download file
Summary FTP backend unable to open/download file
Queue Gollem
Queue Version 3.0.12
Type Bug
State Unconfirmed
Priority 1. Low
Owners
Requester philipp.faeustlin (at) uni-hohenheim (dot) de
Created 2017-12-21 (359 days ago)
Due
Updated 2017-12-21 (359 days ago)
Assigned
Resolved
Milestone
Patch Yes

History
2017-12-21 15:24:07 philipp (dot) faeustlin (at) uni-hohenheim (dot) de Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ FTP backend unable to open/download file
Queue ⇒ Gollem
Milestone ⇒
Patch ⇒ Yes
New Attachment: Ftp.php.patch Download
Reply to this comment
The following error is logged:
HORDE [gollem] Unable to open VFS file. [pid 14348 on line 207 of 
"/usr/share/pear/Horde/Vfs/Ftp.php"]

The source of this problem is when the password contains the "/" 
character. If this happens the url passed to fopen will fail.

Urlencoding of the password will solve the issue. I have added a patch 
for this.

To prevent further problems with special characters, it would probably 
be wise to urlencode further parameters of the url, especially the 
username which could contain @ for example.

I can't test this, therefor it is only a proposal.

Saved Queries