[Tickets #8315] VFS_smb.php Directory Listing broken
bugs at horde.org
bugs at horde.org
Fri May 29 14:41:32 UTC 2009
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/8315
------------------------------------------------------------------------------
Ticket | 8315
Created By | herde at tu-harburg.de
Summary | VFS_smb.php Directory Listing broken
Queue | Gollem
Version | 1.1
Type | Bug
State | Unconfirmed
Priority | 2. Medium
Milestone |
Patch |
Owners |
+New Attachment | test.txt
------------------------------------------------------------------------------
herde at tu-harburg.de (2009-05-29 10:41) wrote:
Horde 3.3.4 with Gollem H3 (1.1) on RHEL 5.3 (SAMBA 3.0.33-3.7.el5) -
we found out that
VFS_smb.php (v 1.1.2.2) line 385 ff of function listFolder()
// Split into columns at every six spaces
$split1 = preg_split('/\s{6,}/', trim($res[$r]));
// If the file name isn't . or ..
turns out a broken directory listing if there is a long filename in
conjunction with more than one Attribute setted (i.e. DA) because
there are less than 6 expected spaces between the name of the item and
the attribute list. the attribute list is more the one entry in this
case. Only if we hafe 6 or more spaces in between here the regex will
match correctly.
Example output of manualy listing of smbclient - see attached txt-file.
turns out this strange broken directory listing
"SystemHiddenReadonlyArchive DAHSR" 0 Wed May 27 14:17:21 2009
as to see in the attached screenshot
https://webmail.tu-harburg.de/horde/imp/attachment.php?u=rztmh&t=1243596710&f=brokendirectorylistinggollem.bmp
The regex should match the attribute column [DHARS] in an appropriate way.
freundliche Grüsse
Michael Herde
More information about the bugs
mailing list