directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: Is 'null' ever valid syntax?
Date Fri, 04 Jun 2010 14:57:50 GMT
On 6/4/10 4:37 PM, Felix Knecht wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 06/04/10 16:32, Stefan Seelmann wrote:
>    
>> Felix Knecht wrote:
>>      
>>> I suppose this is either always true or false, right?
>>>
>>> if ( attributeType.getSyntax().getSyntaxChecker().isValidSyntax( null ) )
>>>
>>> http://people.apache.org/~felixk/shared-docs/xref/org/apache/directory/shared/ldap/entry/DefaultEntryAttribute.html#916
>>>        
>> No. For example the directory string syntax doesn't allow an empty
>> string, so in that case the syntax checker returns false. But the IA5
>> string syntax allows an empty string, in that case the syntax checker
>> returns false.
>>      
> I have no idea about the checkers, but an empty string isn't a null string.
>    

I think ( to be double checked) that we allow a Value to old either "" 
or null.

-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.nextury.com



Mime
View raw message