Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-4027

NPE in JcrRemotingServlet.canHandle() when content-type is missing

    XMLWordPrintableJSON

Details

    Description

      java.lang.NullPointerException
              at org.apache.jackrabbit.server.remoting.davex.JcrRemotingServlet.canHandle(JcrRemotingServlet.java:482)
              at org.apache.jackrabbit.server.remoting.davex.JcrRemotingServlet.doPost(JcrRemotingServlet.java:412)
              at org.apache.jackrabbit.webdav.server.AbstractWebdavServlet.execute(AbstractWebdavServlet.java:354)
              at org.apache.jackrabbit.webdav.server.AbstractWebdavServlet.service(AbstractWebdavServlet.java:291)
      

      Can be tested with jackrabbit-standalone on port 8080 with:

      curl -u admin:admin -v --header "Content-Type:" --referer http://localhost:8080 -X POST http://localhost:8080/server/default/jcr%3aroot/
      

      Attachments

        Activity

          People

            reschke Julian Reschke
            reschke Julian Reschke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: