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

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

                Author: ASF GitHub Bot
            Created on: 26/Nov/23 05:54
            Start Date: 26/Nov/23 05:54
    Worklog Time Spent: 10m 
      Work Description: kusalk commented on code in PR #791:
URL: https://github.com/apache/struts/pull/791#discussion_r1405330104


##########
core/src/main/java/com/opensymphony/xwork2/config/impl/DefaultConfiguration.java:
##########
@@ -142,6 +142,7 @@ public class DefaultConfiguration implements Configuration {
         constants.put(StrutsConstants.STRUTS_OGNL_EXPRESSION_CACHE_MAXSIZE, 
10000);
         constants.put(StrutsConstants.STRUTS_OGNL_BEANINFO_CACHE_TYPE, 
OgnlCacheFactory.CacheType.BASIC);
         constants.put(StrutsConstants.STRUTS_OGNL_BEANINFO_CACHE_MAXSIZE, 
10000);
+        constants.put(StrutsConstants.STRUTS_ALLOW_STATIC_FIELD_ACCESS, 
Boolean.TRUE);

Review Comment:
   It was, due to the `SecurityMemberAccess` constructor, but I've just added 
commit with a no-args constructor to not need this (as well as cleaned up a 
bunch of other bootstrap constants)



##########
core/src/main/java/com/opensymphony/xwork2/config/impl/DefaultConfiguration.java:
##########
@@ -385,6 +386,7 @@ protected Container 
createBootstrapContainer(List<ContainerProvider> providers)
         builder.factory(ExpressionCacheFactory.class, 
DefaultOgnlExpressionCacheFactory.class, Scope.SINGLETON);
         builder.factory(BeanInfoCacheFactory.class, 
DefaultOgnlBeanInfoCacheFactory.class, Scope.SINGLETON);
         builder.factory(OgnlUtil.class, Scope.SINGLETON);
+        builder.factory(SecurityMemberAccess.class, Scope.PROTOTYPE);

Review Comment:
   Given it's `prototype` scope, I don't believe it to make any difference





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

    Worklog Id:     (was: 892166)
    Time Spent: 50m  (was: 40m)

> Make SecurityMemberAccess extensible and a prototype bean
> ---------------------------------------------------------
>
>                 Key: WW-5343
>                 URL: https://issues.apache.org/jira/browse/WW-5343
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Kusal Kithul-Godage
>            Priority: Minor
>             Fix For: 6.4.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>




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

Reply via email to