Skip to content

Rename Sorce Escaping #24288

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Rename Sorce Escaping #24288

wants to merge 7 commits into from

Conversation

ashruti-msft
Copy link
Member

@ashruti-msft ashruti-msft commented Mar 19, 2025

#23831

  • The purpose of this PR is explained in this or a referenced issue.
  • The PR does not update generated files.
  • Tests are included and/or updated for code changes.
  • Updates to module CHANGELOG.md are included.
  • MIT license headers are included in each file.

@Copilot Copilot AI review requested due to automatic review settings March 19, 2025 05:59
@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Mar 19, 2025
Copy link
Contributor

@Copilot 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 adds preliminary logic to handle URL encoding for the destination path during file renaming and introduces a new test to validate the behavior when the destination string is unencoded.

  • Added unescaping/escaping for the destination path in the Rename function.
  • Introduced TestFileRenameWithoutEncoding in the test suite to validate rename behavior for unencoded destination paths.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
sdk/storage/azdatalake/file/client_test.go New test added to verify file rename handling without prior encoding.
sdk/storage/azdatalake/file/client.go Updated Rename function to incorporate URL unescaping/escaping.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@tanyasethi-msft tanyasethi-msft linked an issue Mar 25, 2025 that may be closed by this pull request
@tanyasethi-msft
Copy link
Member

/azp run go - azdatalake

Copy link

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@tanyasethi-msft
Copy link
Member

/azp run go - azdatalake

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tanyasethi-msft tanyasethi-msft enabled auto-merge (squash) May 8, 2025 16:38
@tanyasethi-msft
Copy link
Member

/azp run go - azdatalake

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tanyasethi-msft
Copy link
Member

/azp run go - azdatalake

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

Unable to rename a directory named space character using ADLS Gen2 REST API Rename Source Escaping
4 participants