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

Failing test_local_rename_readonly_folder_with_rollback, at least under Linux

    XMLWordPrintable

    Details

      Description

      Fails with:

      Traceback (most recent call last):
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/tests/test_integration_local_move_and_rename.py", line 556, in test_local_rename_readonly_folder_with_rollback
          local_name=u'Original File 1.1.txt').one()
        File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2367, in one
          raise orm_exc.NoResultFound("No row was found for one()")
      NoResultFound: No row was found for one()
      

      Has to do with NXDRIVE-66, seems some sort of deduplicaiton is applied after first synchro, see pair states before and after.

      Beofre first sync:

      sqlite> select local_path from last_known_states;
      /
      /Nuxeo Drive Test Workspace
      /Nuxeo Drive Test Workspace/Original File 1.txt
      /Nuxeo Drive Test Workspace/Original File 2.txt
      /Nuxeo Drive Test Workspace/Original Folder 1
      /Nuxeo Drive Test Workspace/Original Folder 1/Original File 1.1.txt
      /Nuxeo Drive Test Workspace/Original Folder 1/Sub-Folder 1.1
      /Nuxeo Drive Test Workspace/Original Folder 1/Sub-Folder 1.2
      /Nuxeo Drive Test Workspace/Original Folder 2
      /Nuxeo Drive Test Workspace/Original Folder 2/Original File 3.txt
      

      After first sync:

      sqlite> select local_path from last_known_states;
      /
      /Nuxeo Drive Test Workspace
      /Nuxeo Drive Test Workspace/Original File 1.txt
      /Nuxeo Drive Test Workspace/Original File 2.txt
      /Nuxeo Drive Test Workspace/Original Folder 1
      /Nuxeo Drive Test Workspace/Original Folder 1/Original File 1.1__1.txt
      /Nuxeo Drive Test Workspace/Original Folder 1/Sub-Folder 1__1.1
      /Nuxeo Drive Test Workspace/Original Folder 1/Sub-Folder 1__1.2
      /Nuxeo Drive Test Workspace/Original Folder 2
      /Nuxeo Drive Test Workspace/Original Folder 2/Original File 3.txt
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: