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

[BUG][Storage][DataLake] Possible issues around Directory and File names with spaces #11093

Closed
seanmcc-msft opened this issue Apr 6, 2020 · 2 comments · Fixed by #15106
Closed
Assignees
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. Data Lake Storage Gen2 Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)
Milestone

Comments

@seanmcc-msft
Copy link
Member

seanmcc-msft commented Apr 6, 2020

        [Test]
        public async Task RenameAsync_Spaces()
        {
            await using DisposingFileSystem test = await GetNewFileSystem();

            // Arrange
            DataLakeDirectoryClient sourceDirectory = await test.FileSystem.CreateDirectoryAsync(GetNewDirectoryName());
            string destDirectoryName = " test test ";

            // Act
            DataLakeDirectoryClient destDirectory = await sourceDirectory.RenameAsync(destinationPath: destDirectoryName);

            // Assert
            Response<PathProperties> response = await destDirectory.GetPropertiesAsync();
        }
PUT http://seannsecanary.dfs.core.windows.net/test-filesystem-7f785fe6-2fe9-4482-bf0c-b6dfd62c918f/%20test%20test?mode=legacy HTTP/1.1
x-ms-version: 2019-07-07
x-ms-rename-source: /test-filesystem-7f785fe6-2fe9-4482-bf0c-b6dfd62c918f/test-directory-7f8005a5-c031-4343-a0af-f41b313e2ff5
x-ms-client-request-id: 42074240-3e38-4d50-b555-b2ea45e8473a
x-ms-return-client-request-id: true
User-Agent: azsdk-net-Storage.Files.DataLake/12.2.0-dev.20200414.1 (.NET Core 4.6.28325.01; Microsoft Windows 10.0.18362 )
x-ms-date: Tue, 14 Apr 2020 22:38:11 GMT
Authorization: SharedKey seannsecanary:1u1Ytg69CRpAqFM9A5Wk/4Hw+/jWGJs+1eG6E3HaWnE=
Content-Length: 0
Host: seannsecanary.dfs.core.windows.net

Note there is no trailing space in the URL above.

@seanmcc-msft seanmcc-msft added Storage Storage Service (Queues, Blobs, Files) 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. Data Lake Storage Gen2 labels Apr 6, 2020
@seanmcc-msft seanmcc-msft self-assigned this Apr 14, 2020
@Petermarcu Petermarcu added the Service Attention Workflow: This issue is responsible by Azure service team. label Apr 17, 2020
@ghost
Copy link

ghost commented Apr 17, 2020

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

@seanmcc-msft
Copy link
Member Author

seanmcc-msft commented Apr 21, 2020

I'll fix this issue in the near future.

@jsquire jsquire added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 21, 2020
@ghost ghost added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jul 21, 2020
@jsquire jsquire removed the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jul 29, 2020
@jsquire jsquire added this to the Backlog milestone Jul 29, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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. Data Lake Storage Gen2 Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
3 participants