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

Bug in AliasInterceptor when used to aliases http parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.5.5
    • 2.5.8
    • Core Interceptors
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: