If the service name is too long, printer does not get advertized via DNS-SD
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Natty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: cups
I have several print queues on a print server and they have rather verbose descriptions in their Description/Info fields. The patch to make CUPS' DNS-SD broadcasting of print queues also working with Avahi generates DNS-SD service names as "<CUPS description> @ <Server host name>". Avahi only allows strings with a maximum of 63 characters as service names and the service names generated by the patch are often too long. The printers with too long service names do not get DNS-SD-advertized as Avahi does not accept them.
I have modified the Avahi patch so that in case of too long description strings, they get cut to assure that the service name is never longer than 63 characters.
The attached patch contains the changes and applies to the scheduler/dirsvc.c file after applying the debian/
summary: |
- If the service name too long, printer does not get advertized via DNS-SD + If the service name is too long, printer does not get advertized via + DNS-SD |
Changed in cups (Ubuntu): | |
assignee: | nobody → Heru Herdianto (herdiantoheru-yahoo) |
Changed in cups (Ubuntu Natty): | |
assignee: | nobody → Heru Herdianto (herdiantoheru-yahoo) |
Changed in cups (Ubuntu Natty): | |
assignee: | Heru Herdianto (herdiantoheru-yahoo) → nobody |
Changed in cups (Ubuntu): | |
assignee: | Heru Herdianto (herdiantoheru-yahoo) → nobody |
Tim, can you apply this chabge to the CUPS Avahi patch upstream? Thanks.