Bug 794480

Summary: Hardware catalog software errors on login/logout when xmlrpc service is unavailable
Product: [Retired] Red Hat Hardware Certification Program Reporter: Rob Landry <rlandry>
Component: Hardware CatalogAssignee: Pengfei Xue <pxue>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2CC: hwcert-catalog, pxue, tfu, wshen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-20 00:37:03 UTC Type: ---
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: 807440    
Attachments:
Description Flags
new patch for Hwcert.pm pxue: review? (rlandry), pxue: review? (tfu), pxue: review? (wshen)

Description Rob Landry 2012-02-16 22:44:16 UTC
Description of problem:

Attempting to logout while bz was in maint mode software errors with:


bz xmlrpc call failed: no call object returned on User.login at Hwcert.pm line 206.


This should not exit with a software error but a more intentional message as to not alarm the user.  A similar message appears when logging in; again it's not that a login was possible but that it should not software error but go to an error handler code path.

Comment 5 Pengfei Xue 2012-03-01 08:44:15 UTC
Created attachment 566781 [details]
new patch for Hwcert.pm

if xmlrpc service unavailable when logging in, clear the browser's cookies those are Bugzilla_cookie and Bugzilla_login, if not, after service is back when calling xmlrpc logout, there will be an error 'login required', and will cause confuse.

Comment 8 Wei Shen 2012-03-05 02:23:57 UTC
ok, patch looks good

Comment 11 Pengfei Xue 2012-03-31 07:03:36 UTC
verified on web2