You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by bu...@apache.org on 2003/08/28 16:43:12 UTC

DO NOT REPLY [Bug 22790] New: - Inconsistent encoding of methods

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=22790>.
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=22790

Inconsistent encoding of methods

           Summary: Inconsistent encoding of methods
           Product: Slide
           Version: Nightly
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WebDAV client
        AssignedTo: slide-dev@jakarta.apache.org
        ReportedBy: snmvaughan92@yahoo.com


Some methods (GET, HEAD, and PUT) perform path encoding, while all other methods
do not.  The constrcutor for the encoding methods looks like:

   super(URLUtil.URLEncode(path, "UTF-8"));

while all other methods look like:

   super (path);

All methods should be either encoded or decoded in order to ensure that double
encoding doesn't take place.  This problem will only be visible when attempting
to operate on resource which require encoding (i.e. there is a space in the
name).  Given that list() returns the child names unencoded, I would think it
would make the most sense to always expect unencoded paths.