Skip to content

[v2-10-test] Handle relative paths when sanitizing URLs (#41995) - #45080

Merged
potiuk merged 1 commit into
apache:v2-10-testfrom
potiuk:backport-0429bf4-v2-10-test
Dec 20, 2024
Merged

[v2-10-test] Handle relative paths when sanitizing URLs (#41995)#45080
potiuk merged 1 commit into
apache:v2-10-testfrom
potiuk:backport-0429bf4-v2-10-test

Conversation

@potiuk

Copy link
Copy Markdown
Member
  • Handle relative paths when sanitizing URLs

In the initial PR(#41665) we didn't handle the relative path in URL which led to issue(#41977). This PR aims at handling the relative path case when sanitizing URLs

  • Add PR suggestions

  • Update code comment (cherry picked from commit 0429bf4)


^ 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.

* Handle relative paths when sanitizing URLs
In the initial PR(apache#41665) we didn't handle the relative path in URL which led to issue(apache#41977). This PR aims at handling the relative path case when sanitizing URLs
* Add PR suggestions
* Update code comment
(cherry picked from commit 0429bf4)
Co-authored-by: Utkarsh Sharma <utkarsharma2@gmail.com>
@boring-cyborgboring-cyborgBot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels Dec 19, 2024
@potiuk

Copy link
Copy Markdown
MemberAuthor

Looks good to go :)

@amoghrajeshamoghrajesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh. I am surprised that it wasnt landed yet

@potiuk

Copy link
Copy Markdown
MemberAuthor

Yeah. I am not sure why it has been missing, but a user noticed that it was not in #41995 (comment) even if it had 2.10.2 as milestone, so we missed it somehow (cc: @utkarsharma2 )

@potiuk
potiuk merged commit ab0165b into apache:v2-10-testDec 20, 2024
@potiuk
potiuk deleted the backport-0429bf4-v2-10-test branch December 20, 2024 12:52
@utkarsharma2utkarsharma2 added the type:bug-fix Changelog: Bug Fixes label Jan 28, 2025
@utkarsharma2utkarsharma2 added this to the Airflow 2.10.5 milestone Jan 28, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UIRelated to UI/UX. For Frontend Developers.area:webserverWebserver related Issuestype:bug-fixChangelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@potiuk@amoghrajesh@jscheffl@utkarsharma2