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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10115

WebDAV Exception when filename contains %

           Summary: WebDAV Exception when filename contains %
           Product: Slide
           Version: 1.0.16 Stable
          Platform: Sun
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WebDAV client
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have Apache httpd 2.0.39 running on a Solaris machine. Some of the file
names end with the "%" character (textedit tracks?).

When I use the WebDAV client to perform an "ls" of the directory, an
ArrayIndexOutOfBoundsException occurs because URIUtil.unexcape() expects
the "%" to be followed by two hex characters. Either mod_dav is not excaping
the filename correctly or WebDAV is not unescaping them correctly?

The stack trace at the exception is:

java.lang.ArrayIndexOutOfBoundsException
        at org.apache.util.URIUtil.unescape(URIUtil.java:346)
        at org.apache.util.URIUtil.unescape(URIUtil.java:320)
        at org.apache.util.URIUtil.unescape(URIUtil.java:308)
        at org.apache.util.GenericURI.getPath(GenericURI.java:774)
        at org.apache.util.HttpURL.getName(HttpURL.java:500)
        at org.apache.webdav.lib.WebdavResource.setWebdavProperties(WebdavResour
ce.java:803)
        at org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java
:683)

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

Reply via email to