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

Also grant Readdir when token grants read permission. #1654

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

olifre
Copy link
Contributor

@olifre olifre commented Mar 16, 2022

Before this change, directory listing is impossible with a read claim,
leading to the confusing situation that trying to access files in a directory
may return 404 but listing the directory returns permission denied.

@olifre
Copy link
Contributor Author

olifre commented Mar 16, 2022

Note: This irritating behaviour has been found by @federicaagostini in indigo-iam/wlcg-jwt-compliance-tests#34 (comment) . Thanks!

@olifre olifre changed the title Also grand Readdir when token grants read permission. Also grant Readdir when token grants read permission. Mar 16, 2022
Before this change, directory listing is impossible with a read claim,
leading to the confusing situation that trying to access files in a directory
may return 404 but listing the directory returns permission denied.
@bbockelm
Copy link
Contributor

Hi @olifre -

Just had a minute to look at this. I think adding directory listing permission is fine here. Let's merge it!

Brian

@abh3 abh3 merged commit 8b05e3e into xrootd:master Apr 11, 2022
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.

None yet

3 participants