Bug 1324406 - Error 404 when switching language in HTML manual more than once
Summary: Error 404 when switching language in HTML manual more than once
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: httpd
Version: httpd24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Jan Kaluža
QA Contact: Martin Frodl
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-06 09:34 UTC by Martin Frodl
Modified: 2016-05-31 10:17 UTC (History)
2 users (show)

Fixed In Version: httpd24-httpd-2.4.18-6.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1324416 1324417 (view as bug list)
Environment:
Last Closed: 2016-05-31 10:17:22 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1154 0 normal SHIPPED_LIVE httpd24 bug fix and enhancement update 2016-05-31 13:48:49 UTC

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


Note You need to log in before you can comment on or make changes to this bug.