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 2006/12/16 14:19:21 UTC

[jira] Created: (DIRSERVER-799) Check attributes syntax

Check attributes syntax
-----------------------

                 Key: DIRSERVER-799
                 URL: http://issues.apache.org/jira/browse/DIRSERVER-799
             Project: Directory ApacheDS
          Issue Type: Task
            Reporter: Emmanuel Lecharny


Now that we have SyntaxCheckers for many attributes, we must use them in the Schema Interceptor to check that added, modified, searched and deleted values are checked against those Syntax Checkers.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-799) Check attributes syntax

Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490691 ] 

Stefan Zoerner commented on DIRSERVER-799:
------------------------------------------

I am not sure, what the issue is exactly about, but I supposed it meant that it forces syntax checks on attribute values, if manipulated via LDAP operations (add, modify, ...).

Unfortunately there are no comments about the changes made to fix it. At least in the official 1.5.0 I still have problems here. For instance I was able to create the following entry:

dn: cn=Kate Bush,dc=example,dc=com
sn: Bush
objectClass: top
objectClass: person
objectClass: pilotPerson
cn: Kate Bush
mailPreferenceOption: noNumber

The attribute type mailPreferenceOption has syntax 1.3.6.1.4.1.1466.115.121.1.27 (integer) and should therefore only carry numbers. Is this a special error I should raise a JIRA issue about?

> Check attributes syntax
> -----------------------
>
>                 Key: DIRSERVER-799
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-799
>             Project: Directory ApacheDS
>          Issue Type: Task
>            Reporter: Emmanuel Lecharny
>             Fix For: 1.5.1
>
>
> Now that we have SyntaxCheckers for many attributes, we must use them in the Schema Interceptor to check that added, modified, searched and deleted values are checked against those Syntax Checkers.

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


[jira] Closed: (DIRSERVER-799) Check attributes syntax

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

Emmanuel Lecharny closed DIRSERVER-799.
---------------------------------------

    Resolution: Fixed

I think the SyntaxChecking has been successfully implemented in the server

> Check attributes syntax
> -----------------------
>
>                 Key: DIRSERVER-799
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-799
>             Project: Directory ApacheDS
>          Issue Type: Task
>            Reporter: Emmanuel Lecharny
>             Fix For: 1.5.1
>
>
> Now that we have SyntaxCheckers for many attributes, we must use them in the Schema Interceptor to check that added, modified, searched and deleted values are checked against those Syntax Checkers.

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


[jira] Commented: (DIRSERVER-799) Check attributes syntax

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475467 ] 

Alex Karasulu commented on DIRSERVER-799:
-----------------------------------------

If you have not taken care of this already I'd like to see if we can devise some configuration parameters to control the degree of schema checking that is enabled etc.  Perhaps we can even make it so schema checking parameters are kept under ou=system,ou=interceptors,cn=schemaService where attributes for that service are stored?

> Check attributes syntax
> -----------------------
>
>                 Key: DIRSERVER-799
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-799
>             Project: Directory ApacheDS
>          Issue Type: Task
>            Reporter: Emmanuel Lecharny
>             Fix For: 1.5.1
>
>
> Now that we have SyntaxCheckers for many attributes, we must use them in the Schema Interceptor to check that added, modified, searched and deleted values are checked against those Syntax Checkers.

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


[jira] Commented: (DIRSERVER-799) Check attributes syntax

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

Emmanuel Lecharny commented on DIRSERVER-799:
---------------------------------------------

Yes, Stefan, in the official 1.5.0 the SyntaxXheckers are not implemented. I suggest you try with the trunk (1.5.1-SNAPSHOT)

> Check attributes syntax
> -----------------------
>
>                 Key: DIRSERVER-799
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-799
>             Project: Directory ApacheDS
>          Issue Type: Task
>            Reporter: Emmanuel Lecharny
>             Fix For: 1.5.1
>
>
> Now that we have SyntaxCheckers for many attributes, we must use them in the Schema Interceptor to check that added, modified, searched and deleted values are checked against those Syntax Checkers.

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


[jira] Updated: (DIRSERVER-799) Check attributes syntax

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

Alex Karasulu updated DIRSERVER-799:
------------------------------------

    Fix Version/s:     (was: 1.5.0)
                   1.5.1

I think we better push this off until 1.5.1 as well.

> Check attributes syntax
> -----------------------
>
>                 Key: DIRSERVER-799
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-799
>             Project: Directory ApacheDS
>          Issue Type: Task
>            Reporter: Emmanuel Lecharny
>             Fix For: 1.5.1
>
>
> Now that we have SyntaxCheckers for many attributes, we must use them in the Schema Interceptor to check that added, modified, searched and deleted values are checked against those Syntax Checkers.

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


[jira] Updated: (DIRSERVER-799) Check attributes syntax

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DIRSERVER-799?page=all ]

Emmanuel Lecharny updated DIRSERVER-799:
----------------------------------------

    Fix Version/s: 1.5.0

To be fixed in 1.5.0. It wo'nt be possible easily in 1.0.1, isn't it ?

> Check attributes syntax
> -----------------------
>
>                 Key: DIRSERVER-799
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-799
>             Project: Directory ApacheDS
>          Issue Type: Task
>            Reporter: Emmanuel Lecharny
>             Fix For: 1.5.0
>
>
> Now that we have SyntaxCheckers for many attributes, we must use them in the Schema Interceptor to check that added, modified, searched and deleted values are checked against those Syntax Checkers.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (DIRSERVER-799) Check attributes syntax

Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490718 ] 

Stefan Zoerner commented on DIRSERVER-799:
------------------------------------------

You are right, Emmanuel. I have just built the trunk of the 1.5.1 and got this with my simple test above:

$ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f "kate.ldif"
adding new entry cn=Kate Bush,dc=example,dc=com
ldap_add: Invalid syntax
ldap_add: additional info: failed to add entry cn=Kate Bush,dc=example,dc=com: Attribute value 'noNumber' for attribute 'mailpreferenceoption' is syntaxically incorrect
$

So this problem does not occur in 1.5.1 SNAPSHOT. I am impressed by the informative error message. Thanks for clarification.

> Check attributes syntax
> -----------------------
>
>                 Key: DIRSERVER-799
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-799
>             Project: Directory ApacheDS
>          Issue Type: Task
>            Reporter: Emmanuel Lecharny
>             Fix For: 1.5.1
>
>
> Now that we have SyntaxCheckers for many attributes, we must use them in the Schema Interceptor to check that added, modified, searched and deleted values are checked against those Syntax Checkers.

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