You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2022/07/08 15:40:00 UTC

[jira] [Commented] (WW-5203) lazyPolicyBuilder in DefaultCspSettings is not lazy

    [ https://issues.apache.org/jira/browse/WW-5203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17564335#comment-17564335 ] 

Lukasz Lenart commented on WW-5203:
-----------------------------------

Not sure if I understand this problem - in my opinion {{hasBeenCalled}} should be removed and the string should be created each time.

> lazyPolicyBuilder in DefaultCspSettings is not lazy
> ---------------------------------------------------
>
>                 Key: WW-5203
>                 URL: https://issues.apache.org/jira/browse/WW-5203
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 6.0.0
>            Reporter: Guido L. Woestmann
>            Priority: Critical
>             Fix For: 6.0.1
>
>
> The "lazyPolicyBuilder" inside DefaultCspSettings is supposed to create the CSP-Policy-String only once. But the Variable "hasBeenCalled" isnt set to false anywhere, so the String will be created every time.



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