-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 7.10-HF45, 8.10-HF36, 9.10-HF18, 10.2
-
Component/s: Nuxeo Drive
-
Tags:
-
Backlog priority:600
-
Sprint:nxDrive 10.10.4, nxDrive 10.10.5
-
Story Points:2
Observed behavior:
Some files returned by the server have notInBinaryStore as their digest. Drive raises an error because it cannot validate the integrity of the document.
This error was caused by a document of the type MailMessage. The method which gets the blob of this document has been overwritten to return the text of the mail, which is effectively an html body. If we allow the synchronization of those documents by catching the digest error, Drive would encounter an error while trying to upload the blob back after local modification.
Solution:
Upon collection of document changes server-side, we should avoid collecting mails because they don't actually have blobs.
Relevant Drive Logs:
2018-07-06 09:54:56 88755 123145495531520 ERROR nxdrive.engine.processor Unknown error Traceback (most recent call last): File "nxdrive/engine/processor.py", line 232, in _execute File "nxdrive/engine/processor.py", line 1011, in _synchronize_remotely_created File "nxdrive/engine/processor.py", line 1068, in _create_remotely File "nxdrive/engine/processor.py", line 834, in _download_content File "nxdrive/client/remote_file_system_client.py", line 120, in stream_content Exception: Unknown digest algorithm for notInBinaryStore 2018-07-06 09:54:56 88755 123145495531520 DEBUG nxdrive.engine.workers Increasing error [SYNC_HANDLER__synchronize_remotely_created] ('Unknown digest algorithm for notInBinaryStore') for <StateRow[8] local_path=u'/Professional Services for SomePlace 2018/body.html', remote_ref=u'defaultFileSystemItemFactory#default#84424b00-6ec8-4299-8393-4f3f7ac8bd91', local_state=u'unknown', remote_state=u'created', pair_state=u'remotely_created', filter_path=None> 2018-07-06 09:54:56 88755 123145495531520 DEBUG nxdrive.engine.queue_manager Blacklisting pair for 60s: <StateRow[8] local_path=u'/Professional Services for SomePlace 2018/body.html', remote_ref=u'defaultFileSystemItemFactory#default#84424b00-6ec8-4299-8393-4f3f7ac8bd91', local_state=u'unknown', remote_state=u'created', pair_state=u'remotely_created', filter_path=None>
- is related to
-
NXDRIVE-1258 Better handle unknown digest algorithms
- Resolved
-
NXP-24207 Make saveDocument and createDocument return their passed DocumentModel
- Open
-
NXDRIVE-1374 Mailbox synchronization fails in Nuxeo Drive
- Resolved
-
NXDRIVE-1885 Ignore files with the 'notInBinaryStore' digest
- Resolved