Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
13.4.7, 14.3.1
-
None
-
Unknown
-
Description
Trying to use sorting filtering or pagination using in-line static data not working with the error "Updating the entries failed for an unknown reason."
How to reproduce
Create a page with the following code:
{{liveData id="movies" properties="title,genre,releaseDate,director" }}{ "query":{ "properties":[ "title", "genre", "releaseDate", "director" ], "filters":[ { "property":"title", "matchAll":true, "constraints":[ { "operator":"contains", "value":"help" } ] } ], "sort":[ { "property":"title", "descending":false } ], "offset":0, "limit":10 }, "data": { "count": 2, "entries": [ { "title": "Meet John Doe", "url": "https://www.imdb.com/title/tt0033891/", "genre": ["Comedy", "Romance"], "releaseDate": -904615200, "director": "Frank Capra", "directorURL": "https://www.imdb.com/name/nm0001008/" }, { "title": "Modern Times", "url": "https://www.imdb.com/title/tt0027977/", "genre": ["Comedy", "Drama"], "releaseDate": -1068256800, "director": "Charlie Chaplin", "directorURL": "https://www.imdb.com/name/nm0000122/" } ] }, "meta": { "propertyDescriptors": [ { "id": "title", "name": "Title", "visible": true, "sortable": true, "displayer": {"id": "link", "propertyHref": "url"} }, { "id": "genre", "name": "Genre", "visible": true }, { "id": "releaseDate", "name": "Release Date", "visible": true, "displayer": "date" }, { "id": "director", "name": "Director", "visible": true, "displayer": {"id": "link", "propertyHref": "directorURL"} } ] } }{{/liveData}}
Expected result:
The table is sorted by title
Actual result:
A red error at the bottom of the screen with the message "Updating the entries failed for an unknown reason."
and a broken request which looks like this:
_http://localhost:8080/xwiki/rest/liveData/sources/undefined/entries?timestamp=1654008609918&namespace=wiki:xwiki&properties=title&properties=genre&properties=releaseDate&properties=director&offset=0&limit=15&filters.title=contains:&sort=title&descending=false_
Attachments
Issue Links
- is related to
-
XWIKI-19783 In-Line data does not support filtering, sorting, and pagination
- Open