param in query string with same name as a handler in action bean triggers said 
handler
--------------------------------------------------------------------------------------

                 Key: STS-621
                 URL: http://www.stripesframework.org/jira/browse/STS-621
             Project: Stripes
          Issue Type: Bug
          Components: ActionBean Dispatching
    Affects Versions: Release 1.5
         Environment: Apache Tomcat/6.0.18
Windows XP (5.1)
x86
JVM 1.6.0_0-b02
            Reporter: Pedro DeKeratry
            Priority: Minor


Suppose I have an action bean with  @UrlBinding("/action/test") and the 
following two handlers:

public Resolution doIt()
{
  // do stuff
}

@DefaultHandler
@DontValidate
public Resolution view()
{
  // forward to view JSP
}

Suppose I do enter the following URL into my browser:

http://localhost:8080/action/test

I see expected JSP forwarded to in the 'view' handler. But now suppose I did 
this ( for whatever reason )

http://localhost:8080/action/test?doIt=blahblah 

or even just

http://localhost:8080/action/test?doIt

Now Stripes apparently invoke the handler 'doIt' which of course will cause 
input validations to fail since I didn't provide them. So the question is, is 
this a clever feature or a bug?

I was simply writing unit tests for an action bean and one of the tests is to 
invoke the default/view handler with semi-random parameters and ensure it still 
just simply 'views' the page and doesn't affect anything else. Well, one of the 
parameters I added happened to be the name of another handler in the action 
bean under test, and the test failed. So here I am.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to