cups "upgrade required" page gives an unfunctional ipv6 URL

Bug #744674 reported by Luiz Angelo Daros de Luca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CUPS
Fix Released
Undecided
Unassigned
cups (Fedora)
Fix Released
Undecided
cups (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: cups

Hello,

When I was remotely rejecting jobs, cups asked for "upgrade" (encrypted connection). No problem at all but the page it gave me was:

426 Upgrade Required

Você deve acessar esta página usando a URL https://2001:1291:xx:xx:xx:xx:xx:631/printers/deskjet-3420.

Howver, IPv6 URL should be:

https://[2001:1291:xx:xx:xx:xx:xx]:631/printers/deskjet-3420.

The latter worked.

Tags: patch
Revision history for this message
In , Wendell (wendell-redhat-bugs) wrote :

Description of problem:

CUPS in a dual-stack environment insists upon some the use of an IPv6 address.

Version-Release number of selected component (if applicable):

$ rpm -q cups
cups-1.3.11-4.fc10.i386

How reproducible:

deterministic

Steps to Reproduce:
1. The printer stops for long enoug ... it is declared "stopped"
2. This is annoying and difficult to explain to civilians
3. An IT supervisor goes to http://printers.example.com:631 and presses "restart"
4. The CUPS service requires a redirect to an IPv6 address but uses an incorrect syntax

Actual results:

CUPS responds with

426 Upgrade Required

You must access this page using the URL https://2001:55c:4c15:7096:a00:46ff:fe16:bdb4:631/admin/?op=start-printer&printer_name=HP-Deskjet-960c.

Expected results:

The printer always works

Failing that

The correct URL syntax is:

https://[2001:55c:4c15:7096:a00:46ff:fe16:bdb4]:631/admin/?op=start-printer&printer_name=HP-Deskjet-960c.

With square brackets aroundt he IPv6 address

Additional info:

Client is Fedora 13 with Firefox 3.6.13
Server is Fedora 10 with cups 1.3

The LAN is dual stacked.
IPv4 to broadcast the printer availabilities; IPv6 "can't do broadcast" (sic)
IPv6 to transfer printer payloads.

Revision history for this message
In , Tim (tim-redhat-bugs) wrote :

Reported upstream. Please note that Fedora 10 is now at end-of-life.

Revision history for this message
In , Tim (tim-redhat-bugs) wrote :

Also affects cups-1.4.6-1.fc14.

Revision history for this message
In , Tim (tim-redhat-bugs) wrote :

Fixed on branch-1.4.

description: updated
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you attach your file /etc/cups/cupsd.conf and post the output of the command

ifconfig

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Upstream bug report with patch:

http://www.cups.org/str.php?L3814

tags: added: patch
Changed in cups (Ubuntu):
status: Incomplete → In Progress
Changed in cups:
status: New → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Fix is prepared and committed to the Debian BZR repository of CUPS. The new CUPS package with the fix will get uploaded after the Natty Beta 1 release this Friday.

Changed in cups (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.4.6-4

---------------
cups (1.4.6-4) unstable; urgency=low

  * debian/patches/fix-broken-ipv6-uris.dpatch: When accessing the web
    interface via http: (unencrypted) and one does an adminstrative task
    which requires encryption, on upgrading to https: (encrypted) mode
    IPv6 IP addresses without "[...]" get inserted into the URL and the
    browser cannot parse the URL correctly. Fixed with a patch from upstream
    (LP: #744674).
  * debian/rules: Convert cups.png (CUPS logo for test page) to RGBA, as the
    original 8-bit-per-pixel color map format leads to a crash in libpng. This
    prevents the CUPS test page and the banner pages from printing
    (LP: #710881).
  * debian/control: Add ImageMagick to the build dependencies, as it is
    needed for the CUPS logo image conversion.
 -- Martin Pitt <email address hidden> Fri, 01 Apr 2011 11:06:02 +0200

Changed in cups (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Luiz Angelo Daros de Luca (luizluca) wrote :

Thanks for the fix.

Revision history for this message
In , Tim (tim-redhat-bugs) wrote :

Should be fixed in this (test) update:
https://admin.fedoraproject.org/updates/cups-1.4.7-2.fc14

Changed in cups (Fedora):
importance: Unknown → Undecided
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.