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

paramsPrepareParamsStack ignored excludeParams parameter in second params-Interceptor

    XMLWordPrintableJSON

Details

    Description

      When using paramsPrepareParamsStack with the convention plugin multiple duplicate errors/warnings with devMode=true occur like:

      Error setting expression 'token' with value ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ]
      Error setting expression 'token' with value ['5UVO47K811DQ15DUZF4QV2NQ8DHIHSUY', ]
      

      By excluding these params (important is 'token') I was able to get rid of the duplication of these messages:

      @InterceptorRefs({@InterceptorRef(value = "paramsPrepareParamsStack", params = {"params.excludeParams",
      "struts.token,struts.token.name,token"})})
      

      But apparently only the first params interceptor in the stack uses these params. The second one (the one after the prepare interceptor) only uses the built-in excludeParams. So one of the above mentioned errors persists,

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            Napfton Fabian Richter
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: