[ http://wso2.org/jira/browse/REGISTRY-102?page=all ]
Krishantha Samaraweera reopened REGISTRY-102:
---------------------------------------------
when I try to add a collection with existing resource name, following message
displayed "Trying to add a collection while a resource with the same name exist
in the system" which is fine. But If I try to add a resource with existing
collection name no message displayed. So system should also display a message
for above case.
In the second case If I try to add a resource with exiting collection name
following NPE occurred.
1, 2008 8:42:25 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet WebServlet threw exception
java.lang.NullPointerException
at
org.apache.catalina.connector.Request.getRequestURL(Request.java:2023)
at
org.apache.catalina.connector.RequestFacade.getRequestURL(RequestFacade.java:807)
at
org.wso2.registry.web.actions.AbstractRegistryAction.getServerBaseURL(AbstractRegistryAction.java:67)
at
org.apache.jsp.admin.registry_002dresources_jsp._jspService(registry_002dresources_jsp.java:250)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at
org.wso2.registry.web.ControllerServlet.handleFileUpload(ControllerServlet.java:377)
at
org.wso2.registry.web.ControllerServlet.doPost(ControllerServlet.java:332)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
> If user add a resource with same collection name then collection replaced
> with added resource.
> ----------------------------------------------------------------------------------------------
>
> Key: REGISTRY-102
> URL: http://wso2.org/jira/browse/REGISTRY-102
> Project: WSO2 Registry
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: Ubuntu 7.10, JDK 1.5.0_08, tomcat 6.0.14, Firefox/2.0.0.8
> Reporter: Krishantha Samaraweera
> Assigned To: Deepal Jayasinghe
> Priority: Blocker
>
> How to reproduce:
> 1. login as admin.
> 2. add a collection /c1/c2
> 3. now go to /c1
> 4. then add a resource with same collection name (c2)
> Collection will be replaced with resource file. You will notice that folder
> icon is changing to file icon.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev