[ https://issues.apache.org/jira/browse/CMIS-891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14305001#comment-14305001 ]
Florian Müller commented on CMIS-891: ------------------------------------- I cannot reproduce that with the InMemory server. The encoding and decoding seems to work fine on both ends, client and server, and this code hasn't been touched for a long time. Is it possible that Alfresco does some double encoding/decoding somewhere? > OpenCMIS splitPath decoding is throwing an exception for GET Requests > --------------------------------------------------------------------- > > Key: CMIS-891 > URL: https://issues.apache.org/jira/browse/CMIS-891 > Project: Chemistry > Issue Type: Bug > Components: opencmis-server > Affects Versions: OpenCMIS 0.10.0 > Reporter: Steve Glover > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)