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

"Illegal characters in path" when retrieving an items permissions by id which title contains double quotes #9946

Open
1 of 9 tasks
nikolaiessel opened this issue Oct 1, 2024 · 0 comments
Labels
Needs: Triage 🔍 Awaiting categorization and initial review. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Comments

@nikolaiessel
Copy link

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

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • ApplicationInsights
  • Postman

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

{
    "odata.error": {
        "code": "-2147024809, System.ArgumentException",
        "message": {
            "lang": "en-US",
            "value": "Illegal characters in path."
        }
    }
}

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

  1. Create a sharepoint list
  2. Create a item with title containing "
  3. Set custom item permissions (may not be required)
  4. Retrieve the items permissions via REST API:
    _api/web/lists('<LISTGUID>')/items(<ITEMID>)/GetSharingInformation/permissionsInformation/principals

Expected behavior

Response JSON containing items permissions

@nikolaiessel nikolaiessel added the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label Oct 1, 2024
@VesaJuvonen VesaJuvonen added the Needs: Triage 🔍 Awaiting categorization and initial review. label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Awaiting categorization and initial review. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Projects
None yet
Development

No branches or pull requests

2 participants