directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RAMESH BABU NAKKA (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSERVER-1448) Unable to update User attributes
Date Tue, 30 Mar 2010 18:52:27 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-1448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851506#action_12851506
] 

RAMESH BABU NAKKA commented on DIRSERVER-1448:
----------------------------------------------

Hi Alex.

i am attaching a sample project which does the below. Please extract the zip.

There is a single testng test class, with one test. method and a BeforeClass annotated method.

@BeforeClass annotated method does the following 

1. Runs ApacheDS 1.5.5 in embedded mode and in the process creates a partition.
2. Imports LDIFs for our custom user attributes, and custom portal branches.

@Test method does the following.
  
  1. Creates a user testUser123 with among other attributes
    sn  = Test_LName
    postalCode = 12204



 2.  Searches or finds the same user testUser123 from the LDAP and tries to UPDATE the same
user with 

    sn  = TEST_UPDATE
   postalCode = 12110

The Update fails with a NullPointerException
java.lang.NullPointerException
        at org.apache.directory.server.core.collective.CollectiveAttributesSchemaChecker.checkModify(CollectiveAttributesSchemaChecker.java:89)
        at org.apache.directory.server.core.collective.CollectiveAttributeInterceptor.modify(CollectiveAttributeInterceptor.java:358)
        at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.modify(InterceptorChain.java:1216)
        at org.apache.directory.server.core.subtree.SubentryInterceptor.modify(SubentryInterceptor.java:1104)


You can refer to the logs generated within the project


Please user the zip file sample.zip attached













> Unable to update User attributes 
> ---------------------------------
>
>                 Key: DIRSERVER-1448
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1448
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.5
>         Environment: Windows, Java Embedded Apache DS
>            Reporter: RAMESH BABU NAKKA
>            Priority: Blocker
>             Fix For: 2.0.0-RC1
>
>
> I am using the embedded APACHE DS API 1.5.5. 
> We are starting and stopping the DS through testng tests
> We are able to create partition, add users, find users,      but not able to update users
with any attribute (Single valued and Multi valued.)
> Initially we thought we are not able to updated for multi values attributes, but we are
UNABLE to update any user attribute.
> We get the below exception.
> java.lang.NullPointerException
> 	at org.apache.directory.server.core.collective.CollectiveAttributesSchemaChecker.checkModify(CollectiveAttributesSchemaChecker.java:89)
> 	at org.apache.directory.server.core.collective.CollectiveAttributeInterceptor.modify(CollectiveAttributeInterceptor.java:358)
> 	at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.modify(InterceptorChain.java:1216)
> 	at org.apache.directory.server.core.subtree.SubentryInterceptor.modify(SubentryInterceptor.java:1104)
> 	at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.modify(InterceptorChain.java:1216)
> 	at org.apache.directory.server.core.schema.SchemaInterceptor.modify(SchemaInterceptor.java:1551)
> 	at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.modify(InterceptorChain.java:1216)
> 	at org.apache.directory.server.core.operational.OperationalAttributeInterceptor.modify(OperationalAttributeInterceptor.java:209)
> 	at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.modify(InterceptorChain.java:1216)
> 	at org.apache.directory.server.core.changelog.ChangeLogInterceptor.modify(ChangeLogInterceptor.java:225)
> 	at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.modify(InterceptorChain.java:1216)
> 	at org.apache.directory.server.core.exception.ExceptionInterceptor.modify(ExceptionInterceptor.java:367)
> 	at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.modify(InterceptorChain.java:1216)
> 	at org.apache.directory.server.core.authz.DefaultAuthorizationInterceptor.modify(DefaultAuthorizationInterceptor.java:273)
> 	at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.modify(InterceptorChain.java:1216)
> 	at org.apache.directory.server.core.authz.AciAuthorizationInterceptor.modify(AciAuthorizationInterceptor.java:565)
> 	at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.modify(InterceptorChain.java:1216)
> 	at org.apache.directory.server.core.referral.ReferralInterceptor.modify(ReferralInterceptor.java:403)
> 	at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.modify(InterceptorChain.java:1216)
> 	at org.apache.directory.server.core.authn.AuthenticationInterceptor.modify(AuthenticationInterceptor.java:336)
> 	at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.modify(InterceptorChain.java:1216)
> 	at org.apache.directory.server.core.normalization.NormalizationInterceptor.modify(NormalizationInterceptor.java:146)
> 	at org.apache.directory.server.core.interceptor.InterceptorChain.modify(InterceptorChain.java:821)
> 	at org.apache.directory.server.core.DefaultOperationManager.modify(DefaultOperationManager.java:691)
> 	at org.apache.directory.server.core.DefaultCoreSession.modify(DefaultCoreSession.java:829)
> 	at org.apache.directory.server.core.DefaultCoreSession.modify(DefaultCoreSession.java:815)
> 	at org.apache.directory.server.ldap.handlers.ModifyHandler.handle(ModifyHandler.java:56)
> 	at org.apache.directory.server.ldap.handlers.ModifyHandler.handle(ModifyHandler.java:39)
> 	at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:176)
> 	at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56)
> 	at org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:232)
> 	at org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:194)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:721)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:433)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:801)
> 	at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:71)
> 	at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message