[JBoss JIRA] Created: (JBAS-4448) Properties MBean attribues don't update properly
by John Mazzitelli (JIRA)
Properties MBean attribues don't update properly
------------------------------------------------
Key: JBAS-4448
URL: http://jira.jboss.com/jira/browse/JBAS-4448
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: JBossAS-4.2.0.GA
Reporter: John Mazzitelli
Priority: Minor
I have this in my jboss-service.xml for a custom MBean that has a Properties attribute:
<attribute name="ConfigurationOverrides" serialDataType="jbxb">
<java:properties xmlns:java="urn:jboss:java-properties"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="urn:jboss:java-properties resource:java-properties_1_0.xsd">
<java:property>
<java:key>my-data-directory</java:key>
<java:value>${jboss.server.data.dir}/subdir</java:value>
</java:property>
... and more java:property definitions ...
I have other non-Properties attributes in my MBean as well.
This works fine when starting up. My MBean's setConfigurationOverrides(Properties p) method is called with proper values and everything works.
However, if I go to the JMX console, and edit one of my other attributes (simple String attribute), it seems my Properties attribute gets hosed - its values are all screwed up.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 6 months
[JBoss JIRA] Created: (JBAS-4343) NullPointerException causing bad password exception in LdapLoginModule when the role attribute is not set for a given entry
by pgillis (JIRA)
NullPointerException causing bad password exception in LdapLoginModule when the role attribute is not set for a given entry
---------------------------------------------------------------------------------------------------------------------------
Key: JBAS-4343
URL: http://jira.jboss.com/jira/browse/JBAS-4343
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: JBossAS-4.0.5.GA
Environment: Linux, kernel 2.6.20, i686
Reporter: pgillis
Priority: Minor
The org.jboss.security.auth.spi.LdapLoginModule class is throwing a NullPointerException that is causing authentication to fail in cases where, in my mind, it should be succeeding.
The NPE is thrown when a record is encountered that does not have the attribute listed in roleAttributeID. There are two issues here:
1. The error that shows up in the log is a BadPassword error. This is misleading, if anything it should be a configuration error.
2. The roles are for authorization not authentication. When this exception gets thrown, authentication is failing.
It seems reasonable for an LDAP attribute to be useful in identifying roles even if it isn't defined for every record. You can get around this problem with a more complex realm definition in login-config.xml, but shouldn't have to...thanks...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 6 months