Project

Profile

Help

Issue #3878

closed

Published metadata path is saved to None path

Added by daviddavis over 5 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 41
Quarter:

Description

In task #3848, we converted ids from being UUIDs to integer IDs. The advantage of UUIDs is that they can be set before the model is saved. We rely on this here when setting the path to the published metadata:

https://github.com/pulp/pulp/blob/b3adca1dde4658f87c6dd9109fd5969617845203/pulpcore/pulpcore/app/models/storage.py#L144

However, now that we're using int ids (which are set after save), published metadata is getting saved to /var/lib/pulp/published/metadata/None/.

I believe we should be able to simply substitute model.pk with something like uuid4().

Also available in: Atom PDF