[ https://issues.apache.org/jira/browse/THRIFT-4581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer updated THRIFT-4581: ------------------------------- Issue Type: Bug (was: Question) > HttpTransport with JsonProtocol - Dart Client <--> Cpp server. > -------------------------------------------------------------- > > Key: THRIFT-4581 > URL: https://issues.apache.org/jira/browse/THRIFT-4581 > Project: Thrift > Issue Type: Bug > Components: Dart - Library > Affects Versions: 0.11.0 > Environment: The {color:#205081}*client*{color} is a dart app set > with *httptransport* and *JsonProtocol.* The ide used is IntelliJ. > > The {color:#205081}*server*{color} is a cpp program set with *httptransport* > and *JsonProtocol* as well. The problem is the message sent differs from the > message expected. The ide used is QTCreator. > > Both client and server run on ubuntu 16.04 xenial. > AMD FX(tm)-8350 Eight-Core Processor > 16 gb > Reporter: Rommel de Sene Trindade > Priority: Major > > Dart httptransport uses base64 encoding to send http post data but Cpp > httptransport doesn't decode the base64 coded json message. > Eg. > Message sent by dart client: > {code} > POST /olp-0.4 HTTP/1.1 > <http headers> > WzEsIkxvZ2luIiwxLDEseyIxIjp7InJlYyI6eyIxIjp7ImkzMiI6MH0sIjIiOnsiaTMyIjowfSwiNCI6eyJpMzIiOjB9LCI1Ijp7InN0ciI6InJvbW1lbHN0QGdtYWlsLmNvbSJ9LCI2Ijp7InN0ciI6ImRlc2VuIn0sIjciOnsiaTMyIjowfX19fV0= > {code} > > Message expected by cpp server: > {code} > POST /olp-0.4 HTTP/1.1 > <http headers> > [1,"Login",1,0,\{"1": > {"rec":{"5":{"str":""},"6":\{"str":""},"7":\{"i32":0}}}}] > {code} > > The question is: > What setup should be set on cpp server to read the message from thrift dart > lib? -- This message was sent by Atlassian JIRA (v7.6.3#76005)