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

OpenCMIS splitPath decoding is throwing an exception for GET Requests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • OpenCMIS 0.10.0
    • None
    • opencmis-server
    • None

    Description

      See https://issues.alfresco.com/jira/browse/MNT-13057.

      We have a document that is named "KRUIS_LOGO_100%_PMS.eps". Note the percent in the name. If we have some code like this:

      public class CMISTest
      {
      @Test
      public void test1() throws Exception
      {
      String nodeRef = "workspace://SpacesStore/6f493b69-8267-497e-831b-8ffd2b6f59a9;1.0";
      InputStream inputStream = null;
      try

      { SessionFactory factory = SessionFactoryImpl.newInstance(); Map<String, String> parameter = new HashMap<String,String>(); parameter.put(SessionParameter.USER, "admin"); parameter.put(SessionParameter.PASSWORD, "admin"); parameter.put(SessionParameter.ATOMPUB_URL, "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom"); parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value()); List<Repository> repositories = factory.getRepositories(parameter); Session session = repositories.get(0).createSession(); Document doc = (Document) session.getObject(nodeRef); inputStream = doc.getContentStream().getStream(); }

      finally

      { IOUtils.closeQuietly(inputStream); }

      }
      }

      org.apache.chemistry.opencmis.server.shared.splitPath() throws an exception:

      "org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "

      Note that we have tried upgrading to OpenCMIS 0.12.0 and 0.13.0, to no avail.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shabba1973 Steve Glover
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: