-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Dollar sign is valid character for smb share name but not allowed since Nextcloud 16 #15654
Comments
Please use the issue template: https://github.com/nextcloud/server/blob/master/.github/ISSUE_TEMPLATE/Bug_report.md It's quite impossible to reproduce your report without these information ... |
Steps to reproduce
Expected behaviour Actual behaviour Server configuration Operating system: |
Steps to reproduce Expected behaviour Actual behaviour Server configuration Operating system: |
Thank you ;) Anything in the logs (Server and/or Client)?
You mean |
No, I mean te$t. I just want to make it clear that it doesn't matter where the $ is used in the share name. |
Ok. $ is part of the name of your share? (and not a placeholder you want replaced by nextcloud) |
I tested a solution that i found here on github and than the hidden shares with the $ at the end worked. |
Thanks for your patience 👍 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Regression from #14174 There is a check if all placeholders for external storage configuration is replaced. A placeholder starts with an $. If your share name contains $ the configuration looks incomplete.
Looks like we need to use another character for placeholder ... cc @nextcloud/server-triage @blizzz |
We could use square brackets instead, because they are illegal as per your list. |
I kept the $ to be backwards compatible with the original $user value. Going with the squared brackets or another character would mean to migrate old configs. The logic to look out for incomplete configs was added. It could be dropped, however this could turn out bad in error cases. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
No. I know the report is very hard to read but this issue is about A) Pick another character for placeholders. |
Hey,
I had two problems after updating to 16.0.1.
1.try mounting external storage SMB/CIFS with a share that ends with $ e.g. sharename$ these are "hidden" shares. They used to work fine in at least 13, 14 and 15.
The shares are not connected after the update.
I "fixed" it with the hack in #15238
I "fixed" it with the hack in #13639
replaced
if ($partStorage->instanceOfStorage(Storage\IWriteStreamStorage::class)) {
by
if (false && $partStorage->instanceOfStorage(Storage\IWriteStreamStorage::class)) {
in file:
nextcloud/apps/dav/lib/Connector/Sabre/File.php
The text was updated successfully, but these errors were encountered: