Dev estimate: 1
Test estimate: 0.5
The BrokeredMessage uses the parameterless version of getBytes to construct an array. This is risky, because getBytes() uses the the platform's default charset, so you don't know what you are going to get.
Ideally, this method should be removed. It is not used in the SDK.
At the very least, this should be made predictable, by changing to getBytes("UTF8").
Dev estimate: 1
Test estimate: 0.5
The
BrokeredMessageuses the parameterless version ofgetBytesto construct an array. This is risky, becausegetBytes()uses the the platform's default charset, so you don't know what you are going to get.Ideally, this method should be removed. It is not used in the SDK.
At the very least, this should be made predictable, by changing to
getBytes("UTF8").