You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Alex Karasulu (JIRA)" <di...@incubator.apache.org> on 2004/12/02 19:10:20 UTC

[jira] Created: (DIREVE-96) Anon binds cause NPE in handlers (null ictx)

Anon binds cause NPE in handlers (null ictx)
--------------------------------------------

         Key: DIREVE-96
         URL: http://nagoya.apache.org/jira/browse/DIREVE-96
     Project: Directory Eve
        Type: Bug
  Components: protocol  
    Reporter: Alex Karasulu
 Assigned to: Alex Karasulu 


Anonymous binds are causing a failure in the protocol handler where the initial context is null.  We need to rectify this problem.  Also what ever policy wrt anon binds is in the backend should be applied to the frontend protocol provider.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIREVE-96) Anon binds cause NPE in handlers (null ictx)

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/DIREVE-96?page=comments#action_56138 ]
     
Alex Karasulu commented on DIREVE-96:
-------------------------------------

Here's the stack trace for the record:

java.lang.NullPointerException
	at org.apache.eve.protocol.SearchHandler.handle(SearchHandler.java:89)
	at org.apache.seda.protocol.DefaultRequestProcessor.reply(DefaultRequestProcessor.java:133)
	at org.apache.seda.protocol.DefaultRequestProcessor.access$200(DefaultRequestProcessor.java:44)
	at org.apache.seda.protocol.DefaultRequestProcessor$ProcessorStageHandler.handleEvent(DefaultRequestProcessor.java:207)
	at org.apache.seda.stage.DefaultStage$ExecutableHandler.run(DefaultStage.java:311)
	at org.apache.seda.thread.AbstractThreadPool$AbstractWorker.run(AbstractThreadPool.java:202)


> Anon binds cause NPE in handlers (null ictx)
> --------------------------------------------
>
>          Key: DIREVE-96
>          URL: http://nagoya.apache.org/jira/browse/DIREVE-96
>      Project: Directory Eve
>         Type: Bug
>   Components: protocol
>     Reporter: Alex Karasulu
>     Assignee: Alex Karasulu
>      Fix For: 0.8.0

>
> Anonymous binds are causing a failure in the protocol handler where the initial context is null.  We need to rectify this problem.  Also what ever policy wrt anon binds is in the backend should be applied to the frontend protocol provider.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DIREVE-96) Anon binds cause NPE in handlers (null ictx)

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/DIREVE-96?page=history ]

Alex Karasulu updated DIREVE-96:
--------------------------------

    Fix Version: 0.8.0

> Anon binds cause NPE in handlers (null ictx)
> --------------------------------------------
>
>          Key: DIREVE-96
>          URL: http://nagoya.apache.org/jira/browse/DIREVE-96
>      Project: Directory Eve
>         Type: Bug
>   Components: protocol
>     Reporter: Alex Karasulu
>     Assignee: Alex Karasulu
>      Fix For: 0.8.0

>
> Anonymous binds are causing a failure in the protocol handler where the initial context is null.  We need to rectify this problem.  Also what ever policy wrt anon binds is in the backend should be applied to the frontend protocol provider.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (DIREVE-96) Anon binds cause NPE in handlers (null ictx)

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/DIREVE-96?page=comments#action_56139 ]
     
Alex Karasulu commented on DIREVE-96:
-------------------------------------

This is obviously due to not binding before a new client issues a search request.  Basically requests other than BindRequests can be issued before a BindRequest.  This is essentially an anonymous request which means its an anonymous bind.

Fixing this is easy.  We simply need to check for null initial contexts in all protocol request handlers except the BindRequest handler.  If the initial context is null that means this is an anonymous request.  We then need to get an initial context as an anonymous user and store it now as the initial context to reuse for the client.

 

> Anon binds cause NPE in handlers (null ictx)
> --------------------------------------------
>
>          Key: DIREVE-96
>          URL: http://nagoya.apache.org/jira/browse/DIREVE-96
>      Project: Directory Eve
>         Type: Bug
>   Components: protocol
>     Reporter: Alex Karasulu
>     Assignee: Alex Karasulu
>      Fix For: 0.8.0

>
> Anonymous binds are causing a failure in the protocol handler where the initial context is null.  We need to rectify this problem.  Also what ever policy wrt anon binds is in the backend should be applied to the frontend protocol provider.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (DIREVE-96) Anon binds cause NPE in handlers (null ictx)

Posted by "Alex Karasulu (JIRA)" <di...@incubator.apache.org>.
     [ http://nagoya.apache.org/jira/browse/DIREVE-96?page=history ]
     
Alex Karasulu closed DIREVE-96:
-------------------------------

    Resolution: Fixed

Commited and confirmed correct operation of changes fixing this issue in 109649 here:

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


> Anon binds cause NPE in handlers (null ictx)
> --------------------------------------------
>
>          Key: DIREVE-96
>          URL: http://nagoya.apache.org/jira/browse/DIREVE-96
>      Project: Directory Eve
>         Type: Bug
>   Components: protocol
>     Reporter: Alex Karasulu
>     Assignee: Alex Karasulu
>      Fix For: 0.8.0

>
> Anonymous binds are causing a failure in the protocol handler where the initial context is null.  We need to rectify this problem.  Also what ever policy wrt anon binds is in the backend should be applied to the frontend protocol provider.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira