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

Debug tag should not display anything when not in dev mode

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.14
    • 2.5.16
    • Core Tags
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: