← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1630833] Re: Horizon image upload via URL fails with "TypeError: Cannot read property 'data' of undefined"

 

I'm reopening this as I believe the error message should be much clearer
since this is a pretty easy error to get (the configuration of this is
not presented very clearly and it's easy to get wrong).

** Changed in: horizon
       Status: Invalid => Triaged

** Changed in: horizon
   Importance: Undecided => Medium

** Tags added: low-hanging-fruit

** Changed in: horizon
    Milestone: None => pike-1

-- 
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/1630833

Title:
  Horizon image upload via URL fails with "TypeError: Cannot read
  property 'data' of undefined"

Status in OpenStack Dashboard (Horizon):
  Triaged

Bug description:
  We have deployed Newton, and trying to upload image via URL on horizon , however it fails on horizon displaying :
  "TypeError: Cannot read property 'data' of undefined"

  However, in Chrome developer mode i see this :

  https://10.240.128.120/horizon/api/glance/images/ Failed to load
  resource: the server responded with a status of 403  (FORBIDDEN)

  i have tried all settings for HORIZON_IMAGES_UPLOAD_MODE as True, False, legacy and direct, 
  and for all settings i get same error. 

  Rest assured , my cors settings for glance look fine.
  In glance-api.conf:
  [cors]
  allowed_origin = https://10.240.128.120/horizon,https://10.240.128.120
  allow_methods=GET,POST,PUT,DELETE

  Also in glance-api-paste.ini:
  [filter:cors]
  paste.filter_factory =  oslo_middleware.cors:filter_factory
  allowed_origin = https://10.240.128.120/horizon,https://10.240.128.120
  allow_methods=GET,POST,PUT,DELETE

  the screenshots might help understand better where the problem lies.
  http://imgur.com/a/nmypx

  A quick google search of "TypeError: Cannot read property 'data' of undefined"
   reveals its related to angular JS however we cannot confirm where exactly the error is happening.

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


References