Project

Profile

Help

Issue #3425

closed

Path on content unit doesn't seem to do anything

Added by daviddavis almost 7 years ago. Updated almost 5 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

When you create a content unit:

https://github.com/pulp/pulp_file#create-file-content-from-an-artifact

You set the relative_path via the artifacts dict on the ContentArtifact here:

https://github.com/pulp/pulp/blob/3.0-dev/pulpcore/pulpcore/app/viewsets/content.py#L57-L59

See the model here:

https://github.com/pulp/pulp/blob/3.0-dev/pulpcore/pulpcore/app/models/content.py#L139

This relative_path field is what the publishing code uses:

https://git.io/vAHHJ

As well as the manifest code:

https://git.io/vAHHU

AFAICT, the path field on FileContent isn't used at all.


Related issues

Related to File Support - Issue #3410: Rename content field "path" to "relative_path"CLOSED - CURRENTRELEASEdaviddavisActions
Is duplicate of File Support - Task #3428: Update content unit creation so it takes only a relative_path and artifact hrefCLOSED - CURRENTRELEASEdaviddavis

Actions

Also available in: Atom PDF