[ 
https://issues.apache.org/jira/browse/OLINGO-833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15042123#comment-15042123
 ] 

Michael Bolz commented on OLINGO-833:
-------------------------------------

It seems that OData Specification does not define the Unicode Standard Version 
(neither in the 
[Csld|http://docs.oasis-open.org/odata/odata/v4.0/odata-v4.0-part3-csdl.html#_Attribute_Unicode]
 nor in the 
[ABNF|http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/abnf/odata-abnf-construction-rules.txt]).

So the supported Unicode Standard of Olingo is based on the Java runtime 
version (which is used for the Olingo service).

Based on this and that we want to be Java 6 compliant the test unicode 
character for {{Lo}} gets replaced.
Furthermore only unicode test characters for {{Unicode Standard, version 4.0}} 
or below are allowed for similar test cases.

> SearchTokenizerTest breaks build on JDK 6
> -----------------------------------------
>
>                 Key: OLINGO-833
>                 URL: https://issues.apache.org/jira/browse/OLINGO-833
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.0.0
>            Reporter: Michael Bolz
>            Assignee: Michael Bolz
>            Priority: Minor
>
> The test case {{SearchTokenizerTest -> unicodeInWords}} causes a test failure 
> when it is run with Java 6 (during Olingo build).
> See failure message below:
> {code}
> unicodeInWords(org.apache.olingo.server.core.uri.parser.search.SearchTokenizerTest)
>   Time elapsed: 0.008 sec  <<< ERROR!
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizerException: 
> Forbidden character in state WORD->ᯤ
>       at 
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizer$State.forbidden(SearchTokenizer.java:82)
>       at 
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizer$SearchWordState.nextChar(SearchTokenizer.java:351)
>       at 
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizer.tokenize(SearchTokenizer.java:607)
>       at 
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizerTest$Validator.validate(SearchTokenizerTest.java:379)
>       at 
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizerTest$Validator.resultsIn(SearchTokenizerTest.java:320)
>       at 
> org.apache.olingo.server.core.uri.parser.search.SearchTokenizerTest.unicodeInWords(SearchTokenizerTest.java:194)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to