Nuxeo LTS 2016 (8.10-HF16) > NXQL : NOT query curious behavior
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2017 06:22 AM
Hi guys,
I've spotted a curious behavior of the NOT criteria in NXQL:
Here is a query that doesn't work:
SELECT * FROM Workspace WHERE NOT ecm:path STARTSWITH '/default-domain/UserWorkspaces'
It gives shared workspaces that have "/default-domain/workspaces" path too. Replacing in the NXQL "UserWorkspaces" with "workspaces" works fine. Strange, not?
It seems to be a regression comparing to LTS 2015.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2017 06:29 AM
The query asks for all workspaces that are not under /default-domain/UserWorkspaces, so why do you say it's wrong to return /default-domain/workspaces/foobar? Such workspaces are not under /default-domain/UserWorkspaces so they match your query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2017 07:46 AM
oh, my phrase is not correct. In fact this query returns both
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2017 08:43 AM
I can't reproduce your issue.
