[Carbon-jira] [jira] Resolved: (CARBON-5560) fail to move resource if the destination path doesn't contain root slash.
Senaka Fernando (JIRA)
jira at wso2.org
Sun Nov 22 04:16:00 PST 2009
[ https://wso2.org/jira/browse/CARBON-5560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Senaka Fernando resolved CARBON-5560.
-------------------------------------
Assignee: Senaka Fernando (was: Dimuthu Gamage)
Fix Version/s: 2.1
Resolution: Fixed
> fail to move resource if the destination path doesn't contain root slash.
> -------------------------------------------------------------------------
>
> Key: CARBON-5560
> URL: https://wso2.org/jira/browse/CARBON-5560
> Project: WSO2 Carbon
> Issue Type: Bug
> Components: Registry
> Affects Versions: 2.0.2
> Reporter: Krishantha Samaraweera
> Assignee: Senaka Fernando
> Fix For: 2.1
>
>
> How to reproduce;
> ============
> 1. Login as admin.
> 2. Add a new resource.
> 3. click to action panel and go to move resource box.
> 4. Then put AAA as the destination path (not /AAA)
> 5. you will end up with an error.
> You will get the following error.
> Unable to move resource to AAA/aaaaa. Failed to move resource /aaaaa to the path AAA. Failed to move resource /aaaaa to the path AAA. Failed to move the resource: /aaaaa to Destination: AAA/aaaaa. Caused by: Failed to move resource /aaaaa to the new path AAA/aaaaa. All database operations will be rolled back. String index out of range: -
> either we need to ask user to put / in the beginning or allow them to move the resoruce.
> Exception.
> ============
> [2009-11-13 14:46:25,156] ERROR - Failed to move resource /aaaaa to the path AAA. Failed to move resource /aaaaa to the path AAA. Failed to move the resource: /aaaaa to Destination: AAA/aaaaa. Caused by: Failed to move resource /aaaaa to the new path AAA/aaaaa. All database operations will be rolled back. String index out of range: -1
> org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to move resource /aaaaa to the path AAA. Failed to move the resource: /aaaaa to Destination: AAA/aaaaa. Caused by: Failed to move resource /aaaaa to the new path AAA/aaaaa. All database operations will be rolled back. String index out of range: -1
> at org.wso2.carbon.registry.ui.resource.clients.ResourceServiceClient.moveResource(ResourceServiceClient.java:378)
> at org.wso2.carbon.registry.ui.resource.processors.MoveProcessor.process(MoveProcessor.java:48)
> at org.apache.jsp.resources.move_005fajaxprocessor_jsp._jspService(move_005fajaxprocessor_jsp.java:51)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:117)
> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:64)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:36)
> at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:135)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
> at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.axis2.AxisFault: Failed to move the resource: /aaaaa to Destination: AAA/aaaaa. Caused by: Failed to move resource /aaaaa to the new path AAA/aaaaa. All database operations will be rolled back. String index out of range: -1
> at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:518)
> at org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOutOnlyOperationClient.handleResponse(RobustOutOnlyAxisOperation.java:91)
> at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
> at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
> at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
> at org.wso2.carbon.registry.ui.resources.ResourceAdminServiceStub.moveResource(ResourceAdminServiceStub.java:5359)
> at org.wso2.carbon.registry.ui.resource.clients.ResourceServiceClient.moveResource(ResourceServiceClient.java:373)
> ... 32 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Carbon-jira
mailing list