DriveItem copy.post() returns DriveItem instead of progress URL
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 67/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- api, documentation
Research direction
Start with the linked generated request builder, msgraph/generated/drives/item/items/item/copy/copy_request_builder.py, and the linked Microsoft Graph documentation for copy and long-running actions. Find the Python SDK's documentation location and check how it presents workarounds for operations that return monitoring URLs. Done means adding a Python workaround for retrieving and using the copy progress URL; the issue does not specify the exact workaround.
Written by the indexing model from the issue text.
Description
Describe the bug
I want to monitor a long-running drive copy job to take action upon completion. The MS Graph API docs state the copy post call returns the monitor URL (see https://learn.microsoft.com/en-us/graph/api/driveitem-copy and https://learn.microsoft.com/en-us/graph/long-running-actions-overview) but the SDK returns an Optional(DriveItem) instead which is always None.
Expected behavior
Returns the progress URL instead of the DriveItem / None
How to reproduce
body = CopyPostRequestBody(
parent_reference = ItemReference(
path = "new/path",
),
)
result = await graph_client.drives.by_drive_id(drive_id).items.by_drive_item_id(item_id).copy.post(body)
pprint(result)
Other information
This is apparently due to a bug somewhere in the graph definitions, see the DotNet bug report for more details (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2240).
While we wait for this to be fixed (3 years at least and no progress yet!), could you please document here a workaround so googling at least returns something helpful in Python?
- Dominant language
- Python
- Stars
- 634
- Forks
- 100
- Avg merge
- 23h 18m
- Merged PRs (30d)
- 7
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoftgraph/msgraph-sdk-python
-
status:waiting-for-triage type:bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
microsoftgraph/msgraph-sdk-python#1570 ·
Maintainers usually reply within 1 day
-
status:waiting-for-triage type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoftgraph/msgraph-sdk-python#1563 · 1 comment ·
Maintainers usually reply within 1 day
-
kiota-dom-export.txt is large and included in the released packagePossibly taken @Fryguy claimed this 184 days ago. OpenNeeds: Attention :wave: type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
microsoftgraph/msgraph-sdk-python#1287 · 3 comments · 2 reactions ·
Maintainers usually reply within 1 day
-
status:waiting-for-triage type:feature
Difficulty 5/5 Over a week Newbie friendliness 25/100
microsoftgraph/msgraph-sdk-python#1596 ·
Maintainers usually reply within 1 day
-
status:waiting-for-triage type:bug
Difficulty 3/5 1-2 days Newbie friendliness 52/100
microsoftgraph/msgraph-sdk-python#1578 · 1 reaction ·
Maintainers usually reply within 1 day
All issues in microsoftgraph/msgraph-sdk-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
trycua/hermes-cua-spaces#17 ·
-
area:codegen backend:hip bug direction:output good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
nautechsystems/nautilus_trader#5718 ·
Maintainers usually reply within 1 day
-
[Bug]: reme CLI crashes when the running server used a relative config pathPossibly taken @nurlanmnn claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
agentscope-ai/ReMe#770 ·
Maintainers usually reply within 1 day
-
Pi: paused model calls are reported as "not signed in" when the model's provider comes from an extensionPossibly taken @balcsida claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
microsoft/TokenEconomizer#288 ·
Maintainers usually reply within 1 day