-
Notifications
You must be signed in to change notification settings - Fork 93
Storage: Content-Range header is formatted with default locale #2972
Copy link
Copy link
Labels
api: storageIssues related to the googleapis/java-storage API.Issues related to the googleapis/java-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-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.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the googleapis/java-storage API.Issues related to the googleapis/java-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-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.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
OS type and version:
Mac OS X/15.3.1/aarch643. Java version:
Oracle Corporation/OpenJDK 64-Bit Server VM/23/23+37-23694. version(s):
2.48.2Steps to reproduce
ps)Any additional information below
The range header is generated formatting the numbers using the default locale. So for
pswe getbytes ۰-۹۲۱۷۳۷۵/۹۲۱۷۳۷۶when it should bebytes 0-9217376/9217376See examples of the issue
java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpContentRange.java
Line 94 in 68e1cf2
java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpContentRange.java
Line 148 in 68e1cf2
It seems it could be resolved by using
%sinstead of%dperhaps?