Bug 418780 - Unable to connect samba share with Turkish locale
Summary: Unable to connect samba share with Turkish locale
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 20.07.80
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-12 12:45 UTC by Numan Demirdöğen
Modified: 2022-11-02 05:38 UTC (History)
2 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 Numan Demirdöğen 2020-03-12 12:45:18 UTC
With Turkish locale settings, I can not connect to a directory, which is shared using samba, under Windows operating system.

Not working locale settings:
locale
LANG=tr_TR.UTF-8
LANGUAGE=tr:en_GB
LC_CTYPE="tr_TR.UTF-8"
LC_NUMERIC=tr_TR.UTF-8
LC_TIME=tr_TR.UTF-8
LC_COLLATE=tr_TR.UTF-8
LC_MONETARY=tr_TR.UTF-8
LC_MESSAGES="tr_TR.UTF-8"
LC_PAPER="tr_TR.UTF-8"
LC_NAME="tr_TR.UTF-8"
LC_ADDRESS="tr_TR.UTF-8"
LC_TELEPHONE="tr_TR.UTF-8"
LC_MEASUREMENT=tr_TR.UTF-8
LC_IDENTIFICATION="tr_TR.UTF-8"
LC_ALL=

Working locale settings:
locale
LANG=en_GB.UTF-8
LANGUAGE=tr:en_GB
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC=tr_TR.UTF-8
LC_TIME=tr_TR.UTF-8
LC_COLLATE=tr_TR.UTF-8
LC_MONETARY=tr_TR.UTF-8
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT=tr_TR.UTF-8
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=

Samba configuration options:
 testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
        dos charset = cp932
        log file = /var/log/samba/log.%m
        logging = file
        map to guest = Bad User
        max log size = 1000
        obey pam restrictions = Yes
        pam password change = Yes
        panic action = /usr/share/samba/panic-action %d
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        passwd program = /usr/bin/passwd %u
        server min protocol = SMB3_00
        server role = standalone server
        server string = %h server (Samba, Ubuntu)
        unix password sync = Yes
        usershare allow guests = Yes
        idmap config * : backend = tdb


[printers]
        browseable = No
        comment = All Printers
        create mask = 0700
        path = /var/spool/samba
        printable = Yes


[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers


STEPS TO REPRODUCE
1. Install Kubuntu with Turkish local or change system locale to Turkish either via command line or system settings application.
2. Enter the URL of a directory shared using samba

OBSERVED RESULT

If I try to open a directory shared using samba by entering its URL to Dolphin's location bar, I get this message:

EXPECTED RESULT

If the URL of a directory shared using samba is entered to the location bar of Dolphin, that directory should be opened regardless of system's locale language. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 19.10
(available in About System)
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
LC_ALL=C apt-cache policy dolphin
dolphin:
  Installed: 4:19.04.3-0ubuntu1
  Candidate: 4:19.04.3-0ubuntu1
  Version table:
 *** 4:19.04.3-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu eoan/universe amd64 Packages
        100 /var/lib/dpkg/status

LC_ALL=C apt-cache policy samba-common
samba-common:
  Installed: 2:4.10.7+dfsg-0ubuntu2.4
  Candidate: 2:4.10.7+dfsg-0ubuntu2.4
  Version table:
 *** 2:4.10.7+dfsg-0ubuntu2.4 500
        500 http://archive.ubuntu.com/ubuntu eoan-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu eoan-updates/main i386 Packages
        500 http://archive.ubuntu.com/ubuntu eoan-security/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu eoan-security/main i386 Packages
        100 /var/lib/dpkg/status
     2:4.10.7+dfsg-0ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu eoan/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu eoan/main i386 Packages

LC_ALL=C apt-cache policy samba-common-bin
samba-common-bin:
  Installed: 2:4.10.7+dfsg-0ubuntu2.4
  Candidate: 2:4.10.7+dfsg-0ubuntu2.4
  Version table:
 *** 2:4.10.7+dfsg-0ubuntu2.4 500
        500 http://archive.ubuntu.com/ubuntu eoan-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu eoan-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2:4.10.7+dfsg-0ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu eoan/main amd64 Packages

LC_ALL=C apt-cache policy python3-samba
python3-samba:
  Installed: 2:4.10.7+dfsg-0ubuntu2.4
  Candidate: 2:4.10.7+dfsg-0ubuntu2.4
  Version table:
 *** 2:4.10.7+dfsg-0ubuntu2.4 500
        500 http://archive.ubuntu.com/ubuntu eoan-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu eoan-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2:4.10.7+dfsg-0ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu eoan/main amd64 Packages
Comment 1 Numan Demirdöğen 2020-03-12 12:57:35 UTC
Sorry, I forgot to add what happens when I try to connect to samba share:

OBSERVED RESULT

If I try to open a directory shared using samba by entering its URL to Dolphin's location bar, I am asked to enter user name and password. Although I enter the correct credentials, I am repeatedly asked for them. And If I cancel the operation, I get this message:

Access denied to smb://something%5Cuser@IP/directory.
Comment 2 Zamundaaa 2020-07-25 22:39:17 UTC
Exact same thing with German locale:
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=
Comment 3 Numan Demirdöğen 2022-11-02 05:38:17 UTC
The bug persists in version 21.10. If I use tr_TR.UTF-8 as the region locale via System Settings > Regional Settings > Formats > Region, I can not access the shared SMB directory, which means that I am asked to enter credentials repeatedly. But, I can mount the directory as cifs using the below command:

mount -v -t cifs //10.10.1.49/DIS-ILISKILER /media/numan/samba -o credentials=/etc/samba/credentials/share,iocharset=utf8,uid=numan,gid=numan
mount.cifs kernel mount options: ip=10.10.1.49,unc=\\10.10.1.49\DIS-ILISKILER,iocharset=utf8,uid=1000,gid=1000,user=kmbsndemirdogen,domain=kmarasbsbel,pass=********

The user name for the SMB access is in the form of a NetBIOS name: kmarasbsbel\kmbsndemirdogen