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

Implement new Aware interfaces that are using withXxxx pattern instead of setters

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.0.0
    • Core Actions
    • None

    Description

      In matter of security I wonder if we should stop using setters in internal API. Like in SessionAware interface we use setSession() and each actions must implement this method. Then we have a logic to avoid mapping incoming values to setSession() to permit injecting values into Session.

      Instead of setSession() we can use withSession() or applySession() - the same can be applied to any *Aware interface.

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              lukaszlenart Lukasz Lenart
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: