Skip to content

Fix the Malware Blocker page not displaying validation errors#473

Merged
Flaminel merged 1 commit intomainfrom
fix_malware_blocker_inputs
Feb 25, 2026
Merged

Fix the Malware Blocker page not displaying validation errors#473
Flaminel merged 1 commit intomainfrom
fix_malware_blocker_inputs

Conversation

@Flaminel
Copy link
Contributor

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes validation error display on the Malware Blocker settings page by adding client-side validation for blocklist configuration and improving server-side error message handling.

Changes:

  • Added validation to ensure at least one blocklist is configured when malware blocker is enabled
  • Enhanced error handling to display server validation messages for 400 status codes
  • Updated error interceptor to handle plain string error responses from the server

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
code/frontend/src/app/features/settings/malware-blocker/malware-blocker.component.ts Added noBlocklistError computed validation, integrated it into hasErrors(), and updated save error handler to display server messages for 400 errors
code/frontend/src/app/features/settings/malware-blocker/malware-blocker.component.html Bound the noBlocklistError() to the accordion's error property to display validation messages
code/frontend/src/app/core/interceptors/error.interceptor.ts Added handling for plain string error responses before falling back to JSON error parsing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Flaminel Flaminel merged commit cbfc1b2 into main Feb 25, 2026
9 of 10 checks passed
@Flaminel Flaminel deleted the fix_malware_blocker_inputs branch February 25, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants