Bug 1324406

Summary: Error 404 when switching language in HTML manual more than once
Product: Red Hat Software Collections Reporter: Martin Frodl <mfrodl>
Component: httpdAssignee: Jan Kaluža <jkaluza>
Status: CLOSED ERRATA QA Contact: Martin Frodl <mfrodl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: httpd24CC: jorton, kanderso
Target Milestone: beta   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: httpd24-httpd-2.4.18-6.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1324416 1324417 (view as bug list) Environment:
Last Closed: 2016-05-31 10:17:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Martin Frodl 2016-04-06 09:34:34 UTC
Description of problem:
When trying to switch the language of HTML manual pages more than once, the result is always 'Not Found'. Specifically, clicking e.g. the 'fr' link for the first time redirects user to the '/fr' namespace within which all subsequent links will be interpreted. When a language link is clicked again now, user is redirected to a page within, say, the /fr/en namespace, rather than switching to /en. Since /fr/en or any analogous directories do not exist on the server, a 'Not Found' error is returned.

Version-Release number of selected component (if applicable):
httpd24-httpd-manual-2.4.12-4.el6.2.noarch
httpd24-httpd-manual-2.4.12-6.el7.1.noarch

How reproducible:
Well.

Steps to Reproduce:
1. yum -y install httpd24 httpd24-httpd httpd24-httpd-manual
2. service httpd24-httpd start
3. In browser, go to http://localhost/manual/
4. Click one of the 'Available Languages', e.g. 'fr'
5. Click one of the 'Available Languages', e.g. 'en'

Actual results:
Goes to http://localhost/manual/fr/en/, which does not exist.

Expected results:
Go to http://localhost/manual/en/.

Additional info:
This 'language cumulation' happens on any manual page, not just the main one.

Comment 1 Joe Orton 2016-04-06 10:39:11 UTC
Nice catch, looks broken for a while.  I've fixed this in Fedora by using redirects for every /manual/??/ language link.

http://pkgs.fedoraproject.org/cgit/rpms/httpd.git/diff/?id=a4ba0cdfda0ff783b250eec9f0f613bf42931de7

Comment 8 errata-xmlrpc 2016-05-31 10:17:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1154