You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Furthermore, the service that validates these lengths runs on the JVM and thus uses Java's String class to perform the length check on the string. This length check (see link in the table above) returns a count of code points specific to how Java stores Unicode code points given its 16-bit representation.
In practice, this means there is the following discrepancy:
Language
String
String 'length'
Python
"test亂"
5
Java
"test亂"
5
Python
"test👍"
5
Java
"test👍"
6
In order for this importer to correctly truncate the names with length limits, the bytes of the Python string need to be interrogated to determine the "Java length" of the string, and then the string needs to be truncated such that Unicode characters aren't corrupted in the final truncated string.
Do I have the most recent api-cookbook code?
main
branch of the api-cookbook repo.Is there an existing issue for this?
Current Behavior
An import with Pivotal Tracker stories with titles that exceed 512 characters fails.
Expected Behavior
An import with Pivotal Tracker stories with titles that exceed 512 characters should succeed, truncating the original title.
Minimal Reproducible Example
TODO
Environment
Further Information
No response
The text was updated successfully, but these errors were encountered: