[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#370391: [Pkg-cups-devel] Bug#370391: cupsys: Broken links in help section of admin web page



On Tue, 2006-06-06 at 23:17 +0900, Kenshi Muto wrote:
> Hi,
> 
> At Sun, 04 Jun 2006 23:59:45 +0100,
> Sam Morris wrote:
> > Package: cupsys
> > Version: 1.2.1-1
> > Severity: minor
> > 
> > The links to 'Overview of CUPS' and 'What's new in CUPS 1.2' in the help
> > section (e.g., http://localhost:631/help) result in a 404 error.
> 
> Well, I can't reproducible this on my test environment.
> CUPS guys, can you reproduce this problem?

The links are relative links. Therefore if you are at
http://localhost:631/help and click on them then you end up at
http://localhost:631/overview.html.

If you are at http://localhost:631/help/ and click on them then you end
up at the correct place, http://localhost:631/help/overview.html.

Most web servers will redirect you with an HTTP 301 response when you
request a directory name without a trailing slash:

        $ HEAD -S http://localhost/~sam
        HEAD http://localhost/~sam --> 301 Moved Permanently
        HEAD http://localhost/~sam/ --> 200 OK

But CUPS doesn't seem to do this:

        $ HEAD -S http://localhost:631/help
        HEAD http://localhost:631/help --> 200 OK

That's how it's possible to end up at /help and not /help/.

-- 
Sam Morris
http://robots.org.uk/

PGP key id 5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078





Reply to: