Skip to content

Conversation

@marcelklehr
Copy link
Member

Summary

In some cases the reverse proxy config redirects to login when accessing unknown URLs like .ocdata. Login, however, returns a HTTP 200, which is taken to be a failure by the datadirectory protection setup check.

  • Is this a good idea?

Checklist

@marcelklehr marcelklehr requested review from come-nc and susnux July 11, 2024 12:03
@susnux
Copy link
Contributor

susnux commented Jul 11, 2024

I think not following is a bad idea as there could be a redirect that still resolves to the data directory.
Instead we should check for the final response body content?

@come-nc
Copy link
Contributor

come-nc commented Jul 11, 2024

I agree with Ferdinand it makes sense to follow redirects, at least for some tests.
But this test is too fragile and should be improved.

Maybe we should add content to .ocdata and check that the content is part of the response? (maybe it’s time to rename that file also)

@susnux
Copy link
Contributor

susnux commented Jul 30, 2024

See #46456

@susnux susnux closed this Jul 30, 2024
@susnux susnux deleted the fix/datadirectory-protection-setupcheck branch April 23, 2025 11:48
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.

4 participants