Summary | VFS_smb.php Directory Listing broken |
Queue | Horde Framework Packages |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | jan (at) horde (dot) org |
Requester | herde (at) tu-harburg (dot) de |
Created | 05/29/2009 (5896 days ago) |
Due | 06/10/2009 (5884 days ago) |
Updated | 05/31/2010 (5529 days ago) |
Assigned | 05/29/2009 (5896 days ago) |
Resolved | 05/10/2010 (5550 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
New Attachment: smb.diff
rewritten since H3.
about from your point of view ?
since H3.
this solution to this version ... H4 is very far away from becoming a
release canditate, isn't it ?
Version ⇒ Git master
State ⇒ Resolved
Assigned to Jan Schneider
http://cvs.horde.org/co.php/framework/VFS/test/VFS/SmbTest.php?rt=horde&r=1.1
http://cvs.horde.org/co.php/framework/VFS/test/VFS/fixtures/samba1.txt?rt=horde&r=1.1
http://cvs.horde.org/co.php/framework/VFS/test/VFS/fixtures/samba2.txt?rt=horde&r=1.1
Version ⇒ HEAD
State ⇒ Assigned
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ VFS_smb.php Directory Listing broken
Due ⇒ 06/10/2009
Queue ⇒ Gollem
Milestone ⇒
Patch ⇒ No
New Attachment: test.txt
State ⇒ Unconfirmed
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