Skip to content
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

fix: html error formatting MAASENG-2935 #5405

Conversation

petermakowski
Copy link
Contributor

Done

In some rare scenarios HTML content might be returned as a response. This change makes sure that we display text only and not entire raw HTML string.

  • fix: html error formatting MAASENG-2935

QA steps

HTML formatting is hard QA without simulating an actual nginx error and also already covered by tests. Focus on verifying that other errors are displayed as before.

  • Attempt to login using incorrect credentials
  • Ensure that login validation error is displayed correctly

Fixes

Fixes: MAASENG-2935

Screenshots

Before

image

After

Google Chrome screenshot 001831@2x

Notes

@webteam-app
Copy link

Co-authored-by: Jones Ogolo <47540149+Jay-Topher@users.noreply.github.com>
@petermakowski petermakowski enabled auto-merge (squash) April 15, 2024 13:33
Copy link
Contributor

@Jay-Topher Jay-Topher left a comment

Choose a reason for hiding this comment

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

+1

@petermakowski petermakowski merged commit 4265c3d into canonical:main Apr 15, 2024
6 checks passed
@petermakowski petermakowski deleted the fix-html-error-formatting-MAASENG-2935 branch April 15, 2024 14:02
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.

3 participants