Issue Details (XML | Word | Printable)

Key: DIRSERVER-226
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Alex Karasulu
Reporter: Emmanuel Lecharny
Votes: 0
Watchers: 0
Operations

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

Invalid rule in filter grammar

Created: 02/Jul/05 07:13 PM   Updated: 24/Jun/06 08:45 PM
Return to search
Component/s: ldap
Affects Version/s: pre-1.0
Fix Version/s: pre-1.0

Time Tracking:
Not Specified

Resolution Date: 12/Aug/05 07:02 AM


 Description  « Hide
The Filter grammar contains an invalid production rule, in respect with RFC 2254 :

item returns [LeafNode node]
{
    node = null;
}
    : node=simple | node=extensible |
    ( COLONEQUALS
...

COLONEQUALS is not valid. The RHS should be :

    : node=simple | node=extensible


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alex Karasulu added a comment - 12/Aug/05 07:02 AM
This is actually correct. Note that I had to break apart the extensible grammar across productions. The COLONEQUALS value is actually being used to create an extensible object as can be seen below:

item returns [LeafNode node]
{
    node = null;
}
    : node=simple | node=extensible |
    ( COLONEQUALS
        {
            selector.select( valueLexer );
            String value = ( ( String ) valueParser.value( null ) ).trim();
            node = new ExtensibleNode( null, value, null, false );
        }
    )
    ;

Emmanuel Lecharny added a comment - 24/Jun/06 08:45 PM
invalid