[2.5, UI] Errors from the form layer are not properly escaped

Bug #1790976 reported by Mike Pontillo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Lee Trager

Bug Description

While working on bug #1782409, I noticed that when an error message is presented to the user, strings like <target> become HTML tags instead of being escaped.

The screenshot should explain what I mean. The error here is supposed to say:

    Invalid SRV: Should be '<priority> <weight> <port> <server>'. Range for priority, weight, and port are 0-65536.

Tags: ui

Related branches

Revision history for this message
Mike Pontillo (mpontillo) wrote :
Revision history for this message
Mike Pontillo (mpontillo) wrote :
Changed in maas:
milestone: 2.5.0beta2 → 2.5.0rc1
Changed in maas:
assignee: nobody → Lee Trager (ltrager)
Lee Trager (ltrager)
Changed in maas:
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.