XWork
  1. XWork
  2. XW-360

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

        Activity

        Schava Eugene created issue -
        Rene Gielen made changes -
        Field Original Value New Value
        Affects Version/s 1.1.2 [ 21601 ]
        Affects Version/s 1.1.1 [ 21592 ]
        Rene Gielen made changes -
        Fix Version/s 1.1.2 [ 21601 ]
        Schava Eugene made changes -
        Attachment ParameterFilterInterceptor.java [ 11784 ]
        Rainer Hermanns made changes -
        Assignee Rainer Hermanns [ rainerh ]
        Rainer Hermanns made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Tony Stevenson made changes -
        Project Import Mon Jun 18 07:22:17 UTC 2012 [ 1340004137313 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development