Skip to content

Conversation

@nickliu-msft
Copy link
Member

Fixed property/permission/metadata preservation when overwriting an existing directory. This applies to SMB and NFS. Also added some OAuth tests for NFS.

Copilot AI review requested due to automatic review settings August 14, 2025 21:15
@nickliu-msft nickliu-msft marked this pull request as draft August 14, 2025 21:15
@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Aug 14, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes property/permission/metadata preservation during directory overwrite operations for SMB and NFS storage resources. The main issue was that when overwriting existing directories, the source properties were not being properly applied to the destination.

  • Fixed directory creation logic to support overwrite mode with property preservation
  • Added comprehensive test coverage for directory overwrite scenarios with SMB and NFS protocols
  • Added OAuth authentication tests for NFS operations

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
TransferJobInternal.cs Updated directory creation to use new overwrite-aware CreateAsync method
StorageResourceContainer.cs Added new virtual CreateAsync method supporting overwrite with source properties
ShareDirectoryStorageResourceContainer.cs Implemented overwrite logic with metadata/properties preservation
DataMovementSharesExtensions.cs Renamed method for clarity (GetFilePermission → GetDirectoryPermission)
ShareFileStorageResource.cs Added new error message for directory overwrite conflicts
ClientBuilderExtensions.cs Added OAuth NFS test client builder method
ShareFileStartTransferCopyTests.cs Added overwrite tests for file transfers and OAuth NFS tests
ShareDirectoryStartTransferCopyTests.cs Added comprehensive directory overwrite tests for both SMB and NFS
assets.json files Updated test asset tags

@github-actions
Copy link

github-actions bot commented Aug 14, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

Azure.Storage.DataMovement

@Azure Azure deleted a comment from github-actions bot Aug 14, 2025
@nickliu-msft nickliu-msft marked this pull request as ready for review August 18, 2025 17:31
@nickliu-msft nickliu-msft merged commit a1af2cb into Azure:main Aug 19, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants