[seam-issues] [JBoss JIRA] Updated: (SEAMREMOTING-13) Remoting should not throw exception but 400/404 on invalid request

Shane Bryzak (JIRA) jira-events at lists.jboss.org
Wed Mar 30 03:43:38 EDT 2011


     [ https://issues.jboss.org/browse/SEAMREMOTING-13?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shane Bryzak updated SEAMREMOTING-13:
-------------------------------------

    Fix Version/s: Future


> Remoting should not throw exception but 400/404 on invalid request
> ------------------------------------------------------------------
>
>                 Key: SEAMREMOTING-13
>                 URL: https://issues.jboss.org/browse/SEAMREMOTING-13
>             Project: Seam Remoting
>          Issue Type: Bug
>            Reporter: Christian Bauer
>            Assignee: Shane Bryzak
>             Fix For: Future
>
>
> Some crazy Java program is making HTTP requests on our live site:
> 85.82.169.224 - - [04/Apr/2008:15:38:48 +0100] "GET /seam/resource/remoting/interface.js HTTP/1.1" 200 - "null" "Java/1.5.0_13"
> I'm guessing this is a home-written HTML parser or something from a Danish ;) guy or a website "downloader" or something. In any case, it cuts off the request parameters and we throw an exception:
> 15:38:48,818 ERROR [Remoting] Error
> javax.servlet.ServletException: Invalid request - no component specified
>         at org.jboss.seam.remoting.InterfaceGenerator$1.process(InterfaceGenerator.java:73)
>         at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
>         at org.jboss.seam.remoting.InterfaceGenerator.handle(InterfaceGenerator.java:64)
>         at org.jboss.seam.remoting.Remoting.getResource(Remoting.java:111)
>         at org.jboss.seam.servlet.SeamResourceServlet.doGet(SeamResourceServlet.java:75)
> Do not throw an exception but either return 400 INVALID REQUEST or 404 NOT FOUND.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list