SettingManager will do nothing if we call SetAsync
with an undefined provider
#18808
Closed
1 task done
SetAsync
with an undefined provider
#18808
Is there an existing issue for this?
Description
SetAsync(string name, string value, string providerName, string providerKey, bool forceToSet = false)
:abp/modules/setting-management/src/Volo.Abp.SettingManagement.Domain/Volo/Abp/SettingManagement/SettingManager.cs
Lines 126 to 129 in b595ff4
When the
providers
list is empty, this call will do nothing and lose the setting value. Instead of throwing an exception which I expected.Reproduction Steps
Call
await SettingManager.SetAsync(key, value, "foo", null);
Expected behavior
Throw an exception to describe no providers named 'foo'.
Actual behavior
The method call finished successfully and did nothing.
Regression?
No response
Known Workarounds
No response
Version
7.4.5
User Interface
Common (Default)
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered: