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?

1 votes

1 answers

1905 views

ANSWER

Are there special characters in the file name? Cause I experienced similar problem (see https://answers.nuxeo.com/general/q/a0bccef4f6fd451e8ffab7af57c6f39e/WebDAV-download-of-files-with-Umlauts-or-special-characters-in-name-fails-with-405-Method-Not-Allowed) when there are special characters in the filename.
01/31/2017

Obviously this works internally in Nuxeo, which uses this all over the place. So you'll have to provide a concrete example of a failure for us to diagnose anything.
01/31/2017



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.

0 votes