[cups.bugs] [MOD] STR #2815: Overzealous localization generates invalid URLs in web interface

Olo olo at altkom.pl
Sun May 4 11:35:07 PDT 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

This problem has been observed with various versions of CUPS, lately with
1.3.2 (Ubuntu Gutsy) and 1.3.7 (Ubuntu Hardy).

Then a user connects to cupsd using a web browser set for a particular
non-english language for which CUPS happens to have translations for, some
URLs generated for web administration links are built using localized
variants of English words, which results in generating invalid URLs.

For example, in Polish localization, "printers" is translated to
"drukarki". Under certain circumstances (setting the default printer), the
user will be directed to an URL of invalid form:
http://CUPSSERVER:631/drukarki/PRINTER_NAME.


Steps to reproduce:

1) Set your browser to request web pages in the Polish language
2) Visit your CUPS server, e.g. http://localhost:631
3) Go to printers, choose a printer, click "Ustaw jako domyślną" (which
is Polish for "Set As Default") and authenticate as a proper admin user
4) You'll see a page with confirmation of success. The link with the
printer name that should lead back to this printer's page is invalid:
http://localhost:631/drukarki/PRINTER_NAME. The work "printers" got
translated into Polish although in the URL it shouldn't be.

Also, as a side effect, after some moments of inactivity, the user gets
redirected to http://localhost.localdomain:631/printers/PRINTER_NAME,
which is also an invalid URL - localhost.localdomain is an invalid FQDN
(at least on Ubuntu).

Link: http://www.cups.org/str.php?L2815
Version: 1.3.7





More information about the cups-devel mailing list