Project

Profile

Help

Issue #3413

Updated by Ichimonji10 over 6 years ago

Let's say I create a distribution by making an HTTP POST request to <code>/api/v3/distributions/</code>, with the following JSON body: 

 <pre><code class="json">{ 
   "base_path": "my-base-path", 
   "http": false, 
   "https": false, 
   "name": "distribution-name", 
   "publication": "http://pulp-3.example.com:8000/api/v3/publications/publication-id/", 
 }</code></pre> 

 This will return a distribution: 

 <pre><code class="json">{ 
   "_href": "http://pulp-3.example.com:8000/api/v3/distributions/distribution-name/", 
   "base_path": "my-base-path", 
   "base_url": "pulp-3.example.com:8000/content/my-base-path", 
   "http": false, 
   "https": false, 
   "name": "distribution-name", 
   "publication": "http://pulp-3.example.com:8000/api/v3/publications/publication-id/", 
   "publisher": null, 
   "repository": null 
 }</code></pre> 

 Furthermore, let's say that the publication at <code>…/api/v3/publications/publication-id/</code> contains a file named <code>1.iso.</code> At which URLs are this file available? None at all. Right?    After all, both "http" and "https" are false. Unfortunately, one can still GET the files at the following URLs: 

 * <code>http://pulp-3.example.com:8000/content/my-base-path/1.iso</code> <code>http://pulp-3.example.com:8000/content/my_base_path/1.iso</code> 
 * <code>https://pulp-3.example.com:8000/content/my-base-path/1.iso</code> <code>https://pulp-3.example.com:8000/content/my_base_path/1.iso</code>

Back