[ 
http://issues.apache.org/jira/browse/BEEHIVE-378?page=comments#action_59879 ]
     
Julie Zhuo commented on BEEHIVE-378:
------------------------------------

Relating issue JIRA227.

> Overriding loginRequired to false when when rolesAllowed is set in the parent 
> Controller
> ----------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-378
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-378
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Julie Zhuo
>     Assignee: Rich Feit
>  Attachments: JIRA378Repro.ZIP
>
> When loginRequired is set to true in the parent pageflow controller and it is 
> overridden by loginRequired=false in the child pageflow controller, the begin 
> action is set as the following in the parent.
>     @Jpf.Action(loginRequired = false,
>         forwards={
>            @Jpf.Forward(name="index", path="index.jsp")
>         })
>     protected Forward begin()
>     {
>         return new Forward("index");
>     }
> Now, it is overidden in the child like this.
>     @Jpf.Action(
>         forwards={
>            @Jpf.Forward(name="index", path="index.jsp")
>         }
>     )
>     protected Forward begin()
>     {
>         return new Forward("index");
>     }
> The child generates the struts config like this,
>     <action path="/begin" 
> type="org.apache.beehive.netui.pageflow.internal.FlowControllerAction" 
> parameter="testInheritance.override.actionForward.ActionForwardController" 
> scope="request" roles="role1,role2" validate="false">
>       <forward name="index" path="/index.jsp"/>
>     </action>
> So, when try to enter in the pageflow by begin.do, it still requires a 
> current logged in user.
> This is found in SVN 155338.
> Repro apps will be attached shortly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to