This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-2c9a896d-99c3-448d-be37-aa51c86846c5 XWIKI-24199 Open

Object keyword search REST API only works on objects with both short and long string properties

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-42b8c818-8c61-4fde-b1fc-0deb8dd04157 Michael Hamann created this issue on 08/Apr/26 14:12
 
Summary: Object keyword search REST API only works on objects with both short and long string properties
Issue Type: cid:jira-generated-image-avatar-2c9a896d-99c3-448d-be37-aa51c86846c5 Bug
Affects Versions: 1.8
Assignee: Unassigned
Components: REST
Created: 08/Apr/26 14:12
Priority: cid:jira-generated-image-static-major-76359255-f5af-4978-b6f0-32ddfd882db0 Major
Reporter: Michael Hamann
Description:

Steps to reproduce:

  1. Add an object of class AppWithinMinutes.String to a page
  2. Set the short text property in it to a unique string like "Noos5uyu"
  3. Open /xwiki/rest/wikis/xwiki/search?q=Noos5uyu&scope=objects

Expected result:

The page is listed.

Actual result:

The object isn't listed.

When using TourCode.TourClass and setting any string property it works as expected. This is because the implementation uses an inner join with both a short and a large string property on the same object ID and thus only matches objects that have both a short and a large string property. For the match itself, it doesn't matter where the query is.