ModuleId Validate does not validate with ModuleIdProperty name but for DeviceId #2061
Labels
bug
Something isn't working.
fix-checked-in
Fix checked into main or preview, but not yet released.
IoTSDK
Tracks all IoT SDK issues across the board
In the below source code, IotHubConnectionStringBuilder->Validate() validates the ModuleId using DeviceIdPropertyName instead of ModuleIdPropertyName
Code:
if (!string.IsNullOrEmpty(ModuleId))
{
ValidateFormat(ModuleId, DeviceIdPropertyName, s_idNameRegex);
}
https://github.com/Azure/azure-iot-sdk-csharp/blob/master/iothub/device/src/IotHubConnectionStringBuilder.cs
The text was updated successfully, but these errors were encountered: