You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "zhimin wu (Jira)" <ji...@apache.org> on 2024/03/31 09:36:00 UTC
[jira] [Comment Edited] (KYLIN-5793) When integrating with LDAP and the configured admin group name is Chinese, system admin users occasionally have abnormal permissions
[ https://issues.apache.org/jira/browse/KYLIN-5793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17832564#comment-17832564 ]
zhimin wu edited comment on KYLIN-5793 at 3/31/24 9:35 AM:
-----------------------------------------------------------
*Fix Design*
In `kylinSecurity.xml`, the value injected through `${kylin.security.acl.admin-role}` is garbled. The key is to solve the problem of garbled Chinese characters here.
The injection of property values in XML through `${}` is implemented by Spring. To address this, modify the `org.apache.kylin.rest.security.PasswordPlaceholderConfigurer` class by adding the following line of code:
{code:java}
this.setFileEncoding(Charset.defaultCharset().toString());{code}
was (Author: jueyi):
**Fix Design**
In `kylinSecurity.xml`, the value injected through `${kylin.security.acl.admin-role}` is garbled. The key is to solve the problem of garbled Chinese characters here.
The injection of property values in XML through `${}` is implemented by Spring. To address this, modify the `org.apache.kylin.rest.security.PasswordPlaceholderConfigurer` class by adding the following line of code:
```java
this.setFileEncoding(Charset.defaultCharset().toString());
```
> When integrating with LDAP and the configured admin group name is Chinese, system admin users occasionally have abnormal permissions
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: KYLIN-5793
> URL: https://issues.apache.org/jira/browse/KYLIN-5793
> Project: Kylin
> Issue Type: Bug
> Components: Others
> Reporter: zhimin wu
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)