Skip to content

Locale consistency: Some APIs use getBytes() and some use getBytes("UTF-8") #186

Description

@jcookems

Dev estimate: 0.5
Test estimate: 0.5

In .../services/serviceBus/implementation/BrokerPropertiesMapper.java, we have this code:

return mapper.readValue(value.getBytes(), BrokerProperties.class);

This is inconsistent from the rest of the uses of getBytes in the SDK, which always specify UTF-8 encoding. When no encoding is specified, the "platform's default charset" is used.

This could lead to problems, because this means that the behavior of the BrokerPropertiesMapper is dependent on the platform settings, while the rest of the SDK is invariant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions