You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Henrique Mendonca (JIRA)" <ji...@apache.org> on 2013/05/11 15:21:17 UTC

[jira] [Closed] (THRIFT-1821) problem with sending request with Cyrillic in UTF-8 from node.js to java.

     [ https://issues.apache.org/jira/browse/THRIFT-1821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henrique Mendonca closed THRIFT-1821.
-------------------------------------

    Resolution: Cannot Reproduce

Same as for the other ticket, thanks for reporting it but I extended the nodejs tests but I could not reproduce it, neither with buffered nor framed transports,  node nor java servers (thrift/test/nodejs "make check").
Perhaps have a look on the latest version from our repository and let us know.
Please send us a patch here, if you have a solution or can reproduce it with the unit-tests.
http://wiki.apache.org/thrift/HowToContribute
                
> problem with sending request with Cyrillic in UTF-8 from node.js to java.  
> ---------------------------------------------------------------------------
>
>                 Key: THRIFT-1821
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1821
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Library, Node.js - Compiler, Node.js - Library
>    Affects Versions: 0.9
>            Reporter: Ihor Mysak
>
> Hi guys,
> I used thrift to communicate my services written on java and node.js. (all servers on java, clients on java and on node.js). this bug reproduces just on node.js client.
> In my source I write 
> ...
>  struct = new appSearch.ttypes.ASearchRequest(params);
>  console.log(struct);
>  appSearch.client.search(struct, function(err, result) {
> ...
> With latin query all is ok, but with Cyrillic its return an error
> { query: 'ф',
>   tags: null,
>   categoryIds: null,
>   platforms: null,
>   stores: null,
>   ratings: null,
>   price: null,
>   withFacets: true,
>   retrieveCountByTitle: false,
>   withSpellcheck: false,
>   orders: null,
>   offset: 0,
>   size: 10 }  //  this is  console.log(struct);
> { name: 'TApplicationException',
>   type: 7,
>   message: 'Required field \'withFacets\' was not found in serialized data! Struct: com.airupt.searcher.thrift.ASearchRequest$ASearchRequestStandardScheme@1140382' }   // this is console.log(err);
> my ASearchRequest structure
> struct ASearchRequest {
>     1:optional string query,
>     2:optional set<string> tags,
>     3:optional set<i32> categoryIds,
>     4:optional set<byte> platforms,
>     5:optional set<byte> stores,
>     6:optional set<byte> ratings,
>     7:optional PriceFilter price,
>     
>     8:required bool withFacets,
>     9:required bool retrieveCountByTitle,
>     10:required bool withSpellcheck,
>     
>     11:optional list<ASearchOrder> orders,
>     12:required i32 offset,
>     13:required i32 size
> }
> As I said follow, with latin in requests all works correct.
> Can any one help me with it ?
> transport: thrift.transport.TBufferedTransport
> protocol: thrift.protocol.TBinaryProtocol

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira