DO NOT REPLY [Bug 41489] New: - 207 instead of 403 response for MOVE/COPY/DELETE (+ suggested fix)

[email protected]
Newsgroups gmane.comp.jakarta.slide.devel
Message-ID <[email protected]/bugzilla/>
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=41489>.
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=41489

           Summary: 207 instead of 403 response for MOVE/COPY/DELETE (+
                    suggested fix)
           Product: Slide
           Version: 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: RFC
          Severity: major
          Priority: P2
         Component: WebDAV Server
        AssignedTo: [email protected]
        ReportedBy: [email protected]


For some WebDAV requests we get a 207 Multistatus returned when we would expect
a 403 Forbidden.

Steps to reproduce:
 - incoming request is MOVE, COPY or DELETE
 - object being moved/copied/deleted is a collection
 - user does not have the rights to make this operation

Actual results:
 - generation of a 207 Multi Status response

Apparent cause:
 - org.apache.slide.webdav.method.AbstractMultistatusResponseMethod 
Method generateMultiStatusResponse()
line 121 :
   isMultiStatus =  ! resourceURI.equals(MethodUtil.getURI(unpackedException));
is inconsistent with the method's Javadoc comment.  We should be generating a
multi status response when the two values are equal, not when they are unequal
(as now).  Deleting the operator ! on the above line corrects the bug described
above: a 403 response is generated as expected.

Expected results:
 - generation of a 403 Forbidden reponse

Build:
The bug was observed on v2.1 but the offending line is still present in the
latest version on the repository.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.