authentik
authentik copied to clipboard
Unhandled Promise Rejection
Describe the bug Safari on MacOS fails to load expression policies, after loading them initially.
To Reproduce Steps to reproduce the behavior:
- Try to edit an expression policy
- The first time you try it, it works just fine.
- Close the policy
- Open it again.
- Now the expression fails to load, just displays a blank expression policy. and in the Browse Console you can see an error:
Unhandled Promise Rejection: IndexSizeError: The index is not in the allowed range.
insertRule — adoptedStyleSheets.js:153
(anonym funktion) — adoptedStyleSheets.js:153
forEach
(anonym funktion) — adoptedStyleSheets.js:150
mount — style-mod.js:117
mount — style-mod.js:79
mountStyles — index.js:6319
Bs — index.js:6007
value — CodeMirror.ts:153
_$AE — reactive-element.js:6:5083
performUpdate — reactive-element.js:6:4877
(anonym funktion) — reactive-element.js:6:4362
asyncFunctionResume
(anonym funktion)
promiseReactionJobWithoutPromise
promiseReactionJob
insertRule — adoptedStyleSheets.js:153
Expected behavior Expected the policy to load a second time as well.
Version and Deployment (please complete the following information):
- authentik version: 2022.8.2
- Deployment: docker-compose

Which safari version is this on? I just tested both 8.2 and main on safari 16 and they work without any errors
Which safari version is this on? I just tested both 8.2 and main on safari 16 and they work without any errors
Version 16.0 (17614.1.25.9.10, 17614).
I just tried this on a completely new virtual machine running firefox, and there everything works fine.
In addition, I tried this in a private tab on Safari, same thing happens. I'm pretty much at a loss as to why this is happening...
Nvm I can reproduce it now, I think the machine I tested on wasn't actually safari 16
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.