-
Notifications
You must be signed in to change notification settings - Fork 67
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
removing parse url from the get rabbitmqUrl function #1239
removing parse url from the get rabbitmqUrl function #1239
Conversation
… have special characters needed i.e when pulled from an active directory and the url does not fail to parse
Codecov Report
@@ Coverage Diff @@
## main #1239 +/- ##
=======================================
Coverage 74.75% 74.75%
=======================================
Files 44 44
Lines 3430 3430
=======================================
Hits 2564 2564
Misses 765 765
Partials 101 101
|
/override "codecov/patch" @gabo1208 you should figure out how to configure the codecov so we don't need to override I think the LGTM is what is missing here, you are right. |
@dprotaso: Overrode contexts on behalf of dprotaso: codecov/patch In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
it also looks like it's not mandatory so you don't need to override it - so tide just needs an |
/cherry-pick release-1.11 |
@gabo1208: once the present PR merges, I will cherry-pick it on top of release-1.11 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if doing url.QueryEscape
on the username might be better than us not constructing (validating a URL)
For example https://go.dev/play/p/ol-loHQ3pRn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to check my understanding: the issue was user had a back slash in their credentials which is parsed as a special case by url.Parse
and you’ve fixed it by removing url.Parse
?
If you want to keep validating the URl as before, you could consider 1) adding username
and password
as separate fields to ExchangeArgs
and keep RabbitMQURL
as it is 2) construct the URL with url.URL
first before converting it to string. I'm not sure if the URL is validated anywhere else. If it isn't, keeping the validation would be a safer option. You can take a look of messaging topology operator as a reference: https://github.com/rabbitmq/messaging-topology-operator/blob/main/rabbitmqclient/cluster_reference.go
It's been a while since I've looked at eventing. If the team is happy with the change please feel free to disregard my comment and go ahead 😀
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ChunyiLyu, gabo1208 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
2314134
into
knative-extensions:main
@gabo1208: new pull request created: #1259 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Changes
/kind bug
Fixes #1216
Release Note