Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5368

Access warning when get resource bundle which its name starts with "label"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 6.3.0
    • 6.5.0
    • Core
    • None

    Description

      The below:

      <s:select name="reasonOfTransactionCode" list="reasonOfTransactionList"      
      listKey="top" listValue="%{getText('label.reasonOfTransaction.'+top)}"/> 

      generates this warning for each item in the list, so if the `reasonOfTransactionList` has seven items I see this error seven time:

      ognl.SecurityMemberAccess: Access to non-public [protected java.lang.String org.apache.struts2.components.UIBean.label] is blocked!
       
      

       

      But this works fine If I  just rename resource bundle and removes `label` from its name

       

      <s:select name="reasonOfTransactionCode" list="reasonOfTransactionList"      listKey="top" listValue="%{getText('reasonOfTransaction.'+top)}"/> 

      Attachments

        Activity

          People

            Unassigned Unassigned
            afattahi Alireza Fattahi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: