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

Fixes #36425 - request backend status with a trailing slash #10568

Merged
merged 1 commit into from May 23, 2023

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented May 23, 2023

What are the changes introduced in this pull request?

Candlepin doesn't mind either way, but Pulp really wants that slash, which results in a redirect if we request the non-slashed URL.
So this PR changes the status URL to end with a /

Considerations taken when implementing this change?

None.

What are the testing steps for this pull request?

Ensure Katello::Ping still works with Candlepin and Pulp, e.g. by calling hammer ping

@theforeman-bot
Copy link

Issues: #36425

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

I noticed this too and mentioned it to @ianballou (I think on IRC). Simple fix, but does indeed save resources.

@evgeni
Copy link
Member Author

evgeni commented May 23, 2023

another optimization could be to reduce the number of requests, right now there are two (one for pulp3, one for pulp3_content, but both use the same URL, just parse different things out of it)

@jeremylenz
Copy link
Member

[test katello]

@evgeni
Copy link
Member Author

evgeni commented May 23, 2023

heh, I guess there is some more mocking/vcring to do :>

Candlepin doesn't mind either way, but Pulp really wants that slash,
which results in a redirect if we request the non-slashed URL.
Copy link
Member

@jeremylenz jeremylenz left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

Thanks @evgeni

@jeremylenz jeremylenz merged commit 9a0e3e1 into Katello:master May 23, 2023
5 checks passed
@evgeni evgeni deleted the i36425 branch May 23, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants