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

CopyConfigurationTask fails due to double escaped target path #797

Open
Sebobo opened this issue Aug 12, 2024 · 2 comments
Open

CopyConfigurationTask fails due to double escaped target path #797

Sebobo opened this issue Aug 12, 2024 · 2 comments

Comments

@Sebobo
Copy link
Contributor

Sebobo commented Aug 12, 2024

The escapedTargetPath is as its name says already escaped and is put into quotes in resulting script.
This leads to an error when the scp command is called, as the path cannot be resolved:

$commands[] = ltrim("{$expect} scp {$sshOptions}{$scpPort}{$escapedSourcePath} {$username}{$hostname}:\"{$escapedTargetPath}\"");

I assume this error rarely occurs as in most projects, the environment specific configuration is managed on the target system, or (in my case) the copy task is executed on the server itself.

@Sebobo
Copy link
Contributor Author

Sebobo commented Aug 12, 2024

I can take care of this issue.

@simonschaufi
Copy link
Collaborator

That would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants