WebDAV PROPFIND on non-existent resources causes NPE
----------------------------------------------------

                 Key: NXP-5163
                 URL: https://jira.nuxeo.org/browse/NXP-5163
             Project: Nuxeo Enterprise Platform
          Issue Type: Bug
    Affects Versions: 5.3.1
            Reporter: Sean Radford
            Priority: Major


For an authenticated user, a PROPFIND request on a non-existent resource 
results in an NPE propagated to the WebDAV client.

The KDE kioslave for example issues a PROPFIND on a document that it is about 
to copy into a folder. The document probably doesn't yet exist on the server 
(as the user is copying it) and so an NPE is generated. 

Presumably the server should respond with an HTTP 404

Caused by: java.lang.NullPointerException                                       
                                                                  
        at 
org.nuxeo.ecm.platform.webdav.mapping.DavPropertiesMapper.getDavProperties(DavPropertiesMapper.java:71)
                                
        at 
org.nuxeo.ecm.platform.webdav.servlet.NuxeoWebDavServlet.writeProperties(NuxeoWebDavServlet.java:166)
                                  
        at 
org.nuxeo.ecm.platform.webdav.servlet.NuxeoWebDavServlet.doPropfind(NuxeoWebDavServlet.java:98)
                                        
        at 
org.nuxeo.ecm.platform.webdav.servlet.ExtensibleWebdavServlet.service(ExtensibleWebdavServlet.java:60)
                                 
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)         
                                                                  
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                                      
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                              
        at org.nuxeo.wss.servlet.WSSFilter.doFilter(WSSFilter.java:135)         
                                                                  
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                                      
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                              
        at 
org.nuxeo.ecm.platform.ui.web.rest.FancyURLFilter.doFilter(FancyURLFilter.java:127)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to