Ok, this looks like a bug in CspInterceptor and connected
DefaultCspSettings - it assumes the session already exists which isn't
true
https://issues.apache.org/jira/browse/WW-5215

I will prepare a fix and then issue a new 6.0.2 release.

Thanks!
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

wt., 23 sie 2022 o 14:05 Johannes Geppert <jo...@apache.org> napisał(a):
>
> no, unfortunately not. I have already tried both versions.
>
> #################################################
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
>
>
>
> Am Di., 23. Aug. 2022 um 13:41 Uhr schrieb Lukasz Lenart <
> lukaszlen...@apache.org>:
>
> > wt., 23 sie 2022 o 13:37 Johannes Geppert <jo...@apache.org> napisał(a):
> > >
> > > Hi Lukasz,
> > >
> > > I just checked if it is easy to migrate the AWS serverless implementation
> > > <https://github.com/awslabs/aws-serverless-java-container> from Struts2
> > to
> > > 6.0.0.
> > > Unfortunately it looks like the session handling has changed a bit and
> > > raises a null pointer exception.
> > >
> > > ERROR DefaultDispatcherErrorHandler Exception occurred during processing
> > > request: null
> > >  java.lang.NullPointerException
> > > at
> > >
> > com.amazonaws.serverless.proxy.internal.servlet.AwsHttpServletRequest.getSession(AwsHttpServletRequest.java:139)
> > > at
> > >
> > javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:270)
> > > at org.apache.struts2.dispatcher.SessionMap.put(SessionMap.java:171)
> > > at
> > >
> > org.apache.struts2.interceptor.csp.DefaultCspSettings.associateNonceWithSession(DefaultCspSettings.java:83)
> > > at
> > >
> > org.apache.struts2.interceptor.csp.DefaultCspSettings.addCspHeaders(DefaultCspSettings.java:71)
> > > at
> > >
> > org.apache.struts2.interceptor.csp.CspInterceptor.beforeResult(CspInterceptor.java:49)
> > > at
> > >
> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:274)
> > >
> > > Any idea about the root cause and hint to the possible change?
> >
> > Does it work with 6.0.0? And it's  probably related to this change
> > https://issues.apache.org/jira/browse/WW-5203
> >
> > So maybe it need to be reverted
> >
> >
> > Regards
> > --
> > Łukasz
> > + 48 606 323 122 http://www.lenart.org.pl/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
> > For additional commands, e-mail: dev-h...@struts.apache.org
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to