azure-webpubsub icon indicating copy to clipboard operation
azure-webpubsub copied to clipboard

`SendToConnection()`. When `connectionId` is `""`, return `404 not found`. When `connectionId` is a non-existed connection Id, nothing happens.

Open vicancy opened this issue 4 years ago • 2 comments

https://github.com/Azure/azure-webpubsub/issues/33

SendToUser is also the same behavior with empty UserId.

The SDK sends out the request using https://demo-2.webpubsubdev.azure.com/api/hubs/chat/connections//:send?api-version=2020-10-01 as a result 404 returns.

SDK should validate the parameters first when the parameters are in the path.

vicancy avatar Apr 07 '21 12:04 vicancy

This should be fixed in the swagger. To fix this apply a minLength attribute to the swagger parameter (e.g. "minLength": 1`)

KrzysztofCwalina avatar Apr 09 '21 16:04 KrzysztofCwalina

Updated swagger to include the "minLength": https://github.com/Azure/azure-rest-api-specs-pr/pull/2806/files

vicancy avatar Apr 13 '21 05:04 vicancy