Sentry Issue: NUXEO-DRIVE-4XV
The Upload.uid raised in the exception seems to not be the good one.
A few release ago, we allowed an user to upload multiple times the same file in different DT sessions. When an Upload is Paused/Resumed, the Upload uid was fetched by path and the first occurence was returned. Thus, we tried to update the wrong upload causing this exception.
Uploads should be fetched by doc_pair which is the only UNIQUE column in the database for Uploads.