Project

Profile

Help

Issue #4437

Updated by bmbouter over 5 years ago

h2. Problem 

 Assume that A plugin writer is adding custom routes can't seem to serve their content. They likely require this because they need more control when serving an Artifact, e.g. response headers. When their adapt the base_url field of the Distribution serializes accordingly. https://github.com/pulp/pulp/blob/cf30f2e9a77f7ad935184c5cbe58dfad788febc3/pulpcore/app/serializers/fields.py#L157 seems to hard code the base_path it will serve all Pulp content at /pulp/content/. This is correct for most Content, but not for this type which serves it at a custom route in base url and the content app, e.g. /mycustomurl/. 

 The Distributor Serializer/Viewset is also are not part of the plugin API which prevents the reuse of that serializer/viewset. API. 

 This was originally identified by @gmbnomis in "this comment":https://pulp.plan.io/issues/4273?pn=1#note-6 

 h2. Solution 

 Make the Serializer and Viewset part of the plugin API

Back