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

Inconsistent behaviour when blob contains .. in path #38992

Open
lejmr opened this issue Dec 27, 2024 · 1 comment
Open

Inconsistent behaviour when blob contains .. in path #38992

lejmr opened this issue Dec 27, 2024 · 1 comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)

Comments

@lejmr
Copy link

lejmr commented Dec 27, 2024

  • azure-storage-file-datalake:
  • 12.17.0:
  • MacOs 15:
  • 3.11:

Describe the bug

When placing .. into the path, I get blob properties, can create files, etc., just fine, but I cannot list the directory.

To Reproduce

account_name = "REDACTED"
account_url_dfs = f"https://{account_name}.dfs.core.windows.net"
container_name = "tmp"
blob ='test/../test/test2/'

credential = get_azure_credential()
fsc = DataLakeServiceClient(account_url=account_url_dfs, credential=credential).get_file_system_client(container_name)
properties = fsc.get_file_client(blob).get_file_properties()
fsc.create_file(f"{blob}file.txt")

# This line fails with `azure.core.exceptions.ResourceNotFoundError: The specified path does not exist.` 
paths = list(fsc.get_paths(blob))

Expected behavior
I am expecting to get list of files or directories from given directory

@github-actions github-actions bot added Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files) labels Dec 27, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jalauzon-msft @vincenttran-msft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

1 participant