[UI] MAAS Configuration | Name allows for unescaped quote
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Kit Randel | ||
2.4 |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Single quotes don't appear to be escaped when saved in Settings | General | MAAS Configuration | MAAS name.
This appears to generate an error on the /dashboard route.
```
Error: [$parse:lexerr] Lexer Error: Unterminated quote at columns 18-19 ['] in expression [site = 'kit's maas'].
http://
at http://
at Lexer.throwError (http://
at Lexer.readString (http://
at Lexer.lex (http://
at AST.ast (http://
at ASTCompiler.compile (http://
at Parser.parse (http://
at $parse (http://
at Scope.$eval (http://
at Object.pre (http://
```
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 79 lines (+26/-26)2 files modifiedsrc/maasserver/static/partials/pod-details.html (+25/-25)
src/maasserver/templates/maasserver/index.html (+1/-1)
- Blake Rouse (community): Approve
- MAAS Lander: Approve
-
Diff: 13 lines (+1/-1)1 file modifiedsrc/maasserver/templates/maasserver/index.html (+1/-1)
Changed in maas: | |
importance: | Undecided → Critical |
status: | New → Triaged |
milestone: | none → 2.5.0 |
summary: |
- MAAS Configuration | Name allows for unescaped quote [UI] + [UI] MAAS Configuration | Name allows for unescaped quote |
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Kit Randel (blr) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 2.5.0 → 2.5.0alpha1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |