Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be unavailable on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1341664 - page doesn't exist after session timeout on provider timeline page
Summary: page doesn't exist after session timeout on provider timeline page
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.6.0
Hardware: x86_64
OS: Linux
Target Milestone: GA
: 5.7.0
Assignee: Yaacov Zamir
QA Contact: Gilad Shefer
Whiteboard: container
Depends On:
Blocks: 1370202
TreeView+ depends on / blocked
Reported: 2016-06-01 12:54 UTC by Dafna Ron
Modified: 2018-06-06 11:34 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1370202 (view as bug list)
Last Closed: 2017-01-11 20:06:20 UTC
Category: ---
Cloudforms Team: Container Management
Target Upstream Version:

Attachments (Terms of Use)

Description Dafna Ron 2016-06-01 12:54:29 UTC
Description of problem:

I was looking at the provider timeline and after the session expired and I tried to log in I got a "page not found" error. 

Version-Release number of selected component (if applicable):

How reproducible:


Steps to Reproduce:
1. Navigate to compute -> container -> providers
2. select a provider -> monitoring -> timeline 
3. select event group: Alarm/Status Change/Error
4. select Level: Detail
5. after timeout -> log in again 

Actual results:

get a page doesn't exit

Expected results:

we should be able to log in again 

Additional info: logs and screen shot

Comment 1 Dafna Ron 2016-06-01 14:53:05 UTC
This is reproducible 100% 
Happened to me again.

Comment 2 Federico Simoncelli 2016-08-23 09:39:54 UTC
Dafna if this is still reproducible can you work with Yaacov (on your system) to find and fix the issue? Thanks.

Comment 3 Yaacov Zamir 2016-08-23 12:12:53 UTC
I can't reproduce on master, tried also on CFME 5.6.1 with Pavel but we could not reproduce.

Dafna, I think we can close it, and re-open if we see it again ?

Comment 4 Dafna Ron 2016-08-23 12:21:24 UTC
please do.

Comment 5 Yaacov Zamir 2016-08-23 12:25:02 UTC
Just reproduced on my machine.

What happen:
1. we have an http request to the page:
GET  ems_container/5?display=timeline

2. we have an ajax request to:
POST ems_container/tl_chooser/5?tl_fl_grp1=Alarm/Status change/Errors

3. we have session timeout

4. after re-login we go to:
GET  ems_container/tl_chooser/5?tl_fl_grp1=Alarm/Status change/Errors
that does not exist.

This is not 100% reproducible it's very time sensitive bug, you need to timeout exactly at the right time.

Comment 8 CFME Bot 2016-09-01 14:00:49 UTC
New commit detected on ManageIQ/manageiq/master:

commit 0022001db5be7b6212a4ff927698e6c21078f56e
Author:     Yaacov Zamir <yzamir@gmail.com>
AuthorDate: Tue Aug 23 17:48:11 2016 +0300
Commit:     Yaacov Zamir <yzamir@gmail.com>
CommitDate: Thu Sep 1 16:20:20 2016 +0300

    Check the request method before using requet url as startup page
    On rare events when an ajax request trigers the session timout, and loads the
    login page, the startup page will be a page not found error.
    This PR prevent the page not found error in this cases. In the cases of an
    ajax POST request that trigers the timeout, we will replay with an unautherized replay.

 app/controllers/application_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 9 Yaacov Zamir 2016-09-01 14:02:53 UTC
Merged upstream:

Note You need to log in before you can comment on or make changes to this bug.