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

Unregistering a sync root that contains a simple quote in its name crashes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0522
    • Component/s: Model
    • Sprint:
      Sprint Drive 7.2-4
    • Story Points:
      1

      Description

      For instance unregistering APPEL D'OFFRES will fail with:

      2015-05-04 20:31:51,411 32423 140152090396416 ERROR    nxdrive.engine.watcher.remote_watcher near "OFFRES": syntax error
      Traceback (most recent call last):
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/engine/watcher/remote_watcher.py", line 303, in _handle_changes
          self._update_remote_states()
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/engine/watcher/remote_watcher.py", line 413, in _update_remote_states
          self._dao.delete_remote_state(doc_pair)
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/engine/dao/sqlite.py", line 421, in delete_remote_state
          c.execute(update + self._get_recursive_condition(doc_pair), ('parent_remotely_deleted',))
      OperationalError: near "OFFRES": syntax error
      

      And leaves the local DB in an inconsistent state:

      /APPEL D'OFFRES|synchronized|deleted|remotely_deleted
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: