Details
-
Bug
-
Resolution: Unresolved
-
Blocker
-
18.0.0-rc-1, 17.10.1, 16.10.16, 17.4.8
-
Unknown
-
Description
Since XWIKI-23550, the allowed values of a Database List (and Page) property are loaded with at most security.queryItemsLimit results (1000 by default). The view and edit displayers look the label of the stored value up in that list, so a stored value that isn't in the first results is displayed as its raw value (e.g. a document name instead of its title).
Steps to reproduce
- Set security.queryItemsLimit = 1 in xwiki.properties.
- Create a class with a Database List property whose query returns two columns (value, label) and at least two rows.
- Create an object with the value of the second row and view it.
Expected
The label of the value is displayed.
Actual
The raw value is displayed.
The REST class property values resource (DBListClassPropertyValuesProvider#getValue) already avoids this by filtering the query on the requested value; DBListClass should look the missing values up the same way instead of relying on the first results only.
Attachments
Issue Links
- is caused by
-
XWIKI-23550 REST APIs can list all pages/spaces, leading to unavailability
-
- Closed
-