Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25841

Ignore files not present in binary store

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.10-HF45, 8.10-HF36, 9.10-HF18, 10.2
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Nuxeo Drive
    • Backlog priority:
      600
    • Sprint:
      nxDrive 10.10.4, nxDrive 10.10.5
    • Story Points:
      2

      Description

      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>
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d