Bug 53880 - Samba shares with consecutive whitespaces not working as expected
Samba shares with consecutive whitespaces not working as expected
Status: NEW
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-10-06 14:45 CEST by Jürn Brodersen
Modified: 2021-10-06 14:46 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.091
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jürn Brodersen univentionstaff 2021-10-06 14:45:16 CEST
Samba shares with consecutive whitespaces not working as expected

While Bug 38688 and Bug 53799 fixed a problem with loading the samba config then it contains shares with consecutive whitespaces, actual accessing such a share is still problematic or even doesn't work at all.

First samba seems to reduce consecutive whitespaces in share names to a single whitespace.
E.g. if the share is called "two  space", it is listed in samba (smbclient -L ...) as "two space" and can only be accessed as "two space". Accessing it using "two  space" results in the following error:
"tree connect failed: NT_STATUS_BAD_NETWORK_NAME" (using smbclient)
I could not find any documentation about this behavior.

Secondly if the directory which should be shared contains consecutive whitespaces, it seems impossible to access that share at all. Even if the share name has no spaces. Trying to access such a share results in the following error:
"tree connect failed: NT_STATUS_NO_SUCH_GROUP" (using smbclient)