#1196 koji.ensuredir: double-creating when directory is not normalized like "path/"
Closed: Fixed 4 years ago by tkopecek. Opened 5 years ago by julian8628.

when mount option for runroot is end with "/" like "/mnt/koji/foo/bar/"
because this mount point is never normalized, when invoking koji.ensuredir() on builder
os.mkdir() will be triggered twice as:
- os.mkdir('/mnt/koji/foo/bar')
- os.mkdir('/mnt/koji/foo/bar/')
then it will raise OSError which should not happen without race condition.

And, I think we should not raise an exception when directory exists and it is not a dir.


Metadata Update from @julian8628:
- Issue tagged with: bug, easyfix

5 years ago

Metadata Update from @tkopecek:
- Custom field Size adjusted to None
- Issue set to the milestone: 1.19

4 years ago

Metadata Update from @tkopecek:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Metadata Update from @dgregor:
- Issue assigned to julian8628

4 years ago

Metadata Update from @jcupova:
- Issue tagged with: testing-done

4 years ago

Login to comment on this ticket.

Metadata