<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>VFS_smb.php Directory Listing broken</title> 
  <pubDate>Fri, 10 Apr 2026 15:00:41 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8315</link> 
  <atom:link rel="self" type="application/rss+xml" title="VFS_smb.php Directory Listing broken" href="https://bugs.horde.org/ticket/8315/rss" /> 
  <description>VFS_smb.php Directory Listing broken</description> 
 
   
   
  <item> 
   <title>Horde 3.3.4 with Gollem H3 (1.1) on RHEL 5.3 (SAMBA 3.0.33-3</title> 
   <description>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(&#039;/\s{6,}/&#039;, trim($res[$r]));

                // If the file name isn&#039;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

  &quot;SystemHiddenReadonlyArchive     DAHSR&quot;     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&amp;t=1243596710&amp;f=brokendirectorylistinggollem.bmp



The regex should match the attribute column [DHARS] in an appropriate way.



freundliche Grüsse

Michael Herde



</description> 
   <pubDate>Fri, 29 May 2009 14:41:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8315#t54351</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/co.php/framework/VFS/test/VFS/SmbTest.php?rt=horde&amp;r=1.1
http://cvs.horde.org/co.php/framework/VFS/test/VFS/fixtures/samba1.txt?rt=horde&amp;r=1.1
http://cvs.horde.org/co.php/framework/VFS/test/VFS/fixtures/samba2.txt?rt=horde&amp;r=1.1</description> 
   <pubDate>Sun, 31 May 2009 17:36:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8315#t54373</link> 
  </item> 
   
  <item> 
   <title>This has been fixed in Git.</title> 
   <description>This has been fixed in Git.</description> 
   <pubDate>Mon, 10 May 2010 12:40:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8315#t58756</link> 
  </item> 
   
  <item> 
   <title>&gt; This has been fixed in Git.

Thank you for working on th</title> 
   <description>&gt; This has been fixed in Git.

Thank you for working on this bug - would it be possible to &#039;backport&#039; this solution to this version ... H4 is very far away from becoming a release canditate, isn&#039;t it ?</description> 
   <pubDate>Fri, 28 May 2010 12:42:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8315#t58984</link> 
  </item> 
   
  <item> 
   <title>Not really, because large parts of the smb driver have been </title> 
   <description>Not really, because large parts of the smb driver have been rewritten since H3.</description> 
   <pubDate>Fri, 28 May 2010 13:02:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8315#t58985</link> 
  </item> 
   
  <item> 
   <title>&gt; Not really, because large parts of the smb driver have bee</title> 
   <description>&gt; Not really, because large parts of the smb driver have been rewritten 
&gt; since H3.

this (see diff) seems to work in our case. any side effects to worry about from your point of view ?</description> 
   <pubDate>Mon, 31 May 2010 08:56:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8315#t58996</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
