Uploaded image for project: 'XWork'
  1. XWork
  2. XW-360

Setting allowed and blocked parameters for ParameterFilterInterceptor is not working as expected

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: 1.1.2
    • Component/s: Interceptors
    • Labels:
      None
    • Flags:
      Important

      Description

      Parameters allowed and blocked have two setters - with string and collection and one getter returns collection
      In this cause default setter for this properties is setter accepted collection.
      And when I try to parametrize this interceptor using <param name="blocked">p1, p2</param> setter for collections is invoked with collection of one string "p1, p2".

      My proposition: rename (or remove!) setters and getters for parameters allowed and blocked working with collections.

      And change function asCollection(String) to calling TextParseUtil.commaDelimitedStringToSet

        Attachments

          Activity

            People

            • Assignee:
              rainerh Rainer Hermanns
              Reporter:
              eugene Schava Eugene
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: