Cannot use DataLakePathClient to do things with the root path #12813
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
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.
Storage
Storage Service (Queues, Blobs, Files)
Milestone
Describe the bug
If I create a DataLakePathClient with a URL like
https://accountname.dfs.core.windows.net/containername/somefolder
then things work as expected. But, if I try to use a URL that points to the root path, such as either:https://accountname.dfs.core.windows.net/containername/
(this one I would most expect to work)https://accountname.dfs.core.windows.net/containername
(this one seems to point more to the container, I'm ok if it doesn't work)then the SDK throws the following error:
which appears to originate from here:
because
blobName
is an empty string.If I debug into the SDK and avoid the error by temporarily changing the parsed
blobName
to be something not empty string before theif
check, and then back to empty string after theif
check, then things work as expected.To Reproduce
Steps to reproduce the behavior:
DataLakePathClient
which points to the root directory.Expected behavior
The root is a valid path, so I should be able to use a path client with it.
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: