Bug 1255895 - [extmgr] load extension properties as unicode
Summary: [extmgr] load extension properties as unicode
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Extension-API
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-3.5.5
: 3.5.5
Assignee: Alon Bar-Lev
QA Contact: Ondra Machacek
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-21 19:50 UTC by Alon Bar-Lev
Modified: 2016-02-10 19:09 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-26 13:43:41 UTC
oVirt Team: Infra
Embargoed:
alonbl: ovirt-3.5.z?
alonbl: ovirt-3.6.0?
rule-engine: planning_ack?
alonbl: devel_ack+
rule-engine: testing_ack?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 45195 0 master MERGED extmgr: read properties files as unicode Never
oVirt gerrit 45197 0 ovirt-engine-3.6 MERGED extmgr: read properties files as unicode Never
oVirt gerrit 45198 0 ovirt-engine-3.5 MERGED extmgr: read properties files as unicode Never

Description Alon Bar-Lev 2015-08-21 19:50:48 UTC
Currently the properties files are read as ANSI, dropping any unicode char.

Comment 1 Pavel Novotny 2015-09-17 13:22:25 UTC
Please can you describe what this bug is about and how to verify it? Thanks.

Comment 2 Alon Bar-Lev 2015-09-17 14:02:59 UTC
(In reply to Pavel Novotny from comment #1)
> Please can you describe what this bug is about and how to verify it? Thanks.

for example create ldap configuration with unicode profile name, you can copy/paste from here between arrows:

-->פרופיל1<--

you will notice that before we could not read this properties file.

Comment 3 Ondra Machacek 2015-09-18 11:51:27 UTC
I just can't get it work.

When I try to login as user with UTF-8 chars. I get no 'search for princ', bind is successfull:

2015-09-18 13:37:18,416 DEBUG [org.ovirt.engineextensions.aaa.ldap.Framework] (ajp-/127.0.0.1:8702-6) BindRequest: SimpleBindRequest(dn='čeněk.lab.eng.brq.redhat.com')
2015-09-18 13:37:18,416 DEBUG [org.ovirt.engineextensions.aaa.ldap.Framework] (ajp-/127.0.0.1:8702-6) bind
2015-09-18 13:37:18,419 DEBUG [org.ovirt.engineextensions.aaa.ldap.Framework] (ajp-/127.0.0.1:8702-6) BindResult: LDAPResult(resultCode=0 (success), messageID=3)
........
2015-09-18 13:37:18,459 DEBUG [org.ovirt.engineextensions.aaa.ldap.Framework] (ajp-/127.0.0.1:8702-6) SearchRequest: SearchRequest(baseDN='', scope=SUB, deref=NEVER, sizeLimit=0, timeLimit=0, filter='&(userPrincipalName=čeněk.lab.eng.brq.redhat.com)', attrs={cn}, controls={SimplePagedResultsControl(pageSize=100, isCritical=false)})
2015-09-18 13:37:18,462 DEBUG [org.ovirt.engineextensions.aaa.ldap.Framework] (ajp-/127.0.0.1:8702-6) SearchResult: SearchResult(resultCode=0 (success), messageID=3, entriesReturned=0, referencesReturned=0, responseControls={SimplePagedResultsControl(pageSize=0, isCritical=false)})



When I try to use UTF-8 user in config file, fails while creating gc pool:

2015-09-18 13:48:03,369 DEBUG [org.ovirt.engineextensions.aaa.ldap.Framework] (ServerService Thread Pool -- 54) BindRequest: SimpleBindRequest(dn='čeněk.lab.eng.brq.redhat.com')
2015-09-18 13:48:03,369 DEBUG [org.ovirt.engineextensions.aaa.ldap.Framework] (ServerService Thread Pool -- 54) Creating LDAPConnectionPool
..
2015-09-18 13:48:03,728 DEBUG [org.ovirt.engineextensions.aaa.ldap.Framework] (ServerService Thread Pool -- 54) Sequence ad-open-pools create gc pool failed due to exception: 80090308: LdapErr: DSID-0C0903C5, comment: AcceptSecurityContext error, data 52e, v2580
2015-09-18 13:48:03,729 DEBUG [org.ovirt.engineextensions.aaa.ldap.Framework] (ServerService Thread Pool -- 54) Exception during sequence: LDAPException(resultCode=49 (invalid credentials), errorMessage='80090308: LdapErr: DSID-0C0903C5, comment: AcceptSecurityContext error, data 52e, v2580', diagnosticMessage='80090308: LdapErr: DSID-0C0903C5, comment: AcceptSecurityContext error, data 52e, v2580')


Bind and search works OK in ldapsearch. Is issue on my side?

Comment 4 Alon Bar-Lev 2015-09-18 12:00:39 UTC
> When I try to use UTF-8 user in config file, fails while creating gc pool:

the issue here is plain text, such as profile name (user visible) or any unicode string, unrelated to aaa specifically, the read of the file was invalid.

never actually tried bind user this way... but I do know that utf-8 user is working in master with sso (first time we actually tried that).

let's resolve this bug if profile name can be utf-8 other issues will be addressed when sso will be available.

but I will try this anyway :)

Comment 5 Ondra Machacek 2015-09-18 12:08:55 UTC
profile name works fine with utf-8

Comment 6 Red Hat Bugzilla Rules Engine 2015-10-18 08:21:35 UTC
Fixed bug tickets must have version flags set prior to fixing them. Please set the correct version flags and move the bugs back to the previous status after this is corrected.

Comment 7 Sandro Bonazzola 2015-10-26 13:43:41 UTC
oVirt 3.5.5 has been released including fixes for this issue.


Note You need to log in before you can comment on or make changes to this bug.