[
https://issues.apache.org/jira/browse/THRIFT-5720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylwester Lachiewicz resolved THRIFT-5720.
------------------------------------------
Fix Version/s: 0.23.0
Resolution: Fixed
Resolving. The generated {{-remote}} script now emits
{{args[i].encode('utf-8')}} for binary fields instead of passing them through
{{eval()}}. Commit {{32b80f629}}, first released in 0.23.0.
_This comment was created with AI assistance._
> Python generated "Service-remote" cannot handle binary arguments
> ----------------------------------------------------------------
>
> Key: THRIFT-5720
> URL: https://issues.apache.org/jira/browse/THRIFT-5720
> Project: Thrift
> Issue Type: Bug
> Components: Python - Compiler
> Reporter: Amos Bird
> Priority: Minor
> Fix For: 0.23.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Python generated "Service-remote" treats binary arguments as strings. This
> doesn't work in Python 3. We should introduce default encoding. Similar issue
> https://issues.apache.org/jira/browse/THRIFT-4920?jql=project%20%3D%20THRIFT%20AND%20component%20%3D%20%22Python%20-%20Compiler%22
--
This message was sent by Atlassian Jira
(v8.20.10#820010)