lwmqtt icon indicating copy to clipboard operation
lwmqtt copied to clipboard

empty usernames are not encoded correctly

Open dustin opened this issue 6 years ago • 1 comments
trafficstars

In generating connect requests, I found that intentionally specifying an empty string as a username is interpreted as no username, so the field is omitted altogether.

AFAICT, an empty username is valid, but is required if you want to specify a password without a username.

I'm not sure how much this actually matters, but it's a test failure I'm working around currently.

dustin avatar Sep 18 '19 17:09 dustin

There's a similar issue with passwords. For the purposes of my tests, I've just converted "" to Nothing in both cases to get all the tests passing.

dustin avatar Sep 18 '19 17:09 dustin

Fixed in ebf53c0. Will be available in next release.

256dpi avatar Feb 05 '23 11:02 256dpi