You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Víctor Sánchez (JIRA)" <ji...@apache.org> on 2010/07/19 18:42:51 UTC

[jira] Created: (DIRAPI-20) Timeout error when filter with charset iso-8859-1, i.e. (description=Clínica)

Timeout error when filter with charset iso-8859-1, i.e. (description=Clínica)
-----------------------------------------------------------------------------

                 Key: DIRAPI-20
                 URL: https://issues.apache.org/jira/browse/DIRAPI-20
             Project: Directory client API
          Issue Type: Bug
            Reporter: Víctor Sánchez
            Priority: Critical


On version 0.9.18 when i call search method with filter (description=Hospital Clínico) within charset LATIN1, it throws an Timeout Exception and org.apache.directory.shared.asn1.codec.EncoderException: ERR_00004 The PDU buffer size is too small !! 

It's ocurring with methods:

- search(base, filter, scope)
- search(searchRequest)



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


[jira] Commented: (DIRAPI-20) Timeout error when filter with charset iso-8859-1, i.e. (description=Clínica)

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRAPI-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889950#action_12889950 ] 

Emmanuel Lecharny commented on DIRAPI-20:
-----------------------------------------

The Filter must be encoded using UTF-8, not LATIN-1 or any other encoding. 

You have to translate your filter to UTF-8 before submitting it .

Anyway, there is a serious problem though : we don't handle the exception the encoding produces. Here, the computed PDU is too small to contain all the data, and it generates an Exception which is not caught in the API. We will fix that.

> Timeout error when filter with charset iso-8859-1, i.e. (description=Clínica)
> -----------------------------------------------------------------------------
>
>                 Key: DIRAPI-20
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-20
>             Project: Directory client API
>          Issue Type: Bug
>            Reporter: Víctor Sánchez
>            Priority: Critical
>
> On version 0.9.18 when i call search method with filter (description=Hospital Clínico) within charset LATIN1, it throws an Timeout Exception and org.apache.directory.shared.asn1.codec.EncoderException: ERR_00004 The PDU buffer size is too small !! 
> It's ocurring with methods:
> - search(base, filter, scope)
> - search(searchRequest)

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


[jira] Updated: (DIRAPI-20) Timeout error when filter with charset iso-8859-1, i.e. (description=Clínica)

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRAPI-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRAPI-20:
------------------------------------

        Fix Version/s: 0.2.0
    Affects Version/s: 0.1.0

Will be delivered with API 0.2.0

> Timeout error when filter with charset iso-8859-1, i.e. (description=Clínica)
> -----------------------------------------------------------------------------
>
>                 Key: DIRAPI-20
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-20
>             Project: Directory client API
>          Issue Type: Bug
>    Affects Versions: 0.1.0
>            Reporter: Víctor Sánchez
>            Priority: Critical
>             Fix For: 0.2.0
>
>
> On version 0.9.18 when i call search method with filter (description=Hospital Clínico) within charset LATIN1, it throws an Timeout Exception and org.apache.directory.shared.asn1.codec.EncoderException: ERR_00004 The PDU buffer size is too small !! 
> It's ocurring with methods:
> - search(base, filter, scope)
> - search(searchRequest)

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


[jira] Closed: (DIRAPI-20) Timeout error when filter with charset iso-8859-1, i.e. (description=Clínica)

Posted by "Kiran Ayyagari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRAPI-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kiran Ayyagari closed DIRAPI-20.
--------------------------------

    Assignee: Emmanuel Lecharny

> Timeout error when filter with charset iso-8859-1, i.e. (description=Clínica)
> -----------------------------------------------------------------------------
>
>                 Key: DIRAPI-20
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-20
>             Project: Directory client API
>          Issue Type: Bug
>    Affects Versions: 0.1.0
>            Reporter: Víctor Sánchez
>            Assignee: Emmanuel Lecharny
>            Priority: Critical
>             Fix For: 0.2.0
>
>
> On version 0.9.18 when i call search method with filter (description=Hospital Clínico) within charset LATIN1, it throws an Timeout Exception and org.apache.directory.shared.asn1.codec.EncoderException: ERR_00004 The PDU buffer size is too small !! 
> It's ocurring with methods:
> - search(base, filter, scope)
> - search(searchRequest)

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


[jira] Resolved: (DIRAPI-20) Timeout error when filter with charset iso-8859-1, i.e. (description=Clínica)

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRAPI-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny resolved DIRAPI-20.
-------------------------------------

    Resolution: Fixed

The search now throws an LdapException immediately if something went wrong during the encoding, instead of waiting up to the timeout.

Note that the searchRequest's filter is still considered as invalid.

> Timeout error when filter with charset iso-8859-1, i.e. (description=Clínica)
> -----------------------------------------------------------------------------
>
>                 Key: DIRAPI-20
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-20
>             Project: Directory client API
>          Issue Type: Bug
>            Reporter: Víctor Sánchez
>            Priority: Critical
>
> On version 0.9.18 when i call search method with filter (description=Hospital Clínico) within charset LATIN1, it throws an Timeout Exception and org.apache.directory.shared.asn1.codec.EncoderException: ERR_00004 The PDU buffer size is too small !! 
> It's ocurring with methods:
> - search(base, filter, scope)
> - search(searchRequest)

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