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

SecurityException accessing theme.properites

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • 2.1.3
    • None
    • None

    Description

      With WW-1368 (https://issues.apache.org/struts/browse/WW-1368), a bug is introduced when security is enabled as the file system path for the theme.properties file may not be within the webapp and thus, requires a FilePermission to access the invalid path. Therefore, there needs to be a catch for a SecurityException. The method of the call is in org.apache.struts2.components.template.BaseTemplateEngine.getThemeProps(Template) and the call is propFile.exists().

      Attachments

        Activity

          People

            Unassigned Unassigned
            ecapachedev Eddy Chan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: