[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2703) Avoid exceptions for invalid system request parameters
Christian Bauer (JIRA)
jira-events at lists.jboss.org
Tue Mar 4 02:42:57 EST 2008
Avoid exceptions for invalid system request parameters
------------------------------------------------------
Key: JBSEAM-2703
URL: http://jira.jboss.com/jira/browse/JBSEAM-2703
Project: JBoss Seam
Issue Type: Task
Components: JSF Integration
Reporter: Christian Bauer
Priority: Minor
Some of Seams JSF integration code takes request parameters but doesn't check them properly for valid values. Usually that ends with an exception of some doofus tries to manipulate URIs:
java.lang.IllegalArgumentException: No enum const class org.jboss.seam.core.PropagationType.HTTP://WWW.ELECTROFED.COM/_APP/EFC/ODOQU/FERUS/
at java.lang.Enum.valueOf(Enum.java:192)
at org.jboss.seam.core.PropagationType.valueOf(PropagationType.java:8)
at org.jboss.seam.core.ConversationPropagation.getPropagationFromRequestParameter(ConversationPropagation.java:163)
at org.jboss.seam.core.ConversationPropagation.restoreConversationId(ConversationPropagation.java:58)
at org.jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListener.java:389)
at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:228)
at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:194)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
We might want to look at these cases and see if can avoid exceptions and just ignore invalid input.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list