-
Notifications
You must be signed in to change notification settings - Fork 872
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
GUI advanced option force-locale replaces blank string with true #4757
Comments
Jojo-1000
added a commit
to Jojo-1000/duplicati
that referenced
this issue
Jun 23, 2023
There are advanced options such as force-local that expect an empty string in some cases. While saving, these were replaced with 'true' even though there was an equals sign. Now only options without an equals sign are set to true. Closes duplicati#4757
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment info
Description
The
--force-local
option, according to the documentation, can take an empty string. However, in the web GUI, this does not work. If you add the force-local option in the web GUI and leave the input field blank, then it is automatically filled with the stringtrue
, which can be seen by saving, exiting the configuration of the particular backup set and going back in.Duplicati then throws a warning that the locale
true
does not exist. Exact error:[Warning-Duplicati.Library.Main.Controller-LocaleChangeError]: Failed to apply 'force-locale' setting. Please try to update .NET-Framework. Exception was: "Culture name true is not supported. Parameter name: name"
In the command line, this is not a problem, an empty string is accepted. Tested with
duplicati-cli send-mail [email protected] [email protected] --send-mail-url=localhost --force-locale=""
.(And here entering
true
as string also throws an error:duplicati-cli send-mail [email protected] [email protected] --send-mail-url=localhost --force-locale="true"
complains:Failed to apply 'force-locale' setting. Please try to update .NET-Framework. Exception was: "Culture name true is not supported.
)Steps to reproduce
force-locale
option to blank stringtrue
true
is not a valid locale appearsOption automatically set to
true
.Backup throws warning
Option should remain blank.
Backup should complete without warning.
Other Resources
According to issue #4176, the
force-locale
setting does not work at all anyways.The text was updated successfully, but these errors were encountered: