技术文章 - CS386233
“未授权在 PersistentSession 中进行 ServiceInvoke”<Session ID>当非管理员用户访问 ThingWorx Platform 中的混搭时,会出现“
已修改: 09-Apr-2024
适用于
- ThingWorx Platform 8.5 to 9.6
说明
- 非管理用户无法在混搭中看到更新的属性值,并且无法在能够自动更新值的情况下看到更新的属性值
- 对于非管理员用户来说,在混搭上实施GetProperties的自定义解决方案失败
- 由于错误,无法编辑BrowserGateway事物模板上的权限
- 需要向AddDynamicRemoteSubscription和RemoveDynamicRemoteSubscription添加其他主体
- 非管理员用户在启用“可用时自动更新值”选项的情况下,在进行GetProperties调用时,最终会遇到错误
- 如何在AddDynamicRemoteSubscription上向ServiceInvoke授予权限
- 会出现两种情况:
- 出于安全原因,用户userGroup 已从ComposerUsers组中删除
- 在这种情况下,ThingworxStorage\logs\ApplicationLog.log中会收到以下类型的AddDynamicRemoteSubscription错误:
- 出于安全原因,用户userGroup 已从ComposerUsers组中删除
[L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: <USER>] [S: ] [P: ] [T: WSExecutionProcessor-26] Unable to dispatch [ uri = /Things/PersistentSession<Session ID>/Services/AddDynamicRemoteSubscription/]: Unable to Invoke Service AddDynamicRemoteSubscription on PersistentSession<Session ID> : Not authorized for ServiceInvoke on AddDynamicRemoteSubscription in PersistentSession<Session ID> [L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: <USER>] [S: ] [P: ] [T: WSExecutionProcessor-26] error executing APIRequest Message: Not authorized for ServiceInvoke on AddDynamicRemoteSubscription in PersistentSession<Session ID>, sending ERROR ResponseMessage to caller!
- 用户用户组仍然是ComposerUsers组的成员,但用户不在管理员用户组中
- 在这种情况下, ForwardEvent上会收到以下类型的错误
Unable to dispatch [ uri = /Things/PersistentSession94b4c4a6-962a-49d3-94f9-c9f9d4bc1b27/Services/AddDynamicRemoteSubscription/]: Unable to Invoke Service AddDynamicRemoteSubscription on PersistentSession94b4c4a6-962a-49d3-94f9-c9f9d4bc1b27 : Not authorized for ServiceInvoke on ForwardEvent in PersistentSession94b4c4a6-962a-49d3-94f9-c9f9d4bc1b27 error executing APIRequest Message: Not authorized for ServiceInvoke on ForwardEvent in PersistentSession94b4c4a6-962a-49d3-94f9-c9f9d4bc1b27, sending ERROR ResponseMessage to caller!
- 可能的其他错误:
Error Executing Event Handler 'ForwardEvent' for event Type.Thing:Entity.Thing3:Event.DataChange:Property.Num3 Error Executing Event Handler 'ForwardEvent' for event Type.Thing:Entity.MyThing:Event.DataChange:Property.myproperty com.thingworx.common.exceptions.InvalidRequestException: Not authorized for ServiceInvoke on ForwardEvent in PersistentSession...
这是文章 386233 的 PDF 版本,可能已过期。最新版本 CS386233