Bug 555255

Summary: Status module cant cope with 401 (permission denied) from service
Product: [openSUSE] openSUSE 11.2 Reporter: Klaus Kämpf <kkaempf>
Component: WebYaSTAssignee: Josef Reidinger <jreidinger>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P4 - Low CC: jreidinger
Version: RC 2   
Target Milestone: Future 11.3   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: screen region

Description Klaus Kämpf 2009-11-13 12:39:44 UTC
See attached screenshot.

A 401 can happen at any time (i.e. session timeout, etc.) and must be handled gracefully by redirecting to the login dialog.

Is this specific to status or generic in all modules ?
(CC jreidinger, he might know ;-))
Comment 1 Klaus Kämpf 2009-11-13 12:41:53 UTC
Created attachment 327397 [details]
screen region
Comment 2 Klaus Kämpf 2009-11-20 11:00:54 UTC
Candidate for maint update
Comment 3 Josef Reidinger 2009-11-27 16:13:49 UTC
It is generic issue, I already mention it in a bug, but I cannot remember which one. I reproduce it with every plugin, as it is catched in general exception handler. 
What should be changed is that if rest-service return 401 we should call logout. and set flash to session expire.
Question is what to do, if it is AJAX call? (AJAX cannot redirect I think).
I take it as I know what should be changed.
Comment 4 Josef Reidinger 2009-12-01 11:29:15 UTC
*** Bug 559458 has been marked as a duplicate of this bug. ***
Comment 5 Josef Reidinger 2009-12-11 12:26:03 UTC
merged to master and will be in next release