<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>406211</bug_id>
          
          <creation_ts>2019-04-04 10:14:37 +0000</creation_ts>
          <short_desc>Adding SMB(Windows) printer in System Settings fails to add printer if any field contains spaces</short_desc>
          <delta_ts>2026-01-24 12:11:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>systemsettings</product>
          <component>kcm_printer_manager</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dmitri Ionin">dmitri.ionin</reporter>
          <assigned_to name="Daniel Nicoletti">dantti12</assigned_to>
          <cc>4wy78uwh</cc>
    
    <cc>lukasmueller187</cc>
    
    <cc>materka</cc>
    
    <cc>nate</cc>
    
    <cc>plasma-bugs-null</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/print-manager/-/commit/b919691a7003b5b449a55c1a6000c827dace4efa</cf_commitlink>
          <cf_versionfixedin>6.7.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1848523</commentid>
    <comment_count>0</comment_count>
    <who name="Dmitri Ionin">dmitri.ionin</who>
    <bug_when>2019-04-04 10:14:37 +0000</bug_when>
    <thetext>SUMMARY
Silent failure to add Samba/Windows printer if password contains spaces.
If %20 is used in place of space in the password, adding works.
Possibly extends to all special characters, but haven&apos;t tested that extensively.

STEPS TO REPRODUCE
1. Add printer, selecting Samba/Windows URI
2. Fill in uri, user and password
3. Select printer driver

OBSERVED RESULT
Printer is not added if password contains a space.

EXPECTED RESULT
Printer should be added and password encoded/encrypted properly even if password contains space or other special characters.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 18.04.2
System Settings Version 5.12.7
KDE Plasma Version: 5.12.7
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889850</commentid>
    <comment_count>1</comment_count>
    <who name="Konrad Materka">materka</who>
    <bug_when>2019-11-05 10:24:49 +0000</bug_when>
    <thetext>Printer add silently fails when space is also in the printer URI, for example:
Fails:
smb://hostname/Xerox 7228
Works:
smb://hostname/Xerox%207228</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2242456</commentid>
    <comment_count>2</comment_count>
    <who name="">lukasmueller187</who>
    <bug_when>2023-07-24 12:01:08 +0000</bug_when>
    <thetext>The %20 workaround in the path didn&apos;t work for me. Using the CUPS Web-Interface, however, did work with the %20 workaround.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2487804</commentid>
    <comment_count>3</comment_count>
    <who name="Mike">noeerover</who>
    <bug_when>2026-01-23 18:10:30 +0000</bug_when>
    <thetext>Git commit b919691a7003b5b449a55c1a6000c827dace4efa by Mike Noe.
Committed on 23/01/2026 at 15:18.
Pushed by noee into branch &apos;master&apos;.

kcm/qml: Add SMB (Windows) device setup component
FIXED-IN: 6.7.0

M  +3    -1    src/kcm/ui/FindPrinter.qml
A  +83   -0    src/kcm/ui/components/Smb.qml     [License: GPL(v2.0+)]

https://invent.kde.org/plasma/print-manager/-/commit/b919691a7003b5b449a55c1a6000c827dace4efa</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>