Bug 370594

Summary: smb cannot create file with a :
Product: [Frameworks and Libraries] kio-extras Reporter: ekle <kde>
Component: SambaAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: bugseforuns, elvis.angelaccio, kde, nate, sitter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ekle 2016-10-12 20:27:58 UTC
hi,
i opened a smb folder on a server with dolphin network.
when i try to copy a file to it which contains a : then i get an error:
    cannot rename partfile, check permissions
and on the target folder a file is created, which is empty and has as name before the :

Reproducible: Always

Steps to Reproduce:
1. create a file a:b
2. open dolphin a navigate to a network smb folder
3. copy the file to this folder

Actual Results:  
a empty file with name a is created
an error message is displayed

Expected Results:  
the file is copied

dolphin:
  Installiert:           4:16.04.2-2
 *** 4:16.04.2-2 500
        500 http://cdn.debian.net/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status

on siduction-linux
Comment 1 ekle 2016-10-12 20:40:36 UTC
example folder: smb://user@storage/data/
even after accepting the error the action is still shown as unfinished in the notification bar of kde.
Comment 2 Elvis Angelaccio 2017-01-14 11:11:57 UTC
Moving to kio-extras where the smb ioslave lives.
Comment 3 Patrick Silva 2019-03-25 17:55:42 UTC
Bug persists.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Comment 4 Harald Sitter 2019-03-26 11:08:56 UTC
Colons are not valid characters in file names on Windows and by extension SMB. 

You could try to find a way to configure samba/libsamba to support colons, but honestly you'll probably have an easier time simply not using colons.

The stuck notification I cannot reproduce, chances are we actually fixed that somewhere along the line already.
Comment 5 Patrick Silva 2019-03-26 11:11:24 UTC
bug also occurs when I try to copy a file to an ext4 samba share.
Comment 6 Harald Sitter 2019-03-26 11:25:45 UTC
The file system has next to nothing to do with it. A server may be Windows or not, a Client may be Windows or not. Our code is oblivious to either as it acts as a frontend to libsamba, it doesn't deal with the nitty gritty details of the SMB protocol directly. We give the library a URL with colon, whether the client and/or server is configured to correctly map colons to something that wont break is up to samba to figure out.