cancel
Showing results for 
Search instead for 
Did you mean: 

get content by path service 404 when spaces in content name

chatch
Champ in-the-making
Champ in-the-making
It seems that the get content by path service does not work when there are spaces in the path.

Eg. The URL /alfresco/service/api/path/content/workspace/SpacesStore/Aidoc/file%20sd.txt

returned a 404 error as follows:

The Web Script /alfresco/service/api/path/content/workspace/SpacesStore/Aidoc/file%20sd.txt has responded with a status of 404 - Not Found.

404 Description: Requested resource is not available.

Message: Unable to find path reference [workspace, SpacesStore, Aidoc, file%20sd.txt]

Exception: org.alfresco.web.scripts.WebScriptException - Unable to find path reference [workspace, SpacesStore, Aidoc, file%20sd.txt]

org.alfresco.web.scripts.bean.ContentGet.execute(ContentGet.java:94)
org.alfresco.web.scripts.WebScriptRuntime.wrappedExecute(WebScriptRuntime.java:342)
org.alfresco.web.scripts.WebScriptRuntime.authenticatedExecute(WebScriptRuntime.java:308)
org.alfresco.web.scripts.WebScriptRuntime$1.execute(WebScriptRuntime.java:163)
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:225)
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:155)
org.alfresco.web.scripts.WebScriptRuntime.executeScript(WebScriptRuntime.java:174)
org.alfresco.web.scripts.WebScriptServlet.service(WebScriptServlet.java:111)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:652)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)
java.lang.Thread.run(Thread.java:595)


Has anyone else seen this problem?

Cheers,
Chris.
1 REPLY 1

kevinr
Star Contributor
Star Contributor
Already fixed for final community 2.0 release.

Thanks,

Kevin