I try to run my webscript as admin permissions like is described in http://docs.alfresco.com/3.4/references/api-ws-runas.html, but my alfresco version is 3.0 Labs and I can't do that.My web script run a script placed in "Data Dictionary/Scripts" that remove one file where the user haven't got the 'remove' permission.My "doAct.get.desc.xml" is:
If I refresh my webscript I get the next error message:
Alfresco Web Scripts Maintenance
Maintenance Completed
Reset Web Scripts Registry; registered 284 Web Scripts. Previously, there were 285.
Warning: found 1 broken Web Scripts. Previously, there were 0.
Broken Web Scripts
Failed to parse web script description document doAct/doAct.get.desc.xml ; runas user declared for script in insecure store (workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts/doAct/doAct.get.desc.xml)
List Web Scripts
And If I run the web script I get the next error:
Web Script Status 404 - Not Found
The Web Script /alfresco/service/doAct has responded with a status of 404 - Not Found.
404 Description: Requested resource is not available.
Message: Script url /doAct does not map to a Web Script.
Exception: org.alfresco.web.scripts.WebScriptException - Script url /doAct does not map to a Web Script.
org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:106)
org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)
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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
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:286)
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
java.lang.Thread.run(Thread.java:662)
Server: Alfresco Labs v3.0.0 (Stable 1526) schema 1,002
Time: Sep 22, 2014 1:34:43 PM
This happens if my webscript is in "Data Dictionary/Web Scripts" and in "Data Dictionary/Web Scripts Extensions".How I can solve it?? Where is the secure store??thanks in advance