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 598471 Details for
Bug 840512
JON CP test connection not working with valid credentials
[?]
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 for obfuscation issue with content source.
commit-BZ-840512-2c6836e.txt (text/plain), 2.10 KB, created by
Simeon Pinder
on 2012-07-16 14:51:28 UTC
(
hide
)
Description:
patch for obfuscation issue with content source.
Filename:
MIME Type:
Creator:
Simeon Pinder
Created:
2012-07-16 14:51:28 UTC
Size:
2.10 KB
patch
obsolete
>commit 2c6836e36a475114ddd18419e6ca98fa8d5c2edc >Author: Simeon Pinder <spinder@redhat.com> >Date: Mon Jul 16 10:44:36 2012 -0400 > > [BZ 840512] workaround bug in persistence container. > >diff --git a/modules/enterprise/server/plugins/jboss-software/src/main/java/org/rhq/enterprise/server/plugins/jboss/software/JBossSoftwareContentSourceAdapter.java b/modules/enterprise/server/plugins/jboss-software/src/main/java/org/rhq/enterprise/server/plugins/jboss/software/JBossSoftwareContentSourceAdapter.java >index 2758e2b..85a940d 100644 >--- a/modules/enterprise/server/plugins/jboss-software/src/main/java/org/rhq/enterprise/server/plugins/jboss/software/JBossSoftwareContentSourceAdapter.java >+++ b/modules/enterprise/server/plugins/jboss-software/src/main/java/org/rhq/enterprise/server/plugins/jboss/software/JBossSoftwareContentSourceAdapter.java >@@ -38,6 +38,7 @@ import org.apache.commons.logging.LogFactory; > > import org.rhq.core.domain.configuration.Configuration; > import org.rhq.core.domain.configuration.PropertySimple; >+import org.rhq.core.util.obfuscation.Obfuscator; > import org.rhq.enterprise.server.plugin.pc.content.ContentProvider; > import org.rhq.enterprise.server.plugin.pc.content.ContentProviderPackageDetails; > import org.rhq.enterprise.server.plugin.pc.content.PackageSource; >@@ -220,6 +221,14 @@ public class JBossSoftwareContentSourceAdapter implements ContentProvider, Packa > > int status = client.executeMethod(method); > >+ //BZ840512: check for issue deobfuscating the password: >+ if (status == 401 || status == 403) { >+ password = Obfuscator.encode(password);//in case de/unobfuscation failed. >+ UsernamePasswordCredentials upc = new UsernamePasswordCredentials(username, password); >+ client.getState().setCredentials("users", method.getHostConfiguration().getHost(), upc); >+ status = client.executeMethod(method); >+ } >+ > //Check to see if redirection has occurred > String currentUrl = method.getURI().getURI(); > //if redirection has occurred, reconnect with correct address.
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 Raw
Actions:
View
Attachments on
bug 840512
:
598471
|
598520
|
599182
|
599552