[ 
https://issues.apache.org/jira/browse/WW-5494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alireza Fattahi updated WW-5494:
--------------------------------
    Description: 
In our project we have a `{*}OurBaseActionSupport{*} `  which extends 
`{*}...xwork2.ActionSupport{*}`

We have two stacks:
{code:xml}
<interceptor-stack name="PrivateStack">    
   <interceptor-ref name="loginCheck" />
   .....other interceptors
</interceptor-stack>

<interceptor-stack name="PublicStack">    
     .....other interceptors
</interceptor-stack>

{code}
Now consider this action 
{code:java}
 
public class LoginProcess extends OurBaseActionSupport{   

@Action(value = "login-process-result",  
interceptorRefs =  { @InterceptorRef("PublicStack") }

public String result()
....

 {code}
It works fine...

Now If I change the `{*}OurBaseActionSupport{*}` and extend 
`{*}org.apache.struts2.ActionSupport{*}` instead of 
`{*}com.opensymphony.xwork2.ActionSupport{*}` the `{*}loginCheck{*}` is called!

  was:
In our project we have a `OurBaseActionSupport `  which extends 
`...xwork2.ActionSupport`

We have two stacks:
{code:xml}
<interceptor-stack name="PrivateStack">    
   <interceptor-ref name="loginCheck" />
   .....other interceptors
</interceptor-stack>

<interceptor-stack name="PublicStack">    
     .....other interceptors
</interceptor-stack>

{code}
Now consider this action 
{code:java}
 
public class LoginProcess extends OurBaseActionSupport{   

@Action(value = "login-process-result",  
interceptorRefs =  { @InterceptorRef("PublicStack") }

public String result()
....

 {code}
It works fine...

Now If I change the `OurBaseActionSupport` and extend 
`org.apache.struts2.ActionSupport` instead of 
`com.opensymphony.xwork2.ActionSupport` the `loginCheck` is called!


> Using ActionSupport instead of xwork2.ActionSupport case interceptors stack 
> corrupted
> -------------------------------------------------------------------------------------
>
>                 Key: WW-5494
>                 URL: https://issues.apache.org/jira/browse/WW-5494
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 6.7.0
>            Reporter: Alireza Fattahi
>            Priority: Major
>
> In our project we have a `{*}OurBaseActionSupport{*} `  which extends 
> `{*}...xwork2.ActionSupport{*}`
> We have two stacks:
> {code:xml}
> <interceptor-stack name="PrivateStack">    
>    <interceptor-ref name="loginCheck" />
>    .....other interceptors
> </interceptor-stack>
> <interceptor-stack name="PublicStack">    
>      .....other interceptors
> </interceptor-stack>
> {code}
> Now consider this action 
> {code:java}
>  
> public class LoginProcess extends OurBaseActionSupport{   
> @Action(value = "login-process-result",  
> interceptorRefs =  { @InterceptorRef("PublicStack") }
> public String result()
> ....
>  {code}
> It works fine...
> Now If I change the `{*}OurBaseActionSupport{*}` and extend 
> `{*}org.apache.struts2.ActionSupport{*}` instead of 
> `{*}com.opensymphony.xwork2.ActionSupport{*}` the `{*}loginCheck{*}` is 
> called!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to