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(settings): Use axios directly for health check to preven URL sanitizing #45765

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jun 10, 2024

Summary

When using Apache with DirectorySlash it will respond with 301 and the URL with trailing slash. But when using traefik as the reverse proxy it can not rewrite redirects, this leads to the problem that the Apache response is using HTTP in the redirect but the real server (traefik) is only listening on HTTPS.

The URL "sanitizing" of the "API" class rendered the current approach useless as it was removing the trailing slash again...

Checklist

@susnux susnux requested review from a team, nfebe, szaimen and sorbaugh and removed request for a team June 10, 2024 14:23
@susnux
Copy link
Contributor Author

susnux commented Jun 10, 2024

/backport to stable28

@susnux susnux requested review from Pytal and removed request for sorbaugh June 10, 2024 14:23
@kesselb
Copy link
Contributor

kesselb commented Jun 10, 2024

The URL "sanitizing" of the "API" class rendered the current approach useless as it was removing the trailing slash again...

Good finding! Who would expect that 🤷

I assume that should also fix #45378 and therefore added a link to it.

@susnux susnux linked an issue Jun 10, 2024 that may be closed by this pull request
8 tasks
…tizing

When using Apache with `DirectorySlash` it will respond with 301 and the URL with trailing slash.
But when using traefik as the reverse proxy it can not rewrite redirects, this leads to the problem
that the Apache response is using HTTP in the redirect but the real server (traefik) is only listening on HTTPS.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/health-check-traefik branch from d21e3de to 00c077b Compare June 10, 2024 19:25
@susnux
Copy link
Contributor Author

susnux commented Jun 10, 2024

/compile

@susnux susnux enabled auto-merge June 10, 2024 19:25
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@susnux susnux merged commit 31cae5d into stable29 Jun 10, 2024
105 checks passed
@susnux susnux deleted the fix/health-check-traefik branch June 10, 2024 19:50
@blizzz blizzz mentioned this pull request Jun 11, 2024
3 tasks
@susnux
Copy link
Contributor Author

susnux commented Oct 8, 2024

/backport to stable30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: using proxy, wrong cloud port used when trying to enable / disable an app
5 participants