Project

General

Profile

Bug #24946

pulp_rewrite roles prevent access to repository 'repos' in product 'pulp'

Added by Matthias Dellweg 11 months ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

In /etc/httpd/conf.d/pulp_rpm.conf the .+ in the rule:
RewriteRule (.+/pulp/repos/)(.*) /pulp/content/var/www/pub/yum/http/repos/$2 [DPI]
is greedy. Thus eating everything until the last /pulp/repos/.
If you create a yum product named pulp with a repository named repos, you cann never reach the content of that repository.
Using
RewriteRule /pulp/repos/(.*) /pulp/content/var/www/pub/yum/http/repos/$1 [DPI]
fixes the problem (the implicit .* does not seem to be greedy).

The same applies to pulp_deb.

History

#1 Updated by Andrew Kofink 11 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.9.0

#2 Updated by Jonathon Turel 11 months ago

  • Target version changed from Katello 3.9.0 to Katello Backlog

Also available in: Atom PDF