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

Bug in AliasInterceptor when used to aliases http parameters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.5.5
    • Fix Version/s: 2.5.8
    • Component/s: Core Interceptors
    • Labels:
      None

      Description

      When using AliasInterceptor to aliases http parameters, the AliasInterceptor put in the value stack an instance of Parameter when it should call getValue() on this instance.

      The problem seems to be located at line 168 of AliasInterceptor :

      value = new Evaluated(contextParameters.get(name));
      

      when it could be something like :

      Parameter param = contextParameters.get(name);
      if (param != null){
      value = new Evaluated(param.getValue());
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                flofourcade Florent Fourcade
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: