microsoftgraph / microsoftgraph/msgraph-sdk-dotnet

Null SharepointIds on File upload using Dotnet Graph SDK 5

Open
#2,429 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs: Attention :wave:
Dominant language
C#
Stars
789
Forks
264
Avg merge
15h 17m
Merged PRs (30d)
3

Description

Small file upload using ContentRequestBuilder PutAsync and large file upload using LargeFileUploadTask - both of these have null SharepointIds property in the response drive item. ContentRequestBuilder PutAsync uses DefaultQueryParameters which has no option to add any query parameters. LargeFileUploadTask.UploadAsync has no option to add query parameters to the request.

Expected behavior
Request has option to select SharepointIds or response drive item to have SharepointIds populated along with other properties

Client version
5.37, 5.40

Additional context
I need to make an addition get drive item request to get sharepointids which is inefficient.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ContentRequestBuilder.PutAsync and LargeFileUploadTask.UploadAsync, then inspect how DefaultQueryParameters are used for these requests. Determine how SharepointIds can be selected or returned for both upload paths, and verify that the response drive item contains the property without requiring an additional get drive item request.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.