Skip to content
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

catch 400 on list item unique role assignments #1610

Merged

Conversation

seanstory
Copy link
Member

Related to #1582

We've had reports of 400 errors when issuing requests like:

GET /sites/<site_id>/_api/lists/GetByTitle('<list_title>')/items(41)/HasUniqueRoleAssignments

which is odd, since this should be a valid request, as far as we can tell from the docs.

To prevent this from blocking syncs, we want to simply log a warning when this surfaces, and move on.

Checklists

Pre-Review Checklist

  • this PR has a meaningful title
  • this PR links to all relevant github issues that it fixes or partially addresses
  • if there is no GH issue, please create it. Each PR should have a link to an issue
  • this PR has a thorough description
  • Covered the changes with automated tests
  • Tested the changes locally
  • Added a label for each target release version (example: v7.13.2, v7.14.0, v8.0.0)

Related Pull Requests

Release Note

Log (but otherwise ignore) 400 errors that occasionally arise when requesting unique permissions from some Sharepoint Online List Items.

@seanstory seanstory enabled auto-merge (squash) September 11, 2023 13:11
@seanstory seanstory merged commit 6a845a3 into main Sep 11, 2023
1 of 2 checks passed
@seanstory seanstory deleted the seanstory/catch-400-on-list-item-unique-role-assignments branch September 11, 2023 13:20
github-actions bot pushed a commit that referenced this pull request Sep 11, 2023
* Address specific edge case of 400 on list item unique role permissions

* Don't retry 400 errors

* Autoformat
github-actions bot pushed a commit that referenced this pull request Sep 11, 2023
* Address specific edge case of 400 on list item unique role permissions

* Don't retry 400 errors

* Autoformat
@github-actions
Copy link

💚 Backport PR(s) successfully created

Status Branch Result
pre-8.10-stable #1612
8.10 #1613

The backport PRs will be merged automatically after passing CI.

seanstory added a commit that referenced this pull request Sep 11, 2023
* Address specific edge case of 400 on list item unique role permissions

* Don't retry 400 errors

* Autoformat

Co-authored-by: Sean Story <sean.j.story@gmail.com>
seanstory added a commit that referenced this pull request Sep 11, 2023
* Address specific edge case of 400 on list item unique role permissions

* Don't retry 400 errors

* Autoformat

Co-authored-by: Sean Story <sean.j.story@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants