← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1614630] [NEW] hz-field-directive If a property is null or undefined and does not have filters transforming, exception is logged

 

Public bug reported:

hz-field-directive was developed using hz images panel where every
single property had at least the no value filter applied.  However, when
using it with properties that don't have the no value filter applied and
there is no value, we'll see the following in console.log

angular.js:12783 TypeError: Cannot read property 'then' of undefined
    at link (http://127.0.0.1:8005/static/framework/widgets/property/hz-field.directive.js:115:17)
    at http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:9073:44
    at invokeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:9079:9)
    at nodeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:8566:11)
    at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7965:13)
    at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7968:13)
    at nodeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:8561:24)
    at delayedNodeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:8828:11)
    at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7965:13)
    at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7968:13) <hz-field config="ctrl.config" item="ctrl.item" class="ng-isolate-scope">(anonymous function) @ angular.js:12783(anonymous function) @ angular.js:9535invokeLinkFn @ angular.js:9081nodeLinkFn @ angular.js:8566compositeLinkFn @ angular.js:7965compositeLinkFn @ angular.js:7968nodeLinkFn @ angular.js:8561delayedNodeLinkFn @ angular.js:8828compositeLinkFn @ angular.js:7965compositeLinkFn @ angular.js:7968publicLinkFn @ angular.js:7845boundTranscludeFn @ angular.js:7983controllersBoundTransclude @ angular.js:8593ngRepeatAction @ angular.js:28080$watchCollectionAction @ angular.js:16066$digest @ angular.js:16203$apply @ angular.js:16467done @ angular.js:10852completeRequest @ angular.js:11050requestLoaded @ angular.js:10991
4angular.js:12783 TypeError: Cannot read property 'then' of null
    at link (http://127.0.0.1:8005/static/framework/widgets/property/hz-field.directive.js:115:17)
    at http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:9073:44
    at invokeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:9079:9)
    at nodeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:8566:11)
    at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7965:13)
    at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7968:13)
    at nodeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:8561:24)
    at delayedNodeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:8828:11)
    at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7965:13)
    at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7968:13) <hz-field config="ctrl.config" item="ctrl.item" class="ng-isolate-scope">

** Affects: horizon
     Importance: Undecided
     Assignee: Travis Tripp (travis-tripp)
         Status: In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1614630

Title:
  hz-field-directive If a property is null or undefined and does not
  have filters transforming, exception is logged

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  hz-field-directive was developed using hz images panel where every
  single property had at least the no value filter applied.  However,
  when using it with properties that don't have the no value filter
  applied and there is no value, we'll see the following in console.log

  angular.js:12783 TypeError: Cannot read property 'then' of undefined
      at link (http://127.0.0.1:8005/static/framework/widgets/property/hz-field.directive.js:115:17)
      at http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:9073:44
      at invokeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:9079:9)
      at nodeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:8566:11)
      at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7965:13)
      at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7968:13)
      at nodeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:8561:24)
      at delayedNodeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:8828:11)
      at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7965:13)
      at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7968:13) <hz-field config="ctrl.config" item="ctrl.item" class="ng-isolate-scope">(anonymous function) @ angular.js:12783(anonymous function) @ angular.js:9535invokeLinkFn @ angular.js:9081nodeLinkFn @ angular.js:8566compositeLinkFn @ angular.js:7965compositeLinkFn @ angular.js:7968nodeLinkFn @ angular.js:8561delayedNodeLinkFn @ angular.js:8828compositeLinkFn @ angular.js:7965compositeLinkFn @ angular.js:7968publicLinkFn @ angular.js:7845boundTranscludeFn @ angular.js:7983controllersBoundTransclude @ angular.js:8593ngRepeatAction @ angular.js:28080$watchCollectionAction @ angular.js:16066$digest @ angular.js:16203$apply @ angular.js:16467done @ angular.js:10852completeRequest @ angular.js:11050requestLoaded @ angular.js:10991
  4angular.js:12783 TypeError: Cannot read property 'then' of null
      at link (http://127.0.0.1:8005/static/framework/widgets/property/hz-field.directive.js:115:17)
      at http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:9073:44
      at invokeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:9079:9)
      at nodeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:8566:11)
      at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7965:13)
      at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7968:13)
      at nodeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:8561:24)
      at delayedNodeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:8828:11)
      at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7965:13)
      at compositeLinkFn (http://127.0.0.1:8005/static/horizon/lib/angular/angular.js:7968:13) <hz-field config="ctrl.config" item="ctrl.item" class="ng-isolate-scope">

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1614630/+subscriptions


Follow ups