Skip to content

C#: Quoting hotfix. #14177

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

Closed

Conversation

michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Sep 11, 2023

Hotfix: #14172

@github-actions github-actions bot added the C# label Sep 11, 2023
@michaelnebel michaelnebel marked this pull request as ready for review September 11, 2023 07:12
@michaelnebel michaelnebel requested a review from a team as a code owner September 11, 2023 07:12
tamasvajk
tamasvajk previously approved these changes Sep 11, 2023
Copy link
Contributor

@dbartol dbartol left a comment

Choose a reason for hiding this comment

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

Before we merge this into a hotfix for 2.14.4, I'd like answers to two questions:

  1. What is the customer impact of waiting until 2.14.5 for this fix?
  2. Since this fix does not fully implement the quoting rules for Windows command lines, I could use some convincing that this fix is strictly better than the original code that completely ignores quoting. I think it's strictly better, because any argument with a space would definitely be broken before.

@michaelnebel
Copy link
Contributor Author

Before we merge this into a hotfix for 2.14.4, I'd like answers to two questions:

  1. What is the customer impact of waiting until 2.14.5 for this fix?
  2. Since this fix does not fully implement the quoting rules for Windows command lines, I could use some convincing that this fix is strictly better than the original code that completely ignores quoting. I think it's strictly better, because any argument with a space would definitely be broken before.

Thank you for the questions @dbartol !

  1. They might have over 2k repos with this issue and just the primitive quoting might fix many of these, which sounds to be blocking issue. However, you have a valid point that this is NOT a regression, which argues against doing this as a hotfix (we haven't broken anything that worked before).
  2. That is my understanding as well. We don't change anything, if an argument doesn't contain a whitespace. That is, we don't break anything that currently works. However, since the primitive quoting is not ideal we might still produce garbage is some cases, but then it will be garbage in and garbage out.

@michaelnebel michaelnebel changed the base branch from codeql-cli-2.14.4 to rc/3.11 September 12, 2023 08:28
@michaelnebel michaelnebel dismissed tamasvajk’s stale review September 12, 2023 08:28

The base branch was changed.

@michaelnebel michaelnebel requested review from a team as code owners September 12, 2023 08:28
@michaelnebel
Copy link
Contributor Author

Sorry for the mass ping...

@michaelnebel michaelnebel deleted the csharp/quotinghotfix branch September 12, 2023 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants