Bug 370594 - smb cannot create file with a :
Summary: smb cannot create file with a :
Status: RESOLVED NOT A BUG
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Samba (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-12 20:27 UTC by ekle
Modified: 2019-03-26 11:25 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.