Syntax Error occurred when displaying angular flavor panel

Bug #1634320 reported by Kenji Ishii
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
In Progress
Low
Unassigned

Bug Description

When displaying angular flavor panel, the error below occurred.
It seems to be caused by containing ':' in id attribute.

angular.js:12783 Error: [$parse:syntax] Syntax Error: Token ':' is an unexpected token at column 17 of the expression [os-flavor-access:is_public] starting at [:is_public].
http://errors.angularjs.org/1.4.10/$parse/syntax?p0=%3A&p1=is%20an%20unexpected%20token&p2=17&p3=os-flavor-access%3Ais_public&p4=%3Ais_public
    at http://localhost:8080/dashboard/static/horizon/lib/angular/angular.js:68:12
    at Object.throwError (http://localhost:8080/dashboard/static/horizon/lib/angular/angular.js:13363:11)
    at Object.ast (http://localhost:8080/dashboard/static/horizon/lib/angular/angular.js:13133:12)
    at Object.compile (http://localhost:8080/dashboard/static/horizon/lib/angular/angular.js:13582:31)
    at Parser.parse (http://localhost:8080/dashboard/static/horizon/lib/angular/angular.js:14461:29)
    at $parse (http://localhost:8080/dashboard/static/horizon/lib/angular/angular.js:14569:39)
    at link (http://localhost:8080/dashboard/static/horizon/lib/angular_smart_table/smart-table.js:309:22)
    at invokeLinkFn (http://localhost:8080/dashboard/static/horizon/lib/angular/angular.js:9079:9)
    at nodeLinkFn (http://localhost:8080/dashboard/static/horizon/lib/angular/angular.js:8566:11)
    at compositeLinkFn (http://localhost:8080/dashboard/static/horizon/lib/angular/angular.js:7965:13) <th ng-repeat="column in config.columns" class="rsp-p{$ column.priority $} ng-scope" st-sort="{$ column.id $}" ng-attr-st-sort-default="{$ column.sortDefault $}" translate="" ng-if="columnAllowed(column)">

Kenji Ishii (ken-ishii)
Changed in horizon:
assignee: nobody → Kenji Ishii (ken-ishii)
Changed in horizon:
status: New → Confirmed
importance: Undecided → Low
milestone: none → ocata-1
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

Kenji, is this still a valid bug?

Changed in horizon:
milestone: ocata-1 → ocata-2
Revision history for this message
Kenji Ishii (ken-ishii) wrote :

Yes, I re-confirmed and could reproduce this matter.
I glanced at this and it might be caused by codes around here.
https://github.com/openstack/horizon/blob/master/openstack_dashboard/static/app/core/flavors/flavors.module.js#L74

Changed in horizon:
milestone: ocata-2 → next
Akihiro Motoki (amotoki)
Changed in horizon:
assignee: Kenji Ishii (ken-ishii) → nobody
wei.ying (wei.yy)
Changed in horizon:
assignee: nobody → wei.ying (wei.yy)
Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by wei.ying (<email address hidden>) on branch: master
Review: https://review.openstack.org/453613
Reason: As above comments, other patches have a better solution.

wei.ying (wei.yy)
Changed in horizon:
assignee: wei.ying (wei.yy) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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