Share via

API return wrong drive when request have a drive?

Charlie Wang (CSI INTERFUSION INC) 0 Reputation points Microsoft External Staff
2024-04-07T03:07:04.13+00:00

I use **msgraph-sdk-dotnet **to get a file.

I try to get a file using GraphId. But in msgraph-sdk-dotnet, it must set a drive before request.

This way is work before 3/19/2024: _client.Drives[driveId].Items[graphId].Request().GetAsync()

After 3/19/2024, the method will return a driveItem for ANY driverId although the file(with graphId) is just existed on ONE driver. It looks like this:

result1=_client.Drives[driveId1].Items[graphId1].Request().GetAsync()

result2 = _client.Drives[driveId2].Items[graphId1].Request().GetAsync()

Both result1 and result2 are not null. But actually, file graphId1 is under driveId1.

It is confused.

I created an issue to msgraph-sdk-dotnet team as well.

https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2402

Is there any idea about this issue? Is there any update nearby 3/19/2024?

Microsoft Security | Microsoft Graph

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.