Document found by IdRef but not found by PathRef
We have an random error, when we search an document by path (CoreSession.exists(new PathRef(“'the path”)) we have an Document Not Found Exception. But the document was found by ID (CoreSession.exists(new IdRef(“'the id”)) or by query (SELECT * FROM “type of Document), the document exist and the path is correct. Same think with the api play ground.
An idea for the error?
Thanks for your responds.
The problem come from the user workspace, which was duplicated. Same name, same path.
After, for an search by path, on time nuxeo search in a workspace, ohter time in the other.
The duplicate workspaces are created at the first connexion of an new user in our HMI. Two simultaneous webservice calls created a workpace (as it does not yet exist) in two different CoreSession.