Wrong URI generated for SMB printer

Bug #128261 reported by Patrice Vetsel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: system-config-printer

With Gutsy Tribe 3 and s-c-p 0.7.70-1ubuntu2
the name of my printer samba shared is truncated

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Well displayed with g-c-m
"HP 1120C A3"

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Well displayed with cups web interface

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Wrong displayed with s-c-p
"smb://PATRICE/HP"

Revision history for this message
Tim Waugh (twaugh) wrote :

I think this will be fixed when we switch from smbclient to findsmb.

Changed in system-config-printer:
importance: Undecided → Medium
status: New → Confirmed
Changed in system-config-printer:
status: Confirmed → In Progress
Changed in system-config-printer:
status: In Progress → Fix Committed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

system-config-printer (0.7.71+-svn1415-0ubuntu1) gutsy; urgency=low

  * New upstream release
     o Subversion snapshot r1415
     o Search for SMB servers not only via "nmblookup -M -- -" but also with
       "nmblookup '*'" (LP: #127152).
     o Take into account that SMB share names can have spaces when scanning
       network for SMB-provided printers (LP: #128261).
     o Make sure that in case of the detected printer being unknown always
       the text-only printer is pre-selected (LP: #102389).
     o Let the generic PostScript PPD coming with CUPS have a higher priority
       than the generic PostScript PPD of Foomatic.
     o Fixed a traceback when trying to find a PPD for a printer with no
       digits in the model name and where the model name does not match
       any of the PPDs exactly.
  * debian/control: Added "Recommends: hal-cups-utils" (LP: #132994).

 -- Till Kamppeter <email address hidden> Tue, 21 Aug 2007 17:51:44 +0100

Changed in system-config-printer:
status: Fix Committed → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Patrice, can you check whether it really works for you now?

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Sorry i add to re-open this bug too :/

Changed in system-config-printer:
status: Fix Released → In Progress
Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Always the same problem

"smb://ENTREPRISE/PATRICE/HP" instead of "smb://ENTREPRISE/PATRICE/HP 1120C A3"

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

Spaces in URIS are generally not allowed and must be quoted. I have fixed this problem now. Try the attached file replacing /usr/share/system-config-printer/system-config-printer.py by this file.

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

New package on its way to Gutsy. Here you can download it for testing:

http://www.linux-foundation.org/~till/tmp/ubuntu/gutsy/system-config-printer/

Changed in system-config-printer:
status: In Progress → Fix Committed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

system-config-printer (0.7.71+-svn1418-0ubuntu1) gutsy; urgency=low

  * New upstream release
     o Subversion snapshot r1418
     o Search all SMB servers for a given domain via "nmblookup -R '<DOMAIN>'".
       The former "smbclient -N -L //<DOMAIN IP>" is used as a fallback. Fixes
       LP: #127152
     o Made sure that all items in the tree list of SMB domains/servers/shares
       have the little triangle to show the sub-item list, even before the
       sub-items were scanned. Fixes LP: #127152
     o Quote/Unquote all elements of the SMB device URIs, as spaces are
       also allowed in SMB host and share names. Fixes LP: #128261
     o Handle exceptions raised by the browse_smb_hosts() function if it
       is called before the add-printer wizard window is open. Fixes
       LP: #133573
     o Scan SMB host list when in the main window the "Change" button for
       the URI is clicked and the URI is an SMB URI. This way the list
       of SMB domains/servers/shares in the dialog for setting the URI
       does not stay empty.

 -- Till Kamppeter <email address hidden> Thu, 23 Aug 2007 09:27:43 +0100

Changed in system-config-printer:
status: Fix Committed → Fix Released
Revision history for this message
Dan Wood (dan-wood) wrote :

Karmic Alpha (9.10)

This problem seems to have re-appeared.

My printer: "smb://HOME/NETWORKSTORAGE/HL-1440-series" appears in SMB Browser as "smb://HOME/NETWORKSTORAGE/HL-1440-serie" so is missing the final character.

This bug sounded like mine, so I've posted here instead of filing a new bug. Hope that was the right thing to do!

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.