Issue Details (XML | Word | Printable)

Key: DIRSERVER-349
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alex Karasulu
Reporter: Enrique Rodriguez
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

NamingEvent.OBJECT_CHANGED has identical bindings for the old binding and the new binding.

Created: 25/Oct/05 04:01 PM   Updated: 15/Feb/09 01:31 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 26/Oct/05 02:37 AM


 Description  « Hide
When using an ObjectChangeListener, the generated NamingEvent.OBJECT_CHANGED has identical bindings for the evt.getNewBinding() and evt.getOldBinding(). This prevents diffs for the specific attribute(s) that changed.

... As evidenced by the following log statement:

log.debug( id + " >>> object changed: " + evt.getNewBinding() + " from " + evt.getOldBinding() );

... And the following log entry. What actually changed was the ipPort in the backing store via LDAP:

2482963 [IoThreadPool-7] DEBUG org.apache.configuration.store.EventDirContextListener - Listener-1130220104408 >>> object changed: (not relative)cn=org.apache.dns.2,cn=dns,ou=services,ou=configuration,ou=system: org.apache.ldap.common.message.LockableAttributesImpl:objectClass: apacheServiceConfiguration
objectClass: extensibleObject
creatorsName: uid=admin,ou=system
cn: org.apache.dns.2
modifiersName: uid=admin,ou=system
apacheServicePid: org.apache.dns.2
baseDn: dc=apache,dc=org
apacheServiceFactoryPid: org.apache.dns.factory
ipPort: 10053
createTimestamp: 20051025045832Z
ipAddress: 10.0.0.1
modifyTimestamp: 20051025060729Z
 from (not relative)cn=org.apache.dns.2,cn=dns,ou=services,ou=configuration,ou=system: org.apache.ldap.common.message.LockableAttributesImpl:objectClass: apacheServiceConfiguration
objectClass: extensibleObject
creatorsName: uid=admin,ou=system
cn: org.apache.dns.2
modifiersName: uid=admin,ou=system
apacheServicePid: org.apache.dns.2
baseDn: dc=apache,dc=org
apacheServiceFactoryPid: org.apache.dns.factory
ipPort: 10053
createTimestamp: 20051025045832Z
ipAddress: 10.0.0.1
modifyTimestamp: 20051025060729Z


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alex Karasulu made changes - 26/Oct/05 01:04 AM
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]
Alex Karasulu added a comment - 26/Oct/05 01:05 AM
Let's take care of this right away.

Alex Karasulu made changes - 26/Oct/05 01:05 AM
Fix Version/s 0.9.3 [ 12310193 ]
Alex Karasulu added a comment - 26/Oct/05 02:37 AM
Made sure to have before and after binding be different. Also packaged ModificationItem[] into the info object of the event when the event is of the OBJECT_CHANGED type. Committed changes in revision 328432 here:

http://svn.apache.org/viewcvs.cgi?view=rev&rev=328432

Built and deployed changes to remote repo for 0.9.3 snapshots.

Alex Karasulu made changes - 26/Oct/05 02:37 AM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Alex Karasulu made changes - 10/Feb/06 12:34 PM
Component/s jndi-provider [ 11088 ]
Key DIREVE-285 DIRSERVER-349
Project Directory Server [ 10516 ] Directory ApacheDS [ 12310260 ]
Fix Version/s 0.9.3 [ 12310193 ]
Emmanuel Lecharny added a comment - 15/Feb/09 01:31 PM
closed

Emmanuel Lecharny made changes - 15/Feb/09 01:31 PM
Status Resolved [ 5 ] Closed [ 6 ]