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

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.18.3
    • 2.20, 2.19.5, 2.18.4, 2.16.6, 2.14.9
    • None
    • None

    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_prefix.patch
          3 kB
          Woonsan Ko
        2. servlet_path_prefix2.patch
          3 kB
          Woonsan Ko

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: