Project

Profile

Help

Issue #2349

closed

Repoview left in place even when not requested

Added by Ichimonji10 about 8 years ago. Updated over 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.9.0
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Pulp has a "repoview" feature documented here: https://pulp.plan.io/issues/189

A test for this feature is as follows:

1. Create an RPM repository, and add some content to it.
2. Publish the repository. Get /pulp/repos/{rel_url}/, and verify that no redirects occur.
3. Publish the repository with the repoview and generate_sqlite options set to true. Get /pulp/repos/{rel_url}/, and verify that a redirect to /pulp/repos/{rel_url}/repoview/index.html occurs.
4. Repeat step 2.

Unfortunately, the final step will fail. Pulp will redirect a client's request to /pulp/repos/{rel_url}/repoview/index.html. You can even modify the test as follows, and the redirect will still occur:

1. Create an RPM repository, and add some content to it.
2. Publish the repository. Get /pulp/repos/{rel_url}/, and verify that no redirects occur.
3. Publish the repository with the repoview and generate_sqlite options set to true. Get /pulp/repos/{rel_url}/, and verify that a redirect to /pulp/repos/{rel_url}/repoview/index.html occurs.
4. Add more content to the repository.
5. Repeat step 2.

This behaviour seems incorrect to me. In my opinion, Pulp should provide a repoview when requested, and it should not provide a repoview when not requested.

Also available in: Atom PDF