Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-820

AtomPub GetRepositories mishandles repositoryId parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • OpenCMIS 0.11.0
    • OpenCMIS 0.12.0
    • opencmis-server
    • None

    Description

      AtomPub GetRepositories.serve() asserts repositoryId != null and then a few lines later sets repositoryId = getStringParameter(request, Constants.PARAM_REPOSITORY_ID).

      This causes problems in the following CmisAtomPubServlet.dispatch() code where the Dispatcher invokes AtomPub GetRepositories.serve() with a null repositoryId:

                  if (pathFragments.length < 2) {
                      // root -> service document
                      dispatcher.dispatch("", METHOD_GET, context, service, null, request, response);
                      return;
                  }
      

      The simple fix is to remove the repositoryId != null assertion from GetRepositories.serve().

      Attachments

        Issue Links

          Activity

            People

              fmui Florian Müller
              rgavlin Ron Gavlin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: