Cannot create shares in Amahi dashboard with special characters
System 3.14.27-100.fc19.x86_64 ,x86_64
I used to have shares containing special characters as : "08 år"
The issue is that i am not allowed to create a share with this name.
I have tried to manually edit greyhole.conf and smb.conf to include these shares, but smb.conf keeps deleting the entries (probably based on the shares created in the dashboard) This in turn keeps greyhole crashing/not initializing as there is a reference to a share not named in smb.conf
The issue is a problem as i now try to reconnect old greyhole drives containing files in those shares - my workaround will be renaming shares, mount shares locally and mount drives in a usb bay to transfer manually into the new shares.
If there is any additional information needed feel free to ask.
#3 Updated by cpg about 6 years ago
the problem is in this line in the code which validates the names of shares to make some sense. Unfortunately, it's too restrictive.
Samba does take share names like 08 år (as well it should), however, detecting that the name is valid (does not have non-printable chars, etc.) is harder to do with a regular expression for the :format validation.
one possibility is to simply remove this validation and allow anything and hope that the UI is controlling this, without much other checking in the model.
Also available in: Atom