1

I'm using CMIS query language to query information from my Alfresco server. Some of content's properties have Cyrillic names. When I try to insert this names in WHERE clause, I get an error:

[exception] => invalidArgument
[message] => line <line>:<position> no viable alternative at character '<first_cyrillic_symbol>'

How can I pass them?

Dmitriy Korobkov
  • 867
  • 1
  • 11
  • 25
  • How are you doing the query? Can you post the code you're using / method you're using to do it? – Gagravarr Jan 14 '16 at 05:10
  • I'm using `cURL` utility in system shell (on Windows). Everything goes ok, as it should, without cyrillic symbols. – Dmitriy Korobkov Jan 14 '16 at 05:34
  • How are you and/or curl encoding the data to send to the server? – Gagravarr Jan 14 '16 at 06:49
  • 2
    And also, does your query work (cyrillic and all) if you use the [CMIS Workbench](http://chemistry.apache.org/java/developing/tools/dev-tools-workbench.html) to test with? – Gagravarr Jan 14 '16 at 06:50
  • Thanks for `Workbench` link! In workbench picture is the same: only roman - works, with cyrillic - doesn't. Error message is the same too. – Dmitriy Korobkov Jan 14 '16 at 07:23
  • In `cURL` I'm using `--data` key, and then pass url-encoded parameters string. – Dmitriy Korobkov Jan 14 '16 at 07:26
  • Are you using the most recent version of Alfresco? And if not, what happens if you grab that + test with? – Gagravarr Jan 14 '16 at 07:29
  • Version 5.0d (the latest). – Dmitriy Korobkov Jan 14 '16 at 07:51
  • Can you try the [December 2015 5.1 community preview](https://wiki.alfresco.com/wiki/Alfresco_Community_Edition_201512_EA_Release_Notes)? I believe it has a newer version of the Apache Chemistry OpenCMIS engine powering it's CMIS implementation, would be good to check if that's the issue or not – Gagravarr Jan 14 '16 at 08:52
  • Unfortunately, I can use only 5.0d version. – Dmitriy Korobkov Jan 15 '16 at 00:17
  • Don't upgrade, just install it as a second copy to test with. That will let you work out if it's an issue with your slightly older version, or a general one – Gagravarr Jan 15 '16 at 05:21
  • 5.0d is the latest stable version. – Dmitriy Korobkov Jan 17 '16 at 23:43
  • I'm very well aware of that! However, you need to work out if this is something that's fixed in a more recent version (in which case you need a backport), or an ongoing problem (needs reporting + workaround) – Gagravarr Jan 18 '16 at 04:37

0 Answers0