Bug 807913 - Handle case where latest link already exists, but is not a directory
Handle case where latest link already exists, but is not a directory
Product: PulpDist
Classification: Community
Component: Pulp Plugins (Show other bugs)
Unspecified Unspecified
medium Severity medium
: 0.1.0
: ---
Assigned To: Nick Coghlan
Depends On:
  Show dependency treegraph
Reported: 2012-03-29 02:53 EDT by Nick Coghlan
Modified: 2012-04-12 21:49 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-04-12 21:49:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nick Coghlan 2012-03-29 02:53:25 EDT
Creation of the link to the latest directory for a snapshot sync currently fails if a file already exists with that name.

The sync operation should instead remove the offending file before creating the new symbolic link.

(Obvious workaround is to delete the file manually and then rerun the sync operation)
Comment 1 Nick Coghlan 2012-04-12 02:53:28 EDT
Moving to 0.1.0 - this happens regularly when "delete_old_dirs" is set and the previous most recent directory gets deleted during an update.
Comment 2 Nick Coghlan 2012-04-12 21:49:51 EDT
Initial attempt at fixing in 0.0.13 was incorrect (failed to handle broken symlinks correctly), better test and fix implemented for 0.0.14

Note You need to log in before you can comment on or make changes to this bug.