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

Debug tag should not display anything when not in dev mode

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.14
    • Fix Version/s: 2.5.16
    • Component/s: Core Tags
    • Labels:
      None

      Description

      I noticed that the debug tag displays the content of the value stack independently of the value of devMode.

      I wonder if it would not be more secure to do not display anything if devMode=false.

      I can imagine a developer forgetting to remove such kind of debug tags before the app goes to production. Making it silent in production mode would reduce the risk to display sensitive data.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dleberre Daniel Le Berre
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: