OneDrive / onedrive-api-docs

Official documentation for the OneDrive API
MIT License
451 stars 227 forks source link

OneDrive File Picker v8 - Search doesn't work #1742

Open idan-weiss opened 10 months ago

idan-weiss commented 10 months ago

Category

Expected or Desired Behavior

Searching for a file in the file picker's search bar will show proper results

Observed Behavior

When searching for a file in the file picker's search bar - no file is shown, and an error is displayed

image

I inspected the request, and it looks like the following requests is invalid - it returns 400 status code:

URL - https://<TENANT>-my.sharepoint.com/_api/v2.0/drives/me/items/root/search(q=@s)?%40s=%27test%27&%24expand=thumbnails%2Ctags&select=*%2CwebDavUrl%2Cocr

Response - 
{"error":{"code":"notSupported","message":"Operation not supported"}}

I remember that for sure it worked a few months ago. Not sure what happened lately that causes it issue

Steps to Reproduce

Enable the search bar in the file picker:

   search: {
      enabled: true;
   },

Search for any file

Thank you.

gilislanduser commented 10 months ago

Hi,

Is there an ETA for this bug ? or at least for an assignment?

Thanks Gil

rahulparmar339 commented 10 months ago

I am facing the same issue. Can someone please check this?