Skip to content

[C++][FS][Azure] Edgecase where GetFileInfo incorrectly returns NotFound on flat namespace and Azurite #44256

@Tom-Newton

Description

@Tom-Newton

Describe the bug, including details regarding any error messages, version, and platform.

The problem
Imagine in the following directory structure:

container-name/a/    directory
container-name/a.txt    file 

fs->GetFileInfo("container-name/a/") returns FileType::NotFound.

Why it happens

  1. fs->GetFileInfo("container-name/a/") returns causes a list with prefix a and limit 1.
  2. The result is a.txt because . comes before / lexographically.
  3. This doesn't match the requested name so return FileType::NotFound.

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions