Skip to content

Fix developer exception page showing duplicate endpoint metadata #54893

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

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Apr 2, 2024

PR to add metadata to the developer exception page accidentally included some test code. This caused metadata to be duplicated. Also, HtmlEncodeAndReplaceLineBreaks output was encoded again.

This PR:

  • Removes duplication
  • Writes HtmlEncodeAndReplaceLineBreaks directly to output

After:

image

@JamesNK JamesNK added the area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares label Apr 2, 2024
@JamesNK JamesNK requested a review from BrennanConroy as a code owner April 2, 2024 04:57
Copy link

@FarazJahanmanesh FarazJahanmanesh left a comment

Choose a reason for hiding this comment

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

well done

<td><span title="@(metadata.GetType().FullName ?? string.Empty)">@metadata.GetType().Name</span></td>
<td>@(metadata.ToString() ?? string.Empty)</td>
<td>
@{
Copy link
Member

Choose a reason for hiding this comment

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

Oops! Sorry, I was trying to get feedback on which way was better to do. #52668 (comment)

Since some times has been passed, I forgot about it!

@JamesNK JamesNK merged commit 8e90749 into main Apr 3, 2024
@JamesNK JamesNK deleted the jamesnk/fix-developer-exception-page-duplication branch April 3, 2024 04:52
@dotnet-policy-service dotnet-policy-service bot added this to the 9.0-preview4 milestone Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants