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

Improve o.a.j.jcr2dav.RepositoryStubImpl to test with custom servlet path mapping

    XMLWordPrintableJSON

    Details

      Description

      org.apache.jackrabbit.jcr2dav.RepositoryStubImpl supports testing with custom context path like the following, but not with custom servlet path mapping.

      mvn clean install -PintegrationTesting -DWebDAVServletContext="/foo"
      

      It would be nice if we can test with custom servlet path mapping as well, instead of the hard-coded "/server" path only, like the following examples:

      1. Default with /server prefix
      $ mvn clean install -PintegrationTesting
      
      2. With empty servlet path prefix
      mvn clean install -PintegrationTesting -DWebDAVServletPrefix=""
      
      3. With custom servlet path prefix
      mvn clean install -PintegrationTesting -DWebDAVServletPrefix="/jcrserver"
      
      4. With custom context path
      mvn clean install -PintegrationTesting -DWebDAVServletContext="/foo"
      
      5. With custom context path and custom servlet path
      mvn clean install -PintegrationTesting -DWebDAVServletContext="/foo" -DWebDAVServletPrefix="/jcrserver"
      

        Attachments

        1. servlet_path_prefix2.patch
          3 kB
          Woonsan Ko
        2. servlet_path_prefix.patch
          3 kB
          Woonsan Ko

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: