Skip to content

Filter clause not working anymore in ItemsRequestBuilderGetQueryParametersΒ #1043

@electricjimi

Description

@electricjimi

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_

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:p2Medium. For a p2 bug, generally have a work-around. Bug SLA <=30 daystype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions