[ 
https://issues.apache.org/jira/browse/WW-5297?focusedWorklogId=935995&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-935995
 ]

ASF GitHub Bot logged work on WW-5297:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Sep/24 05:36
            Start Date: 24/Sep/24 05:36
    Worklog Time Spent: 10m 
      Work Description: sonarcloud[bot] commented on PR #1060:
URL: https://github.com/apache/struts/pull/1060#issuecomment-2370232626

   ## [![Quality Gate 
Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png
 'Quality Gate 
Passed')](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1060) 
**Quality Gate passed**  
   Issues  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 New 
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=1060&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png
 '') [0 Accepted 
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=1060&issueStatuses=ACCEPTED)
   
   Measures  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=1060&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [100.0% Coverage on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1060&metric=new_coverage&view=list)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0.0% Duplication on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1060&metric=new_duplicated_lines_density&view=list)
  
     
   [See analysis details on 
SonarCloud](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1060)
   
   




Issue Time Tracking
-------------------

    Worklog Id:     (was: 935995)
    Time Spent: 0.5h  (was: 20m)

> Decorator not working after invalidating session
> ------------------------------------------------
>
>                 Key: WW-5297
>                 URL: https://issues.apache.org/jira/browse/WW-5297
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Tags, Plugin - SiteMesh
>    Affects Versions: 6.1.2
>            Reporter: nikos dimitrakas
>            Assignee: Lukasz Lenart
>            Priority: Major
>             Fix For: 6.7.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> When trying to upgrade from 2.5 to 6.1.2 I get a strange behaviour when 
> decorating a jsp.
> I have an action that is used to log out a user. The action is basically only 
> invalidating the session and then goes to the jsp. One of the interceptors is 
> using sitemesh and applies the specified decorator.
> With Struts 2.5 this worked fine. But with Struts 6.1.2 (probably all the 
> 6.x) I get an error "Session already invalidated" when getAttribute is called 
> from org.apache.struts2.dispatcher.SessionMap. Here is the relevant part of 
> the stacktrace:
> Caused by: java.lang.IllegalStateException: getAttribute: Session already 
> invalidated
>     at 
> org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1148)
>     at 
> org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:102)
>     at org.apache.struts2.dispatcher.SessionMap.get(SessionMap.java:157)
>     at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:879)
>     at org.apache.struts2.components.Head.evaluateParams(Head.java:71)
>     at org.apache.struts2.components.UIBean.end(UIBean.java:550)
>     at 
> org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:40)
> There is nothing about this changed behaviour in the migration guide from 
> Struts 2.5 to 6. Is this a bug introduced in 6.x? Or is this by design? 
> From what I can see, the error occurs when an s:head inside the decorator is 
> evaluated.
>  



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

Reply via email to