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

Query with orderBy parameter should work without 'asc' or 'desc'.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.1
    • None
    • None
    • Yes
    • Saigon 132, Saigon 133
    • 2

      Currently if you supply orderBy in a query, but omit the direction, the query has an exception with a cryptic error message.

      The query should work when no direction is supplied and default to 'asc' as a direction.

      To reproduce:
      Use this URL: https://demopublic.magnolia-cms.com/.rest/delivery/tours/v1/?orderBy=location

      Get this result:
      {{Query:
      SELECT * FROM [nt:base] AS t WHERE ([jcr:primaryType] = 'mgnl:content') ORDER BY t.[locatio(*)n; expected: a token}}

        Acceptance criteria

              hieu.nguyen Hieu Nguyen Duc
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD

                    Estimated:
                    Original Estimate - 1.5d Original Estimate - 1.5d
                    1.5d
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 1d 7h
                    1d 7h