Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Only quote the keys of the query_parameters in MSGraphOperator #39207

Merged
merged 5 commits into from
Apr 24, 2024

Conversation

dabla
Copy link
Contributor

@dabla dabla commented Apr 23, 2024

By default, the keys and values of the passed query_parameters where encoded by the MSGraphOperator. The issue with this is that the underlying kiota library (RequestInformation class) used by the msgraph-core library also encodes the values, which leads to double URL encoded values and thus giving issues, which I wasn't aware of until now when we had values with special characters in it. So now only the keys of the query_parameters are URL encoded, I've added a unit test which verifies this.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

…igger only encodes the keys and not the values otherwise those will be encoded twice
@dabla dabla changed the title Fix: Make sure only the keys of the query_parameters are URL encoded Fix: Only quote the keys of the query_parameters in MSGraphOperator Apr 23, 2024
@eladkal eladkal merged commit 14b6312 into apache:main Apr 24, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants