DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27858>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27858

UnixFTPEntryParser failed if permissions are other than rwx

           Summary: UnixFTPEntryParser failed if permissions are other than
                    rwx
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Net
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I am currently in the process of setting up a test server for the vfs project,
and guess what.
I have found a but in the NET library.

The Regex-String contains the following line
"(((r|-)(w|-)(x|-))((r|-)(w|-)(x|-))((r|-)(w|-)(x|-)))\\s+"

But this will fail (maybe depends on the used ftpd server?) if the file has
other permissions set (e.g. setuid bit, sticky, ....)
Using listFiles will return a null value for every entry where this regexp wont
match.

I could send a patch if one tells me what you would like to see as patch.

1) extend FTPFile to handle these special modes.
2) ignore any other mode than "rwx". At least the regexp has to be expanded.
3) same as 2 except "s" is mapped to "x".
s: set user  or  group ID  on execution

The possible values for the permissions are: rwxSst (for what i have seen for
now, maybe there are some other)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to