Skip to content

Unicode issues in blob/implementation/BlobOperationRestProxy.java #191

Description

@jcookems

Dev estimate: 1
Test estimate: 0.5

The following code exists in BlobOperationRestProxy:

new String(Base64.encode(blockId))

The input for the constructor is a byte array. This is unpredictable because if no encoding is specified, the constructor uses the platform's default charset. For example, if someone sets their platform's default charset to UTF-16, even ASCII characters will be un-parseable.

In the context of the code, it appears that the data should be interpreted using UTF-8. If that is the case, then, it should be made explicit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions