Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-5163

WebDAV PROPFIND on non-existent resources causes NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 5.3.1
    • Fix Version/s: None
    • Component/s: Live Edit (deprecated)

      Description

      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)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: