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

Destination header not containing URI scheme causes NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5
    • Component/s: jackrabbit-webdav
    • Labels:
      None

      Description

      In WebDAVRequestImpl. getDestinationLocator assumes that URI.getAuthority is always non-null.

      In RFC2518, a full URI is indeed required, but the NPE causes a status of 500, instead of 400 as expected.

      In RFC4918, an absolute path is allowed.

      Proposal: delegate to gethrefLocator, which already does the right thing.

        Attachments

          Activity

            People

            • Assignee:
              reschke Julian Reschke
              Reporter:
              reschke Julian Reschke
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: