[midPoint] Problem with Russian Names in ORG

Pavol Mederly mederly at evolveum.com
Tue Dec 6 09:07:35 CET 2016


Oleg,

first thing that catches my eye is:

"i < ar1.size()"

In order to provide correct XML you have to escape the "<" char:

i < ar1.size()

Regards,

Pavol Mederly
Software developer
evolveum.com

On 06.12.2016 8:27, oleg okunev wrote:
> okey...
> may be you can help with loop in expression:
>
> <source>
> <c:path>$user/description</c:path>
> </source>
>
> <expression>
> <script>
> <code>
> ar1 = new ArrayList ('test1','test2')
> ar2 = new ArrayList ('replacetest1', 'replacetest2')
>
> for( i = 0; i < ar1.size() ; i++)
> {
> description= description.replace(ar1[i],ar2[i]);
> }
> return description
>
> </code>
> </script>
> </expression>
>
> <target>
> <c:path>$user/description</c:path>
> </target>
>
>
> But it show error *element parse error: Error: invalid tagName*
>
> Whats wrong?
> may be it helps me with translit
>
>
>     Пятница, 2 декабря 2016, 11:39 +03:00 от Radovan Semancik
>     <radovan.semancik at evolveum.com>:
>
>     Hi,
>
>     There is no easy way.
>
>     The normalization was originally intended for international
>     alphabet support. E.g. it was expected that we could transliterate
>     cyrillic words to latin. However, currently alphabets of all the
>     midpoint subscribers are latin-based. Therefore current midPoint
>     normalizer only support conversion of latin-based national
>     characters and the cyrillic transliteration was never implemented.
>     And currently we have other development priorities. Our priorities
>     are focused on improving the life of midPoint subscribers.
>     Therefore unless we get any substantial subscription from the
>     non-latin-based customer we have no plans to change that. I'm sorry.
>
>     -- 
>     Radovan Semancik
>     Software Architect
>     evolveum.com
>
>
>
>     On 12/02/2016 08:58 AM, oleg okunev wrote:
>>     Morning!
>>
>>     i have successefully test OrgSync Story Test... with English names
>>
>>     BUT
>>     when i begin test with russian names i get problem!
>>
>>     Conflicting object already exists (violated constraint
>>     'uc_org_name')(orgType=PPV(String:replicated);
>>     {http://midpoint.evolveum.com/xml/ns/story/orgsync/ext}orgpath=PPV(String:*Фольклёр/Сказки*);
>>     )
>>     in expression in mapping 'Org-org mapping' in
>>     objectTemplate:10000000-0000-0000-0000-000000000231(Org Template)
>>
>>     midpoint save first org "*Сторонние Организации* " and make
>>     name_norm only space or just empty
>>     so all next names trying to create get same emty name_norm and
>>     fail to create(((
>>
>>     *is any way to fix that?????*
>>
>>
>>     costcenter | displayorder | locality_norm  | locality_orig      
>>                   | name_norm | name_orig    | tenant | oid
>>     ------------+--------------+------------------------------+-------------------------------+-----------+------------------------------------+--------+--------------------------------------
>>                     |                  |                       |    
>>            | p0002      | P0002             |            |
>>     00000000-8888-6666-0000-200000000002
>>     black       |                  |                   | *|        
>>     |* *Сторонние Организации*  |            |
>>     040346cb-88ce-4012-8d52-93eb1e1d2a4f
>>     black       |                  |                   |    
>>        |child          | CHILD          | f          |
>>     2681372b-3a8b-442d-861c-fc6fa0229471
>>                     |                  |                       |    
>>            |ibpm test   | IBPM Test          |            |
>>     828586f3-1444-42b9-b11a-e012c066099b
>>                     |                  |                       |    
>>            |abbwin      | ABB-WIN         |            |
>>     f226c7be-dad5-4415-b4f7-d987fb3856bd
>>                     |                  |       kazan                
>>      | Kazan  |*fil *           | *Домен FIL *                      
>>     |            | e62d247f-bd94-425a-9d82-63927de5b569
>>
>>     ------------+--------------+------------------------------+-------------------------------+-----------+-----------------------+--------+--------------------------------------
>>
>>     P.S. "*Домен FIL*" became " fil". midpoint erase all russian
>>     letters.
>>
>>
>>     _______________________________________________
>>     midPoint mailing list
>>     midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
>>     http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>     _______________________________________________
>     midPoint mailing list
>     midPoint at lists.evolveum.com <mailto:midPoint at lists.evolveum.com>
>     http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20161206/b1aff431/attachment.htm>


More information about the midPoint mailing list