[Carbon-dev] [jira] Resolved: (CARBON-909) IllegalStateException thrown and page directed to http 500 page when adding a invalid file.

Kalani Ruwanpathirana (JIRA) jira at wso2.org
Tue Feb 10 22:00:05 PST 2009


     [ https://wso2.org/jira/browse/CARBON-909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kalani Ruwanpathirana resolved CARBON-909.
------------------------------------------

    Resolution: Fixed

Now this is forwarded to error.jsp as it can't set a valid content to the resource.

> IllegalStateException thrown and page directed to http 500 page when adding a invalid file.
> -------------------------------------------------------------------------------------------
>
>                 Key: CARBON-909
>                 URL: https://wso2.org/jira/browse/CARBON-909
>             Project: WSO2 Carbon
>          Issue Type: Bug
>          Components: Registry UI
>    Affects Versions: 1.5-beta2
>            Reporter: Krishantha Samaraweera
>            Assignee: Kalani Ruwanpathirana
>             Fix For: 1.5.1
>
>
> How to recreate:
> 1. Login as admin.
> 2. Go to add new resource.
> 3. select upload from file system.
> 4. type 'resource1.txt' as the file name.
> 5. Click add button.
> IllegalStateException thrown and page directed to http 500 page when adding a invalid file. this could be handle by validating the file path.
> exception
> ======
> javax.servlet.ServletException
> 	org.wso2.carbon.ui.transports.FileUploadServlet.doPost(FileUploadServlet.java:52)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
> 	org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
> 	org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:116)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> root cause
> java.lang.IllegalStateException
> 	org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:433)
> 	org.wso2.carbon.registry.ui.resource.processors.AddResourceProcessor.execute(AddResourceProcessor.java:79)
> 	org.wso2.carbon.ui.transports.fileupload.AbstractFileUploadExecutor.executeGeneric(AbstractFileUploadExecutor.java:68)
> 	org.wso2.carbon.ui.transports.fileupload.FileUploadExecutorManager.execute(FileUploadExecutorManager.java:111)
> 	org.wso2.carbon.ui.transports.FileUploadServlet.doPost(FileUploadServlet.java:48)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
> 	org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
> 	org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:116)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
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-dev mailing list