Skip to content

GH-46085: [C++][FS][Azure] Treat a 403 when getting container properties like the container exists #46095

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jabbera
Copy link
Contributor

@jabbera jabbera commented Apr 10, 2025

Rationale for this change

User delegated sas tokens in Azure (and some standard sas tokens) don't have permissions to query container properties. The assumption needs to be made that the container exists and let something further up the chain fail if the container doesn't exist.

There is functionality that creates a new container, but it won't come into play because the sas token also does not have permission to do that either.

What changes are included in this PR?

Return an fs item type of directory with a modified time of now when getting container properties returns a 403.

Are these changes tested?

Yes, manually. Unsure how to integrate into automated test suite. Happy to discuss.

Are there any user-facing changes?

No

@jabbera jabbera changed the title GH-44308: [C++][FS][Azure] Treat a 403 when getting container properties like the container exists GH-46085: [C++][FS][Azure] Treat a 403 when getting container properties like the container exists Apr 10, 2025
Copy link

⚠️ GitHub issue #46085 has been automatically assigned in GitHub to PR creator.

@jabbera
Copy link
Contributor Author

jabbera commented Apr 10, 2025

Failures seem related to: #46077, not this change.

@jabbera
Copy link
Contributor Author

jabbera commented Apr 14, 2025

Any chance of getting this looked at?

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

Successfully merging this pull request may close these issues.

1 participant