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

DirectEdit HTTP 400 error when trying to open file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.0.6
    • Fix Version/s: 3.1.1
    • Component/s: Direct Edit

      Description

      1. install nuxeo server
      2. install nuxeo-drive addon
      3. install drive
      4. import the attached file with drag'n'drop
      5. try to open it with directedit
      6. observe the following trace in the drive logs:
        2018-06-11 17:49:54 20843 140735152529408 DEBUG    nxdrive.wui.application Event url=nxdrive://edit/http/localhost:8080/nuxeo/user/Administrator/repo/default/nxdocid/da34ae9c-43e9-41d8-9413-cd28d586d121/filename/Drive client 3.0.6 might sometimes target WebUI instead of JSF.docx/downloadUrl/nxfile/default/da34ae9c-43e9-41d8-9413-cd28d586d121/file:content/Drive client 3.0.6 might sometimes target WebUI instead of JSF.docx, info={'repo': 'default', 'command': 'download_edit', 'user': 'Administrator', 'doc_id': 'da34ae9c-43e9-41d8-9413-cd28d586d121', 'server_url': 'http://localhost:8080/nuxeo', 'download_url': 'nxfile/default/da34ae9c-43e9-41d8-9413-cd28d586d121/file:content/Drive client 3.0.6 might sometimes target WebUI instead of JSF.docx', 'filename': 'Drive client 3.0.6 might sometimes target WebUI instead of JSF.docx'}
        2018-06-11 17:49:54 20843 140735152529408 DEBUG    nxdrive.wui.application Received nxdrive URL scheme event: nxdrive://edit/http/localhost:8080/nuxeo/user/Administrator/repo/default/nxdocid/da34ae9c-43e9-41d8-9413-cd28d586d121/filename/Drive client 3.0.6 might sometimes target WebUI instead of JSF.docx/downloadUrl/nxfile/default/da34ae9c-43e9-41d8-9413-cd28d586d121/file:content/Drive client 3.0.6 might sometimes target WebUI instead of JSF.docx
        2018-06-11 17:49:54 20843 140735152529408 DEBUG    nxdrive.direct_edit Editing doc da34ae9c-43e9-41d8-9413-cd28d586d121 on http://localhost:8080/nuxeo
        2018-06-11 17:49:54 20843 140735152529408 DEBUG    nxdrive.direct_edit Editing u'Drive client 3.0.6 might sometimes target WebUI instead of JSF.docx'
        2018-06-11 17:49:54 20843 140735152529408 DEBUG    nxdrive.direct_edit Downloading file u'Drive client 3.0.6 might sometimes target WebUI instead of JSF.docx'
        2018-06-11 17:49:54 20843 140735152529408 ERROR    nxdrive.wui.application Error handling URL event: nxdrive://edit/http/localhost:8080/nuxeo/user/Administrator/repo/default/nxdocid/da34ae9c-43e9-41d8-9413-cd28d586d121/filename/Drive client 3.0.6 might sometimes target WebUI instead of JSF.docx/downloadUrl/nxfile/default/da34ae9c-43e9-41d8-9413-cd28d586d121/file:content/Drive client 3.0.6 might sometimes target WebUI instead of JSF.docx
        Traceback (most recent call last):
          File "nxdrive/wui/application.pyc", line 682, in event
          File "nxdrive/direct_edit.pyc", line 335, in edit
          File "nxdrive/direct_edit.pyc", line 296, in _prepare_edit
          File "nxdrive/direct_edit.pyc", line 235, in _download
          File "nxdrive/client/base_automation_client.pyc", line 880, in do_get
        HTTPError: HTTP Error 400: Failed to connect to Nuxeo server u'http://localhost:8080/nuxeo/' with user 'Administrator': HTTP error 400
        2018-06-11 17:50:07 20843 140735152529408 DEBUG    nxdrive.engine.engine Checking sync completed: queue manager is inactive, overall size = 0, empty polls count = 6, local watcher empty events = 1, blacklist = 0, not Windows
        2018-06-11 17:50:37 20843 140735152529408 DEBUG    nxdrive.engine.engine Checking sync completed: queue manager is inactive, overall size = 0, empty polls count = 7, local watcher empty events = 1, blacklist = 0, not Windows
        
      7. observe there is nothing in the Nuxeo server logs

      Note: trying to edit another file like myfile.docx works fine

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ffischer Frantz Fischer
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: