2023-12-18 11:51:43,756 WARN 
[com.opensymphony.xwork2.ognl.SecurityMemberAccess] (default task-1075) Access 
to non-public [private java.lang.String LoginAction.username] is blocked!
2023-12-18 11:51:43,757 WARN 
[com.opensymphony.xwork2.ognl.SecurityMemberAccess] (default task-1075) Access 
to non-public [private java.lang.String LoginAction.password] is blocked!

I do see these messages in my log. Should we be looking into our code?

Thanks,
Prasanth

On 12/17/23 9:04 AM, Lukasz Lenart wrote:
sob., 16 gru 2023 o 19:10 Ralph Grove<rfgr...@icloud.com.invalid>  napisał(a):
The setup action declares it this way:

     private HashMap<Character, String> statuses;

             statuses = User.getStatusMap();


And in the User class it’s created in the get method:

     public static HashMap<Character, String> getStatusMap() {
         HashMap<Character, String> statusMap = new HashMap<>();
         statusMap.put(User.ACTIVE, "Active");
         statusMap.put(User.INACTIVE, "Inactive");
         return statusMap;
     }
Do you use a custom template? Maybe you have your own radiomap.ftl? I
just tested the Showcase app and didn't notice such problems.
Basically you shouldn't notice such warning as it means someone is
trying to access a protected property of your bean


Cheers
Łukasz

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


Reply via email to