Project

Profile

Help

Task #2895

closed

Task #2868: Platform support for publishing.

As a user, I can have content served to me by Pulp

Added by jortel@redhat.com over 7 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 25
Quarter:

Description

Add content handling urls to serve conent. Some can be cannibalized from pulp2. Mainly parts of the ContentView. [0]

The handling URLs should be able to:

  • Based on incoming request URL, determine the distribution
  • Match the scheme against (http and https fields). 404 when scheme not enabled.
  • Query the PublishedArtifact and PublishedMetadata tables (in that order) by URL path component to get the artifact or the metadata.
  • respond with contents of the corresponding file

For this task the request and response should be handled with the normal WSGI application. There is a task to do enable this with apache later [1].

The content urls can be broken out separately later with magic in the settings.py and/or separate .wsgi files.

[0] https://github.com/pulp/pulp/tree/91a1e28c9e7d3dee418d5c7680dbf25c3e7adc63/server/pulp/server/content/web/views.py

[1] https://pulp.plan.io/issues/2914

Also available in: Atom PDF