Re: [TEST] Apache Struts 6.7.1 test build is ready

Kusal Kithul-Godage <[email protected]> Tue, 4 Feb 2025 00:55:21 +1100
Newsgroups gmane.comp.jakarta.struts.devel
Message-ID <CAOG_=KzOdF=h5uoCKYU8YQFhp2S_smSdAJPcmMvrgz2i3t3Xdg@mail.gmail.com>
Thanks for reporting - I believe this should fix the issue
https://github.com/apache/struts/pull/1209

On Mon, Feb 3, 2025 at 10:19 PM <[email protected]> wrote:
>
> Hello,
>
> it will happen, if you have an include tag before a closing tag - because the release method of the PageContext will set the members like request to null.
>
> <s:form>
>    <jsp:include page="/tiles/default/confirmation.jsp" />
> </s:form>
>
> best regards
>
> [email protected] schrieb: -----
> An: [email protected]
> Von: [email protected]
> Datum: 03.02.2025 11:31
> Kopie: "Struts Developers List" <[email protected]>
> Betreff: Antwort: [TEST] Apache Struts 6.7.1 test build is ready
>
> Hello Lukasz,
>
> the new lookup against attributeMap can lead to an NPE.
>
>
> java.lang.NullPointerException: Cannot invoke "javax.servlet.ServletRequest.getAttribute(String)" because "this.request" is null
>         at org.apache.jasper.runtime.PageContextImpl.findAttribute(PageContextImpl.java:341) ~[jasper.jar:9.0.96]
>         at org.apache.struts2.dispatcher.AttributeMap.get(AttributeMap.java:102) ~[struts2-core-6.7.1.jar:6.7.1]
>         at org.apache.struts2.components.UIBean.getTheme(UIBean.java:646) ~[struts2-core-6.7.1.jar:6.7.1]
>         at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:663) ~[struts2-core-6.7.1.jar:6.7.1]
>         at org.apache.struts2.components.UIBean.end(UIBean.java:558) ~[struts2-core-6.7.1.jar:6.7.1]
>         at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:38) ~[struts2-core-6.7.1.jar:6.7.1]
>
>
> https://github.com/apache/struts/pull/1193/files
>
> best regrads
>
> -----"Lukasz Lenart" <[email protected]> schrieb: -----
> An: "Struts Developers List" <[email protected]>
> Von: "Lukasz Lenart" <[email protected]>
> Datum: 02.02.2025 10:33
> Betreff: [TEST] Apache Struts 6.7.1 test build is ready
>
> Hello,
>
> This is a patch release of Struts 6.x.x which contains only
> non-breaking changes.
> Please take the time and test the bits - any help is appreciated.
> Please report any problems you will spot.
>
> Here are the changes from the previous version:
> https://github.com/apache/struts/releases/tag/STRUTS_6_7_1
>
> Staging Maven repo
> https://repository.apache.org/content/groups/staging/
>
> Standalone artifacts
> https://dist.apache.org/repos/dist/dev/struts/6.7.1/
>
> Release notes
> https://cwiki.apache.org/confluence/display/WW/Version+Notes+6.7.1
>
>
> Kind regards
> --
> Łukasz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
>
>