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

Refs #1510: resets path variable so legacy path error is used #1564

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

WKobes
Copy link
Collaborator

@WKobes WKobes commented Nov 29, 2024

When using the legacy security.txt location only, the SecuritytxtRetrieveResult accidentally still contained the .well-known path. This PR fixed this by resetting the path variable if the legacy path is used and the .well-known path is not.

This will not change anything when both the .well-known AND the legacy path are used (even when the legacy path contains a different security.txt) as is discussed in #1510 as well. It could be argued that this is according to the spec:

If a "security.txt" file is present in both locations, the one in the "/.well-known/" path MUST be used.

But we could also argue that this is such bad practice that we want to provide an error for that later.

@bwbroersma bwbroersma linked an issue Nov 29, 2024 that may be closed by this pull request
@WKobes WKobes requested a review from mxsasha December 2, 2024 11:11
@mxsasha mxsasha merged commit cada33e into internetstandards:main Dec 2, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

No hint when only using legacy security.txt location
2 participants