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

Details

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

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      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