Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 577067 Details for
Bug 811990
regenerate proxy auth token when hostname changes from url parsing
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to regenerate proxy auth token with url parsed hostname changes
0001-check-proxy-token-for-old-host-and-refresh-auth-toke.patch (text/plain), 975 bytes, created by
Shannon Hughes
on 2012-04-12 13:21:09 UTC
(
hide
)
Description:
patch to regenerate proxy auth token with url parsed hostname changes
Filename:
MIME Type:
Creator:
Shannon Hughes
Created:
2012-04-12 13:21:09 UTC
Size:
975 bytes
patch
obsolete
>From ba810fec2bb1c3e7700f7288290da845bee21454 Mon Sep 17 00:00:00 2001 >From: Shannon Hughes <shughes@redhat.com> >Date: Thu, 12 Apr 2012 08:05:32 -0400 >Subject: [PATCH] check proxy token for old host and refresh auth token if > necessary > >--- > proxy/proxy/rhnProxyAuth.py | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/proxy/proxy/rhnProxyAuth.py b/proxy/proxy/rhnProxyAuth.py >index 85ba60e..72b3304 100644 >--- a/proxy/proxy/rhnProxyAuth.py >+++ b/proxy/proxy/rhnProxyAuth.py >@@ -118,7 +118,8 @@ class ProxyAuth: > log_debug(3) > oldToken = self.get_cached_token() > token = oldToken >- if not token or forceRefresh or self.__processSystemid(): >+ oldHost = string.split(oldToken, ':')[-1] >+ if not token or forceRefresh or self.__processSystemid() or (oldHost != self.hostname): > token = self.login() > if token and token != oldToken: > self.set_cached_token(token) >-- >1.7.7.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 811990
: 577067