You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 --send-mail-to=test@example.net --send-mail-from=test@example.net --send-mail-url=localhost --force-locale="".
(And here entering true as string also throws an error: duplicati-cli send-mail --send-mail-to=test@example.net --send-mail-from=test@example.net --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
Make a backup set in the GUI
set the force-locale option to blank string
save, close and re-open the config page of that backup
see that the blank field was filled with true
run the backup
warning that true is not a valid locale appears
Actual result:
Option automatically set to true.
Backup throws warning
Expected result:
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:
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.
Closesduplicati#4757
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 --send-mail-to=test@example.net --send-mail-from=test@example.net --send-mail-url=localhost --force-locale=""
.(And here entering
true
as string also throws an error:duplicati-cli send-mail --send-mail-to=test@example.net --send-mail-from=test@example.net --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: