You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2007/01/05 19:42:27 UTC
[jira] Created: (DIRSERVER-812) Infinite loop while parsing a bad
filter
Infinite loop while parsing a bad filter
----------------------------------------
Key: DIRSERVER-812
URL: https://issues.apache.org/jira/browse/DIRSERVER-812
Project: Directory ApacheDS
Issue Type: Bug
Reporter: Emmanuel Lecharny
Priority: Blocker
If we try to parse a bad filter ( for instance, without parenthesis ), the parser is entering an ininite loop.
Here is a test case to show this behavior :
public void testBadEqualsFilter() throws IOException, ParseException
{
try
{
SimpleNode node = ( SimpleNode ) parser.parse( "ou = people" );
// The parsing should fail
fail();
}
catch( ParseException pe )
{
assertTrue( true );
}
}
Simply copy/paste it into org.apache.directory.shared.ldap.filter.FilterParserImplTest in shared-ldap
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (DIRSERVER-812) Infinite loop while parsing a bad
filter
Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Karasulu closed DIRSERVER-812.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.5.0
1.0.1
Fixed in 1.0.x branch here:
http://svn.apache.org/viewvc?view=rev&rev=493145
Fixed also in 1.5.x branch here:
http://svn.apache.org/viewvc?view=rev&rev=493147
> Infinite loop while parsing a bad filter
> ----------------------------------------
>
> Key: DIRSERVER-812
> URL: https://issues.apache.org/jira/browse/DIRSERVER-812
> Project: Directory ApacheDS
> Issue Type: Bug
> Reporter: Emmanuel Lecharny
> Assigned To: Alex Karasulu
> Priority: Blocker
> Fix For: 1.0.1, 1.5.0
>
>
> If we try to parse a bad filter ( for instance, without parenthesis ), the parser is entering an ininite loop.
> Here is a test case to show this behavior :
> public void testBadEqualsFilter() throws IOException, ParseException
> {
> try
> {
> SimpleNode node = ( SimpleNode ) parser.parse( "ou = people" );
>
> // The parsing should fail
> fail();
> }
> catch( ParseException pe )
> {
> assertTrue( true );
> }
> }
> Simply copy/paste it into org.apache.directory.shared.ldap.filter.FilterParserImplTest in shared-ldap
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (DIRSERVER-812) Infinite loop while parsing a bad
filter
Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSERVER-812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Karasulu reassigned DIRSERVER-812:
---------------------------------------
Assignee: Alex Karasulu
> Infinite loop while parsing a bad filter
> ----------------------------------------
>
> Key: DIRSERVER-812
> URL: https://issues.apache.org/jira/browse/DIRSERVER-812
> Project: Directory ApacheDS
> Issue Type: Bug
> Reporter: Emmanuel Lecharny
> Assigned To: Alex Karasulu
> Priority: Blocker
> Fix For: 1.0.1, 1.5.0
>
>
> If we try to parse a bad filter ( for instance, without parenthesis ), the parser is entering an ininite loop.
> Here is a test case to show this behavior :
> public void testBadEqualsFilter() throws IOException, ParseException
> {
> try
> {
> SimpleNode node = ( SimpleNode ) parser.parse( "ou = people" );
>
> // The parsing should fail
> fail();
> }
> catch( ParseException pe )
> {
> assertTrue( true );
> }
> }
> Simply copy/paste it into org.apache.directory.shared.ldap.filter.FilterParserImplTest in shared-ldap
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira