Task #3697
Updated by bmbouter over 6 years ago
When the content app finds only a RemoteArtifact, it needs to issue a Redirect to the user. Specifically it needs to redirect to:
{protocol_handler}{redirect_host}:{redirect_port}/{redirect_prefix_path}/{the path to the content the user requested just now}
So if the protocol handler is https://, redirect_host=example.com, redirect_port=443, and redirect_prefix_path = /squid/ then a request came to the content app like:
https://mypulpserver.com/pulp/api/v3/content/path/to/distribution/subpath/to/content/
The redirect would be:
https://example.com/squid/pulp/api/v3/content/path/to/distribution/subpath/to/content/