You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/03/22 22:17:48 UTC
DO NOT REPLY [Bug 27858] New: -
UnixFTPEntryParser failed if permissions are other than rwx
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: commons-dev@jakarta.apache.org
ReportedBy: mario@ops.co.at
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org