Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Filter clause not working anymore in ItemsRequestBuilderGetQueryParameters

Open
#1,043 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by running the reported reproduction against SDK version 1.15.0, using ItemsRequestBuilder.ItemsRequestBuilderGetQueryParameters and RequestConfiguration. Compare the result with the suggested ChildrenRequestBuilder workaround and verify whether the filter is sent and applied. Done means the request returns only the folder named "some_name".

Written by the indexing model from the issue text.

Description

priority:p2 type:bug
Describe the bug

I have a query that's using this code to retrieve a folder by name:

onedrive = await client.me.drive.get()
query_params = ItemsRequestBuilder.ItemsRequestBuilderGetQueryParameters(
        filter="name eq 'some_name'"
    )
config = RequestConfiguration(query_parameters=query_params)
subfolder = (await client.drives.by_drive_id(onedrive.id).items.get(request_configuration=config)).value

but suddenly it's not working anymore.
The filter based on the name just returns all 200 subfolders of onedrive.

Expected behavior

Just the folder with "some_name" is retrieved

How to reproduce
onedrive = await client.me.drive.get()
query_params = ItemsRequestBuilder.ItemsRequestBuilderGetQueryParameters(
        filter="name eq 'some_name'"
    )
config = RequestConfiguration(query_parameters=query_params)
subfolder = (await client.drives.by_drive_id(onedrive.id).items.get(request_configuration=config)).value
SDK Version

1.15.0

Latest version known to work for scenario above?

No response

Known Workarounds

Maybe switching to ChildrenRequestBuilder and using items.by_drive_items_id(ID).children.get(query_params with name filter)

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_
Dominant language
Python
Stars
630
Forks
96
Avg merge
15h 20m
Merged PRs (30d)
3

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.

More from microsoftgraph/msgraph-sdk-python

All issues in microsoftgraph/msgraph-sdk-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.