Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-150

Filtering doesn't work when parameter is integer but property is a string

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.2
    • None
    • delivery
    • None
    • Yes
    • Saigon 127, Saigon 128, Saigon 129, Saigon 130
    • 5

      The query returns no results when you supply an integer as a filtering parameter, but the property in the JCR content has type String.

      For example:
      http://localhost:8080/magnoliaAuthor/.rest/delivery/tours/v1?duration=7

      However if I change the type of the delivery property in the tours to a Long instead of a String, then the tours are correctly returned.

        Acceptance criteria

              sang.ngo Sang Ngo Huu
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - 2d
                    2d
                    Remaining:
                    Time Spent - 1d 6.5h Remaining Estimate - 1.5h
                    1.5h
                    Logged:
                    Time Spent - 1d 6.5h Remaining Estimate - 1.5h
                    1d 6.5h