这是indexloc提供的服务,不要输入任何密码
Skip to content

Storage: Content-Range header is formatted with default locale #2972

@nicktindall

Description

@nicktindall

Environment details

OS type and version: Mac OS X/15.3.1/aarch64
3. Java version: Oracle Corporation/OpenJDK 64-Bit Server VM/23/23+37-2369
4. version(s): 2.48.2

Steps to reproduce

  1. Run Java with locale that uses non-english number characters (e.g. ps)
  2. Execute a resumable upload

Any additional information below

The range header is generated formatting the numbers using the default locale. So for ps we get

bytes ۰-۹۲۱۷۳۷۵/۹۲۱۷۳۷۶ when it should be bytes 0-9217376/9217376

See examples of the issue

It seems it could be resolved by using %s instead of %d perhaps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: storageIssues related to the googleapis/java-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions