技术文章 - CS386233

“未授权在 PersistentSession 中进行 ServiceInvoke”<Session ID>当非管理员用户访问 ThingWorx Platform 中的混搭时,会出现“

已修改: 09-Apr-2024   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • ThingWorx Platform 8.5 to 9.6

说明

  • 非管理用户无法在混搭中看到更新的属性值,并且无法在能够自动更新值的情况下看到更新的属性值
  • 对于非管理员用户来说,在混搭上实施GetProperties的自定义解决方案失败
  • 由于错误,无法编辑BrowserGateway事物模板上的权限
    • 需要向AddDynamicRemoteSubscriptionRemoveDynamicRemoteSubscription添加其他主体
  • 非管理员用户在启用“可用时自动更新值”选项的情况下,在进行GetProperties调用时,最终会遇到错误
  • 如何在AddDynamicRemoteSubscription上向ServiceInvoke授予权限
  • 会出现两种情况:
    1. 出于安全原因,用户userGroup 已从ComposerUsers组中删除
      • 在这种情况下,ThingworxStorage\logs\ApplicationLog.log中会收到以下类型的AddDynamicRemoteSubscription错误:
[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!
  1. 用户用户组仍然是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