6.0.0-beta1
9/19/25

[#4750] FTP driver doesn't support user groups with spaces
Summary FTP driver doesn't support user groups with spaces
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State No Feedback
Priority 2. Medium
Owners
Requester jan (at) horde (dot) org
Created 12/07/2006 (6861 days ago)
Due
Updated 07/09/2007 (6647 days ago)
Assigned 06/19/2007 (6667 days ago)
Resolved 07/09/2007 (6647 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/09/2007 08:06:54 PM Chuck Hagenbuch Comment #3
Taken from Horde DevelopersHorde Developers
State ⇒ No Feedback
Reply to this comment
Going to have to stall this until further feedback.
06/19/2007 04:09:39 AM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Can you give me a couple of examples of full ftp_rawlist lines like 
this, ideally including at least one where the filename has spaces in 
it also?



Also, is this only with a windows ftp server, or could this show up 
connecting to a random linux server that had files mounted over samba 
(for instance)? Basically I'm wondering if we can fix this with a new 
'lsformat' option or if we just have to figure it out blind.
12/07/2006 02:47:27 PM Jan Schneider Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ FTP driver doesn't support user groups with spaces
Queue ⇒ Horde Framework Packages
Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
Reply to this comment
Moved from http://pear.php.net/bugs/bug.php?id=9562&edit=1



Description:

------------

When trying to use Gollem for a web file manager, I ran across

the problem of it showing the "filename" as a huge output of



ls -l data. After reviewing the array items, I found out that

$item[4] was becoming the second word in the user group.



Array ( [0] => -rw-r--r-- [1] => 1 [2] => mstanisl [3] =>

domain [4] => u [5] => 407 [6] => Dec [7] => 6 [8] =>

11:22

[9] => cot_access.rtf )



Once I concatenated the usergroup item 3 + item 4, and

incremented each remaining array item value by 1, the software

outputted as expected. This is a cheap workaround for me, but

the preg expression or some conditional statements will be

needed to actually fix it.



Test script:

---------------

Gollem with FTP backend having user groups with multiple words. (in

example, "domain users" when using winbind PAM authentication

with FTP)



Expected result:

----------------

The filename is "1 mstanisl domain u 407 Dec 6 11:22

cot_access.rtf"



Actual result:

--------------

The filename should be "cot_access.rtf".

Saved Queries