-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnauthorizedAccessException with SyncSilent #429
Comments
Can confirm this behaviour in Sitecore 9.3 with Unicorn 4.1.6. Example log entry:
|
Hi, Faced the same issue with Unicorn: 4.1.4 Sitecore: 10.1.1 Thankls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Synchronizing with the SyncSilent verb throws an exception when the Retryer tries to process items.
SecurityDisabler is missing
When the exception occurs there is no SecurityDisabler active. The Sitecore.Context.Items["SecurityStateSwitcher_State"] is missing the Disabled state. The SyncSilent verb runs inside as a Task and the Sitecore.Context.Items values from the originating HttpContext are not available. The collection falls back on a new thread static object.
This only happens to the Retryer items. I guess that the Retryer is not running inside a UnicornOperationContext.
It doesn't always happen
The exception above does not happen constantly. Sometimes (2/10) it still has a security disabler active somehow and it returns the original non-fatal warning below. Not sure how this happens.
If the current behavior is a bug, please provide the steps to reproduce.
Use the SyncSilent verb. Make sure one configuration will at least add one (failed) item to retry.
Please mention your Sitecore version and Unicorn version.
The text was updated successfully, but these errors were encountered: