Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1638

Purge remotely inexistant documents from the DirectEdit upload queue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.4.5
    • Component/s: Direct Edit

      Description

      Error

      If an document from the DirectEdit upload queue does not exist anymore on the server, we will have this repeated error:

      HTTPError: HTTPError(500), error: b'{"entity-type":"document","repository":"default","uid":"94c313d5-c826-4eba-922b-0384776d1a5c","path":"/default-domain/workspaces/mario/segfault.log","type":"File","state":"project","parentRef":"937c4e28-068f-44dd-a737-8b06fdfffc56","isCheckedOut":true,"isVersion":false,"isProxy":false,"changeToken":"7-0","isTrashed":false,"title":"segfault.log","lastModified":"2019-03-28T11:50:48.536Z","properties":{"uid:uid":null,"uid:major_version":0,"uid:minor_version":0', server trace: None
      (2 additional frame(s) were not displayed)
      ...
        File "F:\nxdrive\client\remote_client.py", line 487, in fetch
          return self.execute(command="Document.Fetch", value=get_text(ref), **kwargs)
        File "F:\nxdrive\client\remote_client.py", line 128, in execute
          raise e
        File "F:\nxdrive\client\remote_client.py", line 121, in execute
          return self.operations.execute(**kwargs)
        File "C:\Users\Windows10\Desktop\deploy-dir\3.6.7\lib\site-packages\nuxeo\operations.py", line 200, in execute
          default=kwargs.get('default', object))
        File "C:\Users\Windows10\Desktop\deploy-dir\3.6.7\lib\site-packages\nuxeo\client.py", line 197, in request
          raise self._handle_error(exc)
      
      HTTPError: 500 Server Error:  for url: http://172.16.32.102:8080/nuxeo/site/automation/Document.Fetch
        File "C:\Users\Windows10\Desktop\deploy-dir\3.6.7\lib\site-packages\nuxeo\client.py", line 194, in request
          resp.raise_for_status()
        File "C:\Users\Windows10\Desktop\deploy-dir\3.6.7\lib\site-packages\requests\models.py", line 940, in raise_for_status
          raise HTTPError(http_error_msg, response=self)
      
      DirectEdit unhandled error for ref WindowsPath('94c313d5-c826-4eba-922b-0384776d1a5c_file-content/segfault.log')
      

      Sentry Issue: NUXEO-DRIVE-VA

      Fix

      In such case, log a warning and remove the document from the queue and the FS.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mschoentgen Mickaël Schoentgen
                Reporter:
                mschoentgen Mickaël Schoentgen
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 1 minute
                  1m