[UI] MAAS Configuration | Name allows for unescaped quote

Bug #1775099 reported by Kit Randel on 2018-06-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kit Randel

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'].
    at Lexer.throwError (
    at Lexer.readString (
    at Lexer.lex (
    at AST.ast (
    at ASTCompiler.compile (
    at Parser.parse (
    at $parse (
    at Scope.$eval (
    at Object.pre ( <body class="has-sticky-footer" data-ng-init="site = 'kit's maas'" data-maas-version-reloader="" window-width="">

Tags: ui Edit Tag help

Related branches

Changed in maas:
importance: Undecided → Critical
status: New → Triaged
milestone: none → 2.5.0
Kit Randel (blr) on 2018-06-05
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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers