| Summary: | Username indicated as "sign in" post redhat portal identification. | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Nir Magnezi <nmagnezi> | |
| Component: | redhat-access-plugin-openstack | Assignee: | Dan Varga <dvarga> | |
| Status: | CLOSED ERRATA | QA Contact: | Nir Magnezi <nmagnezi> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 4.0 | CC: | ajeain, ddomingo, kroberts, rhos-maint, sclewis, yeylon | |
| Target Milestone: | beta | |||
| Target Release: | 4.0 | |||
| Hardware: | Unspecified | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | redhat-access-plugin-openstack-4.0.0-0 | Doc Type: | Bug Fix | |
| Doc Text: |
A bug in Strata (the Customer Portal API) sometimes sends invalid responses to the Red Hat Access user interface. Whenever this occurred, Red Hat Access incorrectly prompted users to log in even when they were already logged in.
With this fix, the Red Hat Access plugin now completely disables the "Search" and "Diagnose" fields unless the user is correctly logged in. In addition, Red Hat Access tests user login status each time the browser window is in focus (instead of during page refreshes). These measures prevent users from receiving incorrect login prompts whenever Strata sends an invalid response.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1022210 (view as bug list) | Environment: | ||
| Last Closed: | 2013-12-20 00:30:17 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Bug Depends On: | ||||
| Bug Blocks: | 1019871, 1022210 | |||
|
Description
Nir Magnezi
2013-10-21 14:38:13 UTC
Hi Nir,
I'm also seeing this behavior with the actual customer portal currently as well. I'm thinking this is a problem with the portal and not necessarily the plugin.
I can see in the cookie payload that the cookie is there, but the JSON callback response is incorrect:
jQuery171032164081605151296_1382366619110({
authorized: false,
internal: false,
login:"",
user_id:"",
account_id:"",
account_number:"",
lang:"en",
lang_err_msg:"The page you have selected is not yet available in English. We are working to make sure all content is available in English, but in order to display the page we have switched your language to English.",
hello:"Hello,",
description_placeholder:"Enter a description",
name:" "
})
Checking with the portal team on this now. The plugin is doing the appropriate thing given the data it has received.
Hi Dan, Thank you for the this input. waiting for updates about this. Hi Nir, I've found a few parts of the code that could be improved to better handle the situation where Strata does not return a good response. Still investigating with them on the root issue though. I have the updated code ready and will kick off a brew build once all the ACKs are in place. Verified NVR: redhat-access-plugin-openstack-4.0.0-0.el6ost.noarch Dan Wrote: Hi Nir, I've made it so the search box + button are 'disabled' if the user is not logged in to the customer portal. I have also removed the requirement of refreshing the page to determine if the user is logged in. Each time the browser window gets the 'focus' event, the user's status is tested. I've tested this and it works exactly as described. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2013-1859.html |