Project

Profile

Help

Task #2895

Updated by bizhang over 7 years ago

Add Content WSGI application to server content.    Some can be cannibalized from pulp2.    Mainly parts of the ContentView. [0] 

 The Content WSGI application should Needs to be able ported to: 
 * Based on incoming request URL, determine the distribution python3 
 * Match the scheme against (http and https fields).    404 when scheme not enabled. napoleon docstrings. 
 * Query the PublishedArtifact and PublishedMetadata tables (in that order) by URL path component to get the artifact or the metadata. new content model. 
 * respond with contents of the corresponding file new publishing model defined in #2868. 

 For this task the request and response should be handled Starting with a non-apache implementation at first for the content app. There is Plugin Alpha.    Need a task way to do enable this with apache later [1]  

 The stream the bits in a development environment.    Perhaps just have the content app can handle the request and stream the bits (at first).    Apache (xsend) support will be    deploy separately with magic provided later 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 another redmine task. 

Back