-
Notifications
You must be signed in to change notification settings - Fork 274
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
toolrunner _argStringToArray eats up escaped quotes #648
Comments
This issue has had no activity in 90 days. Please comment if it is not actually stale |
Yeah, still interested in this being fixed. |
This issue has had no activity in 90 days. Please comment if it is not actually stale |
I am also interested in seeing this issue resolved. Please reopen @nohwnd @saquibkhan |
Hello @nohwnd @ShreyasRmsft @phanikmmsft? This was closed over the holiday break, when I was not monitoring the email address subscribed. Definitely still need this issue resolved. |
@kcentralsquare could you open a new one? I am not a maintainer on this repo and do not have permissions to re-open this issue. |
I am also having the same issue:
And idea when this will be fixed? |
@ShreyasRmsft I'm not a maintainer either, nor will I create a new issue just because a bot closed this one. I didn't even create this issue in the first place. Who do we have to tag to get a response from microsoft? |
@egor-bryzgalov could you please help re-open this issue? |
@ShreyasRmsft yes, sure. |
Any updates on this issue please ? |
WORKAROUND
|
After Update from 219.0.1 to 2020.0.1 the behavior has changed.
|
@egor-bryzgalov @damccorm There is a feedback ticket open for this https://developercommunity.visualstudio.com/t/DotNetCoreCLI2-test-task-doesnt-have-ca/1370232. We tried the workaround |
The workaround above for 2019.0.1 and 2020.0.1 was running on agents in a VM with w2019-Server. Not tested on Linux-VMs - SRY |
We have tried multiple solutions
our case (job template):
|
Please check our current Issues to see if someone already reported this https://github.com/Microsoft/azure-pipelines-task-lib/issues
Environment
azure-pipelines-task-lib version:
Issue Description
toolrunner _argStringToArray eats up escaped quotes
Expected behavior
It should no remove escaped quotes
Actual behavior
toolrunner _argStringToArray eats up escaped quotes
Steps to reproduce
Server - Azure Pipelines
task DotNetCoreCLI@2
Other Inputs
Input:
-- TestRunParameters.Parameter(name=paramName,value=argwith"aquote)
Output
-- TestRunParameters.Parameter(name=paramName,value=argwithaquote)
Input:
-- TestRunParameters.Parameter(name=paramName,value=argwith\"aquote)
Output
-- TestRunParameters.Parameter(name=paramName,value=argwith\aquote)
Other Inputs:
Input:
-- TestRunParameters.Parameter(name=\"EdiStagingFunctionsKey\",value=\"key2\")
Output:
TestRunParameters.Parameter(name=\EdiStagingFunctionsKey\",value=\"key2\")
Note: Above the first escaped quotes are eaten up.
Input:
TestRunParameters.Parameter(name="EdiStagingFunctionsKey",value="key2"
Output:
TestRunParameters.Parameter(name=EdiStagingFunctionsKey,value=key2)
More details on the issue from customer - microsoft/azure-pipelines-tasks#13130
Our Debug analysis is as below along with the flow:
Issue Bug is with azure-task-lib _argStringToArray function - https://github.com/microsoft/azure-pipelines-task-lib/blob/master/node/toolrunner.ts#L88
Stack-->
https://github.com/microsoft/azure-pipelines-task-lib/blob/master/node/toolrunner.ts#L88
https://github.com/microsoft/azure-pipelines-task-lib/blob/master/node/toolrunner.ts#L838
https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/DotNetCoreCLIV2/dotnetcore.ts#L170
/cc @nohwnd @ShreyasRmsft @phanikmmsft
Logs
The text was updated successfully, but these errors were encountered: