Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(migration): case-insensitive share migration #79

Merged
merged 2 commits into from
Mar 3, 2025
Merged

Conversation

DavidePrincipi
Copy link
Member

  • Improve UI validation during Samba share creation: the check if it already exists or not must be case-insensitive, to prevent misconfigurations.
  • Fix the NS7 migration when share name conflicts in the path case are found.

Refs NethServer/dev#7335

Check if a share already exists despite the character case used because
the SMB protocol is case-insensitive with the share name.
@DavidePrincipi DavidePrincipi self-assigned this Mar 3, 2025
In smb.conf, the last entry overrides previous settings. When importing
shares,  consider only the last one, as it contains the actual data.

For example, when migrating *Myshare*, *mYshare*, and *myshare*, the
resulting share name in NS8 is *myshare*, with its filesystem path set
to *myshare*.
@DavidePrincipi DavidePrincipi merged commit 78869a9 into main Mar 3, 2025
1 of 4 checks passed
@DavidePrincipi DavidePrincipi deleted the bug-7335 branch March 3, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants