chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Hübel <>
Subject RE: [jira] [Assigned] (CMIS-344) Query parser should not use UTF-8 encoding
Date Thu, 31 Mar 2011 10:47:19 GMT

as far as I remember this code came originally from your side. Would you have any objections
to apply the proposed patch? Would this break something on your side?


-----Original Message-----
From: Jens Hübel (JIRA) [] 
Sent: Donnerstag, 31. März 2011 12:42
Subject: [jira] [Assigned] (CMIS-344) Query parser should not use UTF-8 encoding


Jens Hübel reassigned CMIS-344:

    Assignee: Jens Hübel

> Query parser should not use UTF-8 encoding
> ------------------------------------------
>                 Key: CMIS-344
>                 URL:
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-server
>    Affects Versions: OpenCMIS 0.4.0
>            Reporter: Michael Dürig
>            Assignee: Jens Hübel
>         Attachments: CMIS-344.patch
> QueryUtil converts the query statement to a UTF-8 encoded byte array which is used as
input to the lexer instead of using the string directly. 
> Instead of
>     CharStream input = new ANTLRInputStream(new ByteArrayInputStream(statement.getBytes("UTF-8")));
> the input stream should be obtained like this:
>     CharStream input = new ANTLRStringStream(statement);
> The former method transforms the characters in the contains clause of the query 
>     SELECT * FROM cmis:document WHERE CONTAINS ('\u4E2D\u6587')
> in an incorrect way. 

This message is automatically generated by JIRA.
For more information on JIRA, see:
View raw message