jersey
  1. jersey
  2. JERSEY-1220

Collections of typed query params do not handle blank values, whereas a single typed query param does.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.1, 1.12, 2.0-m04
    • Fix Version/s: 2.0-m05, 2.0
    • Component/s: core
    • Labels:
      None

      Description

      Hi
      Typed query params of a resource are instanciated with the string value of corresponding value. For instance, with a query param name "color", i can have "blue", "red", etc... and corresponding instances are available within resource.
      If the typed query param handles blank values, it can: Jersey framework instanciates it with such empty string.
      But it does not work with collections of typed params. Blank values are not processed the same way: corresponding object is not instanciated and we got a null object instead.
      In attachment, a class that reproduce and illustrate the problem.
      Edouard Chevalier.

        Activity

        Hide
        Martin Matula added a comment -

        Thanks for the report. I am going to look into this for 1.13.

        Show
        Martin Matula added a comment - Thanks for the report. I am going to look into this for 1.13.

          People

          • Assignee:
            Martin Matula
            Reporter:
            doud
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: