Skip to content

Conversation

lindexi
Copy link
Member

@lindexi lindexi commented Jul 5, 2021

Fixes Issue #4781

Description

We do not escape the path string in GetEntryAssemblyLocation method. And it will break when the application in the special path, such as the path contains a #. See #4781

Customer Impact

All the GetContentStream

Regression

No.

Testing

Just CI

Risk

@lindexi lindexi requested a review from a team as a code owner July 5, 2021 12:44
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jul 5, 2021
@ghost ghost requested review from fabiant3, ryalanms and SamBent July 5, 2021 12:44
We do not escape the path string in GetEntryAssemblyLocation method. And it will break when the application in the special path, such as the path contains a `#`. See dotnet#4781
@lindexi lindexi force-pushed the t/lindexi/FixGetContentStream branch from baeac4e to 5867dc7 Compare July 6, 2021 01:06
@miloush
Copy link
Contributor

miloush commented Jul 11, 2021

Is similar fix needed for when # is in the assembly file name rather than the directory path?

@lindexi
Copy link
Member Author

lindexi commented Jul 12, 2021

Is similar fix needed for when # is in the assembly file name rather than the directory path?

Sorry, it seems hard to create the assembly with the name contains #? Could you tell me how to create it?

@lindexi
Copy link
Member Author

lindexi commented Jul 19, 2021

@anjalisheel-wpf Thank you. And any news?

@ryalanms ryalanms merged commit 9cdfdc3 into dotnet:main Jul 23, 2021
@lindexi lindexi deleted the t/lindexi/FixGetContentStream branch July 24, 2021 00:45
ryalanms added a commit that referenced this pull request Aug 4, 2021
ryalanms added a commit that referenced this pull request Aug 4, 2021
lindexi added a commit to dotnet-campus/wpf that referenced this pull request Aug 12, 2021
The Application.ResourceAssembly.CodeBase is the string without escaped.

See:

- dotnet#4781
- dotnet#5004
- dotnet#4799
lindexi added a commit to dotnet-campus/wpf that referenced this pull request Aug 12, 2021
The Application.ResourceAssembly.CodeBase is the string without escaped.

See:

- dotnet#4781
- dotnet#5004
- dotnet#4799
@ghost ghost locked as resolved and limited conversation to collaborators Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants