-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Quote file paths for the BrotliCompress tool #27213
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
Quote file paths for the BrotliCompress tool #27213
Conversation
…ndLine token-expansion rules
5781046 to
bc2203b
Compare
|
I should use this test as a base to make sure that that we can exercise these code paths. We should duplicate this with a space-ified project path to ensure coverage. |
|
Having a hard time verifying that the test I added actually results in a test asset with a space in it. VS doesn't like me at the moment to debug. |
javiercn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
|
Approved for 6.0.4xx as well |
|
Branding PR has merged bumping to 6.0.305, so merging this. |
Description
Quotes file paths passed to the BrotliCompress tool as command line arguments so that the generated response file has the expected format for paths that include spaces.
Closes #26026
Customer Impact
Customers with Blazor WebAssembly projects that have a space in the path to the project could not publish their projects at all. They had to change the folder structure to no longer include a space to make publishing work again.
Regression
Yes, this regressed in 6.0.301 due to a change in System.CommandLine response file parsing. We fixed this for the CLI overall in an earlier fix, but missed this tool due to lack of test coverage for this particular scenario, as well as these standalone tools not using the same CLI processing logic as the 'core'
dotnettool (for good reason, since tools like the brotli compress tool are internal-only and should be free to change). This is present in 6.0.400 and onwards as well.Risk
Low - the change only impacts file paths that are not already quoted and uses an existing mechanism for quoting. Automated tests have also been added to cover building/publishing in paths that contain a space.