-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
1.0
-
Severity 3 - Minor
Issue Summary
When creating/editing/saving a page containing a 3rd party macro, the Chat Notification user (Slack integration) sends a request to render the page content (including the macro). This fails if the 3rd party app tries to impersonate the user but an app cannot impersonate another app (user).
Steps to Reproduce
The error can only be seen by app developers and it is usually enough to edit a page having a 3rd party macro on it (other steps to reproduce are available in CONFCLOUD-73417). So:
- Edit and save a page having a 3rd party macro on it
Expected Results
No errors are logged
Actual Results
The below exception is thrown in the logs:
403 Forbidden: [{"error": "Add-on 'ADD_ON_KEY' disallowed to impersonate the user because 'no valid active user exists'"}] Add-on 'ADD_ON_KEY' is not allowed to impersonate user '5b70c8b80fd0ac05d389f5e9'
Workaround
App developers can add an IF condition to their code that will avoid impersonating the user in case the user sending the request to render the page is another app-user (so, in case "accountType" is "app").
- relates to
-
CONFCLOUD-73417 Cloud email renderMode is called with the wrong user
-
- Closed
-
- is caused by
-
CCS-514 Failed to load