Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-10231

FileForWriteOnceCompareSame does not respect umask

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: daf_persistence
    • Labels:
      None
    • Templates:
    • Story Points:
      1
    • Sprint:
      DRP S17-5
    • Team:
      Data Release Production

      Description

      Viz:

      $ umask
      0022
       
      $ python
      Python 2.7.13 |Anaconda custom (64-bit)| (default, Dec 20 2016, 23:09:15)
      [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
      Type "help", "copyright", "credits" or "license" for more information.
      Anaconda is brought to you by Continuum Analytics.
      Please check out: http://continuum.io/thanks and https://anaconda.org
      >>> import lsst.daf.persistence.safeFileIo as safeFileIo
      >>> with safeFileIo.FileForWriteOnceCompareSame("bar") as f:
      ...     f.write("foo")
      ...
      >>>
       
      $ ls -l bar
      -rw------- 1 swinbank lsst_users 3 Apr 14 15:24 bar
      

      This means in particular that repositoryCfg.yml files will be written with restrictive permissions. See also DM-10229.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                swinbank John Swinbank
                Reporter:
                swinbank John Swinbank
                Reviewers:
                Nate Pease
                Watchers:
                John Swinbank, Nate Pease, Robert Lupton
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel