Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 31025 invoked from network); 19 Oct 2005 01:48:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Oct 2005 01:48:16 -0000 Received: (qmail 84857 invoked by uid 500); 19 Oct 2005 01:48:10 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 84653 invoked by uid 500); 19 Oct 2005 01:48:09 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 84641 invoked by uid 99); 19 Oct 2005 01:48:09 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2005 18:48:07 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id A4B8ADE for ; Wed, 19 Oct 2005 03:47:46 +0200 (CEST) Message-ID: <1481779239.1129686466651.JavaMail.jira@ajax.apache.org> Date: Wed, 19 Oct 2005 03:47:46 +0200 (CEST) From: "Alex Karasulu (JIRA)" To: dev@directory.apache.org Subject: [jira] Assigned: (DIRLDAP-62) [ACIITemParser] Position of terms in optional ASN.1 elements should not matter In-Reply-To: <223050093.1129686344831.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DIRLDAP-62?page=all ] Alex Karasulu reassigned DIRLDAP-62: ------------------------------------ Assign To: Ersin Er Perhaps Ersin you can provide an assessment of how much an effort it would be to not have position factor into the terms of the ACI. Or perhaps it might not be a good idea to do this so let me know WYT. Thanks. > [ACIITemParser] Position of terms in optional ASN.1 elements should not matter > ------------------------------------------------------------------------------ > > Key: DIRLDAP-62 > URL: http://issues.apache.org/jira/browse/DIRLDAP-62 > Project: Directory LDAP > Type: Improvement > Components: Common > Reporter: Alex Karasulu > Assignee: Ersin Er > > The position of optional elements is relavent within the ACIItemParser. For example for ProtectedItems the position of optional elements are relevant so for example the following ACI whould bomb out: > "{ " + > "identificationTag \"searchAci\", " + > "precedence 14, " + > "authenticationLevel none, " + > "itemOrUserFirst userFirst: { " + > "userClasses { allUsers }, " + > "userPermissions { { " + > "protectedItems {allUserAttributeTypesAndValues, entry }, " + > "grantsAndDenials { grantRead, grantReturnDN, grantBrowse } } } } }" > This however would succeed: > "{ " + > "identificationTag \"searchAci\", " + > "precedence 14, " + > "authenticationLevel none, " + > "itemOrUserFirst userFirst: { " + > "userClasses { allUsers }, " + > "userPermissions { { " + > "protectedItems {entry, allUserAttributeTypesAndValues }, " + > "grantsAndDenials { grantRead, grantReturnDN, grantBrowse } } } } }" > The same holds for other constructs where a sequence of optional elements are expected. However this is a big problem. The user specifying the ACI must know what comes first, what comes second and so on in the ASN.1 description. This is just too strict of a constraint to place on users and will degrade the ease of use. > Really because we have names for each field order does not need to matter anymore. > I marked this as an improvement as opposed to a bug because the ASN.1 to ABNF translation was correct. It just is not the best thing to do. > -- 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