Skip to content

[BUG] when user assign a group to a dataset, report the Internal Error. #8

@Mukvin

Description

@Mukvin

Describe the bug
Assign a group to a dataset throws error:

[MDX-00000001] Internal Error, com.alibaba.fastjson.JSONArray cannot be cast to com.alibaba.fastjson.JSONObject
java.lang.ClassCastException: com.alibaba.fastjson.JSONArray cannot be cast to com.alibaba.fastjson.JSONObject
 at com.alibaba.fastjson.JSONObject.getJSONObject(JSONObject.java:140)
 at io.kylin.mdx.insight.core.meta.acl.KylinAclConvertor.hasTablePermissionByGroup(KylinAclConvertor.java:125)
 at io.kylin.mdx.insight.core.meta.acl.KylinAclConvertor.generateAclByGroup(KylinAclConvertor.java:69)
 at io.kylin.mdx.insight.core.meta.acl.KylinAclConvertor.getAclProjectModel(KylinAclConvertor.java:57)
 at io.kylin.mdx.insight.core.meta.KylinConvertor.getAclProjectModel(KylinConvertor.java:539)
 at io.kylin.mdx.insight.core.meta.SemanticAdapter.getAclModel(SemanticAdapter.java:155)
 at io.kylin.mdx.insight.server.facade.AclFacade.preparePermission(AclFacade.java:53)
 at io.kylin.mdx.insight.server.controller.AclController.getAcl(AclController.java:62)
 at io.kylin.mdx.insight.server.controller.AclController$$FastClassBySpringCGLIB$$812005c9.invoke(<generated>)
 at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
 at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
...

Expected behavior
add group successfully without any error.

Screenshots
If applicable, add screenshots to help explain your problem.
image
image
image
image
Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Bug ReportSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions