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

Ruchira Wageesha resolved MASHUP-1176.
--------------------------------------

      Assignee: Ruchira Wageesha  (was: Keith Godwin Chapman)
    Resolution: Fixed

I have added the validation function to js-service ui Util class. Fixed it for 
mashup server in revision 44105.


> Returns a grey page when the service name is starting with * and % signs.
> -------------------------------------------------------------------------
>
>                 Key: MASHUP-1176
>                 URL: https://wso2.org/jira/browse/MASHUP-1176
>             Project: WSO2 Mashup Server
>          Issue Type: Bug
>          Components: Admin UI
>         Environment: WinXP, JDK1.6, IE7
>            Reporter: Yumani Ranaweera
>            Assignee: Ruchira Wageesha
>             Fix For: 2.0
>
>
> Steps to recreate:
> -----------------------
> From the UI create java script services, with their names starting with * and 
> %.
> Issue:
> ---------
> I grey page is returned frm UI. 
> NOTE: services created in this manner using ^ $ were identified as faulty 
> services.
> Back-end reports below;
> SEVERE: Servlet.service() for servlet bridgeservlet threw exception
> org.apache.axis2.AxisFault: Error while creating the file for the new service 
> *test
>         at 
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:517)
>         at 
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
>         at 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
>         at 
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
>         at 
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>         at 
> org.wso2.carbon.jsservices.ui.MashupServiceAdminStub.saveMashupServiceSource(MashupServiceAdminStub.java:470)
>         at 
> org.wso2.carbon.jsservices.ui.MashupServiceAdminClient.saveMashupServiceSource(MashupServiceAdminClient.java:48)
>         at 
> org.apache.jsp.js_005fservice.saveMashup_jsp._jspService(saveMashup_jsp.java:68)
>         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:115)
>         at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:35)
>         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:133)
>         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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
>         at 
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594)
>         at 
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
>         at 
> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
>         at 
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:265)
>         at 
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
>         at 
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:614)
>         at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:98)
>         at 
> org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
>         at 
> org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
>         at 
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
>         at 
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
>         at 
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
>         at 
> org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
>         at 
> org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
>         at 
> org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
>         at 
> org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(template_jsp.java:378)
>         at 
> org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:129)
>         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:115)
>         at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:35)
>         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:133)
>         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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
>         at 
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
>         at 
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
>         at 
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>         at 
> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
>         at 
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:258)
>         at 
> org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
>         at 
> org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
>         at 
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
>         at 
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
>         at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:51)
>         at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:56)
>         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:133)
>         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:619)
> [2009-04-02 14:15:30,109] ERROR -  JSPException while including path 
> '/js_service/saveMashup.jsp'.  
> {org.apache.tiles.jsp.context.JspTilesRequestContext}
> javax.servlet.jsp.JspException: ServletException while including page.
>         at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:102)
>         at 
> org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
>         at 
> org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
>         at 
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
>         at 
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
>         at 
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
>         at 
> org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
>         at 
> org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
>         at 
> org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
>         at 
> org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(template_jsp.java:378)
>         at 
> org.apache.jsp.admin.layout.template_jsp._jspService(template_jsp.java:129)
>         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:115)
>         at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:35)
>         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)

-- 
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

        

_______________________________________________
Mashup-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to