"Illegal characters in path" when retrieving an items permissions by id which title contains double quotes #9946
Labels
Needs: Triage 馃攳
Awaiting categorization and initial review.
type:bug-suspected
Suspected bug (not working as designed/expected). See 鈥渢ype:bug-confirmed鈥� for confirmed bugs.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
Permission retrieval calls for some items fails. For example
_api/web/lists('9d25363f-ba2a-452d-99e0-6e1d9c004e17')/items(13995)/GetSharingInformation/permissionsInformation/principals
failed, while others item IDs worked.The response is a HTTP 400 with body
After some investigation I found out that it always happen, if the title of the target item contains double quotes - as soon as I change it to single one it works.
This API call must have worked in april 2024 because I had found items with double quotes in there which would have broke our processes in the past if the error happend there
Steps to reproduce
_api/web/lists('<LISTGUID>')/items(<ITEMID>)/GetSharingInformation/permissionsInformation/principals
Expected behavior
Response JSON containing items permissions
The text was updated successfully, but these errors were encountered: