Reviewed: https://review.opendev.org/698398 Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=8fb86b2adbdf4fae63faabc8937728c43c1777d5 Submitter: Zuul Branch: master
commit 8fb86b2adbdf4fae63faabc8937728c43c1777d5 Author: Hemanth Nakkina <[email protected]> Date: Wed Dec 11 10:09:22 2019 +0530 GUI hangs on creation of project in User creation form On creation of project in user creation form, the response is sent as html and the javascript try to parse the output as json and fails. The project creation response should be sent as text/plain so that javascript can parse the string as json. The bug have 3 parts 1. Users are not listed on GUI in different domain 2. Projects are not listed on GUI in different domain 3. Gui hangs during creation of user/project using + option Case 1 & 2 are fixed at https://review.opendev.org/#/c/697962/ This patch fixes case 3. Change-Id: I4936a158ad99cf9d7514e79c06ed2315ce11218b Closes-Bug: #1826114 ** Changed in: horizon Status: In Progress => Fix Released -- 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/1826114 Title: Errors creating users and projects Status in OpenStack Dashboard (Horizon): Fix Released Bug description: After a fresh install of OpenStack Stein using Juju Charms I'm getting errors and items not appearing when creating new users and projects. Here are several tests I made: When creating ONLY a new user in a domain different than admin_domain, the user creates successfully but is not shown in the user list on the GUI even after a refresh/logout. Using the CLI shows that it was created successfully. When creating ONLY a project in a domain different than admin_domain, the project creates successfully but is not shown in the user list on the GUI even after a refresh/logout. Using the CLI shows that it was created successfully. When creating a user in a domain different than admin_domain, the project list in the form is empty. When creating a user AND a project in any domain (using the "+" icon in the user creation form), after creating the project the GIU hangs on a "Working..." spinning wheel and the following error appears on the web console: Uncaught SyntaxError: Unexpected token < in JSON at position 53 at JSON.parse (<anonymous>) at Function.jQuery.parseJSON (439e79e74c16.js:567) at Function.jQuery.parseJSON (439e79e74c16.js:720) at processServerSuccess (c1b8ea0c3a19.js:80) at Object.success (c1b8ea0c3a19.js:84) at fire (439e79e74c16.js:210) at Object.fireWith [as resolveWith] (439e79e74c16.js:216) at done (439e79e74c16.js:626) at XMLHttpRequest.callback (439e79e74c16.js:653) After a refresh, the project is created but not the user. When creating a new user and a project separately in admin_domain everything works OK. After that I can see both and assign the project to the user. In all the pages I load from Horizon I get the following warning on the web console: 439e79e74c16.js:700 JQMIGRATE: $(html) HTML strings must start with '<' character migrateWarn @ 439e79e74c16.js:700 jQuery.fn.init @ 439e79e74c16.js:714 jQuery @ 439e79e74c16.js:15 success @ c1b8ea0c3a19.js:204 fire @ 439e79e74c16.js:210 fireWith @ 439e79e74c16.js:216 done @ 439e79e74c16.js:626 callback @ 439e79e74c16.js:653 439e79e74c16.js:700 console.trace migrateWarn @ 439e79e74c16.js:700 jQuery.fn.init @ 439e79e74c16.js:714 jQuery @ 439e79e74c16.js:15 success @ c1b8ea0c3a19.js:204 fire @ 439e79e74c16.js:210 fireWith @ 439e79e74c16.js:216 done @ 439e79e74c16.js:626 callback @ 439e79e74c16.js:653 To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1826114/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

