cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo LTS 2016 (8.10-HF16) > NXQL : NOT query curious behavior

promanov_
Star Contributor
Star Contributor

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.

3 REPLIES 3

Florent_Guillau
World-Class Innovator
World-Class Innovator

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.

promanov_
Star Contributor
Star Contributor

oh, my phrase is not correct. In fact this query returns both

Florent_Guillau
World-Class Innovator
World-Class Innovator

I can't reproduce your issue.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.