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

Package filter causes Bad Request (Operation not supported) #1873

Open
1 of 3 tasks
MartinKuschnik opened this issue Sep 13, 2024 · 0 comments
Open
1 of 3 tasks

Package filter causes Bad Request (Operation not supported) #1873

MartinKuschnik opened this issue Sep 13, 2024 · 0 comments

Comments

@MartinKuschnik
Copy link

MartinKuschnik commented Sep 13, 2024

Category

  • Question
  • Documentation issue
  • Bug

Expected or Desired Behavior

Using a filter to get packages or folder should always work.

GET https://graph.microsoft.com/v1.0/drive/root/children?$filter=package%20ne%20null%20or%20folder%20ne%20null

Observed Behavior

This request workers pretty fine for drives that contain a package item (OneNote).

For drives without any package item i get the following response:

HTTP/1.1 400 Bad Request
Cache-Control: no-store, no-cache, max-age=0, private
Transfer-Encoding: chunked
Content-Type: application/json
Content-Encoding: gzip
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
request-id: 8c9fc5dd-0494-409c-b4d5-1d4ae003f69a
client-request-id: 8c9fc5dd-0494-409c-b4d5-1d4ae003f69a
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"000","RoleInstance":"FR1PEPF00000D37"}}
Date: Fri, 13 Sep 2024 17:10:10 GMT
Connection: close

{
  "error": {
    "code": "notSupported",
    "message": "Operation not supported",
    "innerError": {
      "date": "2024-09-13T17:10:10",
      "request-id": "8c9fc5dd-0494-409c-b4d5-1d4ae003f69a",
      "client-request-id": "8c9fc5dd-0494-409c-b4d5-1d4ae003f69a"
    }
  }
}

Steps to Reproduce

Execute following query to drive without a package item (OneNote).

GET https://graph.microsoft.com/v1.0/drive/root/children?$filter=package%20ne%20null%20or%20folder%20ne%20null

Thank you.

[ ]: http://aka.ms/onedrive-api-issues
[x]: http://aka.ms/onedrive-api-issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant