utils.fs.atomic_write does not preserve file ownership

Bug #1443346 reported by ubuntudotcom1
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
ubuntudotcom1

Bug Description

The atomic_write operation in utils.fs.py does not preserve the uid / gid ownership attributes of the file. This bug was originally discovered during testing of the new configuration file backend (that uses atomic_write to update configuration files.)

Related branches

Revision history for this message
Raphaël Badin (rvb) wrote :

The fix for this has landed (and it seems it caused bug 1446840)… but it would be great to explain exactly why this bug was filed in the first place. I mean, it seems wrong not to preserve file ownership but it would be good to know the precise problem that caused this bug to be filed.

Changed in maas:
status: In Progress → Fix Committed
description: updated
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.