AnsweredAssumed Answered

webscript with more that one dot in the url

Question asked by raaftjon on Aug 30, 2013
Latest reply on Sep 2, 2013 by zladuric
hello

I would like to use a WebScript for building a RESTful Interface like

http://example.com/alfresco/s/api/v1.1/standards
or
http://example.com/alfresco/s/api/v1.1/standards/test-35.5

The path of the url have one or more dots. If I call the first url, then alfresco get the following error:

Web Script Status 404 - Not Found

The Web Script /alfresco/s/api/v1.1/standards has responded with a status of 404 - Not Found.

404 Description:    Requested resource is not available.

Message:   07300004 Script url /api/v1.1/standards does not map to a Web Script.

Exception:   org.springframework.extensions.webscripts.WebScriptException - 07300004 Script url /api/v1.1/standards does not map to a Web Script.

org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:173)
org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:722)


If I call the following url without dots, then all work successful:
http://example.com/alfresco/s/api/v1/standards

My WebScript definition is:
<webscript>
   <shortname>standards</shortname>
   <description>get a list of all standards</description>
   <url>/api/v1.1/standards</url>
   <format default="json"></format>
   <transaction>required</transaction>
   <authentication>guest</authentication>
</webscript>


It's possible to has one or more dots in the path of a WebScript url?

Kind regards,
Jonas Schmid

Outcomes