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

Readonly unlock isn't dealt with when copying an existing file instead of downloading it

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1004
    • Fix Version/s: 2.0.1028
    • Component/s: Synchronizer
    • Sprint:
      drive-7.10-1
    • Story Points:
      1

      Description

      See Processor._download_content:

              # Check if the file is already on the HD
              pair = self._dao.get_valid_duplicate_file(doc_pair.remote_digest)
              if pair:
                  import shutil
                  file_out = self._get_temporary_file(file_path)
                  shutil.copy(local_client._abspath(pair.local_path), file_out)
                  return file_out
      

      This code currently raises an OSError if the parent directory of file_out is readonly.

      This needs to be fixed for NXP-11328.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: