[jira] Commented: (DIRSERVER-865) errors when importing ACI from LDIF file containing tabs

2007-08-17 Thread Alex Karasulu (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRSERVER-865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520761
 ] 

Alex Karasulu commented on DIRSERVER-865:
-

This still a valid issue - can anyone reproduce the NPE? If not we should close 
before 1.5.2.

> errors when importing ACI from LDIF file containing tabs
> 
>
> Key: DIRSERVER-865
> URL: https://issues.apache.org/jira/browse/DIRSERVER-865
> Project: Directory ApacheDS
>  Issue Type: Bug
>Affects Versions: 1.0
> Environment: Windows XP
> Java 5.0 (Sun)
> JXplorer
>Reporter: Marek
> Fix For: 1.5.1, 1.0.3
>
> Attachments: allow John to read his name-space.error, allow John to 
> read his name-space.ldif, allow John to read his name-tab.error, allow John 
> to read his name-tab.ldif
>
>
> When I import "allow John to read his name-tab.ldif" file which contains tabs 
> I receive the following error in JXplorer and nothing is actually imported:
> javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 
> 17 - failed to add entry 
> cn=allowJohnToReadHisName_ACI12,o=sevenSeas,dc=example,dc=com: 
> itemoruserfirst userfirst not found in attribute registry!:
> org.apache.directory.shared.ldap.exception.LdapInvalidAttributeIdentifierException:
>itemoruserfirst userfirst not found in attribute registry!
>   at 
> org.apache.directory.server.core.schema.SchemaService.check(SchemaService.java:1598)
> When I change tabs to spaces i receive the following error, but everything is 
> imported correctly:
> javax.naming.NamingException: [LDAP: error code 54 - failed to add entry 
> cn=allowJohnToReadHisName_ACI13,o=sevenSeas,dc=example,dc=com: Unexpected 
> exception.:
> org.apache.directory.server.core.interceptor.InterceptorException: Unexpected 
> exception. [Root exception is java.lang.NullPointerException]
>   at 
> org.apache.directory.server.core.interceptor.InterceptorChain.throwInterceptorException(InterceptorChain.java:1510)

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



[jira] Commented: (DIRSERVER-865) errors when importing ACI from LDIF file containing tabs

2007-03-06 Thread Stefan Seelmann (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRSERVER-865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478593
 ] 

Stefan Seelmann commented on DIRSERVER-865:
---

I was able to import this LDIF without an error, I tested it successfully with 
LDAP Studio and with JXplorer.

As far as i know you have to specify some attribute types for selfValue. For 
example "protectedItems { selfValue { mail } }, ". Here is the grammar of ACIs: 
http://docs.safehaus.org/display/APACHEDS/ABNF+syntax+for+LDAP+ACIItem

BTW: We a working on an editor for ACIs, both a GUI and a source editor with 
syntax highlighting. I think it will be available with the next LDAP Studio 
release.


> errors when importing ACI from LDIF file containing tabs
> 
>
> Key: DIRSERVER-865
> URL: https://issues.apache.org/jira/browse/DIRSERVER-865
> Project: Directory ApacheDS
>  Issue Type: Bug
> Environment: Windows XP
> Java 5.0 (Sun)
> JXplorer
>Reporter: Marek
> Attachments: allow John to read his name-space.error, allow John to 
> read his name-space.ldif, allow John to read his name-tab.error, allow John 
> to read his name-tab.ldif
>
>
> When I import "allow John to read his name-tab.ldif" file which contains tabs 
> I receive the following error in JXplorer and nothing is actually imported:
> javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 
> 17 - failed to add entry 
> cn=allowJohnToReadHisName_ACI12,o=sevenSeas,dc=example,dc=com: 
> itemoruserfirst userfirst not found in attribute registry!:
> org.apache.directory.shared.ldap.exception.LdapInvalidAttributeIdentifierException:
>itemoruserfirst userfirst not found in attribute registry!
>   at 
> org.apache.directory.server.core.schema.SchemaService.check(SchemaService.java:1598)
> When I change tabs to spaces i receive the following error, but everything is 
> imported correctly:
> javax.naming.NamingException: [LDAP: error code 54 - failed to add entry 
> cn=allowJohnToReadHisName_ACI13,o=sevenSeas,dc=example,dc=com: Unexpected 
> exception.:
> org.apache.directory.server.core.interceptor.InterceptorException: Unexpected 
> exception. [Root exception is java.lang.NullPointerException]
>   at 
> org.apache.directory.server.core.interceptor.InterceptorChain.throwInterceptorException(InterceptorChain.java:1510)

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



[jira] Commented: (DIRSERVER-865) errors when importing ACI from LDIF file containing tabs

2007-03-06 Thread Marek (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRSERVER-865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478306
 ] 

Marek commented on DIRSERVER-865:
-

Before I exected "the ldif file with spaces", I executed other file contining 
something like this

dn: o=sevenSeas,dc=example,dc=com
changetype: modify
add: administrativeRole
administrativeRole: accessControlSpecificArea


> errors when importing ACI from LDIF file containing tabs
> 
>
> Key: DIRSERVER-865
> URL: https://issues.apache.org/jira/browse/DIRSERVER-865
> Project: Directory ApacheDS
>  Issue Type: Bug
> Environment: Windows XP
> Java 5.0 (Sun)
> JXplorer
>Reporter: Marek
> Attachments: allow John to read his name-space.error, allow John to 
> read his name-space.ldif, allow John to read his name-tab.error, allow John 
> to read his name-tab.ldif
>
>
> When I import "allow John to read his name-tab.ldif" file which contains tabs 
> I receive the following error in JXplorer and nothing is actually imported:
> javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 
> 17 - failed to add entry 
> cn=allowJohnToReadHisName_ACI12,o=sevenSeas,dc=example,dc=com: 
> itemoruserfirst userfirst not found in attribute registry!:
> org.apache.directory.shared.ldap.exception.LdapInvalidAttributeIdentifierException:
>itemoruserfirst userfirst not found in attribute registry!
>   at 
> org.apache.directory.server.core.schema.SchemaService.check(SchemaService.java:1598)
> When I change tabs to spaces i receive the following error, but everything is 
> imported correctly:
> javax.naming.NamingException: [LDAP: error code 54 - failed to add entry 
> cn=allowJohnToReadHisName_ACI13,o=sevenSeas,dc=example,dc=com: Unexpected 
> exception.:
> org.apache.directory.server.core.interceptor.InterceptorException: Unexpected 
> exception. [Root exception is java.lang.NullPointerException]
>   at 
> org.apache.directory.server.core.interceptor.InterceptorChain.throwInterceptorException(InterceptorChain.java:1510)

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



[jira] Commented: (DIRSERVER-865) errors when importing ACI from LDIF file containing tabs

2007-03-06 Thread Marek (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRSERVER-865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478310
 ] 

Marek commented on DIRSERVER-865:
-

I also get NPE while importing such an ACI, which I copy pasted (and changed a 
little bit) from "ApacheDS Access Control Administration; The X.500 Way", 
Presented by Ersin Er

dn: 
cn=sevenSeasAuthorizationRequirementsACISubentry,o=sevenSeas,dc=example,dc=com
objectclass: top
objectclass: subentry
objectclass: accessControlSubentry
cn: sevenSeasAuthorizationRequirementsACISubentry
subtreeSpecification: {}
prescriptiveACI: {
 identificationTag 
"allowAllUsersToSubscribeToUnsubscribeFromAMailingList_ACI",
 precedence 14, 
 authenticationLevel simple,
 itemOrUserFirst userFirst: 
 {
 userClasses 
 {
allUsers
 },
 userPermissions 
 {
 { 
   protectedItems { entry },
   grantsAndDenials { grantModify }
 },
 { 
   protectedItems { selfValue },
   grantsAndDenials { grantRemove, grantAdd }
 }
 }
  }
  }

I discovered, that if I change selfValue->entry, everything works fine. 
Otherwise I get NPE while importing this by JXplorer.


> errors when importing ACI from LDIF file containing tabs
> 
>
> Key: DIRSERVER-865
> URL: https://issues.apache.org/jira/browse/DIRSERVER-865
> Project: Directory ApacheDS
>  Issue Type: Bug
> Environment: Windows XP
> Java 5.0 (Sun)
> JXplorer
>Reporter: Marek
> Attachments: allow John to read his name-space.error, allow John to 
> read his name-space.ldif, allow John to read his name-tab.error, allow John 
> to read his name-tab.ldif
>
>
> When I import "allow John to read his name-tab.ldif" file which contains tabs 
> I receive the following error in JXplorer and nothing is actually imported:
> javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 
> 17 - failed to add entry 
> cn=allowJohnToReadHisName_ACI12,o=sevenSeas,dc=example,dc=com: 
> itemoruserfirst userfirst not found in attribute registry!:
> org.apache.directory.shared.ldap.exception.LdapInvalidAttributeIdentifierException:
>itemoruserfirst userfirst not found in attribute registry!
>   at 
> org.apache.directory.server.core.schema.SchemaService.check(SchemaService.java:1598)
> When I change tabs to spaces i receive the following error, but everything is 
> imported correctly:
> javax.naming.NamingException: [LDAP: error code 54 - failed to add entry 
> cn=allowJohnToReadHisName_ACI13,o=sevenSeas,dc=example,dc=com: Unexpected 
> exception.:
> org.apache.directory.server.core.interceptor.InterceptorException: Unexpected 
> exception. [Root exception is java.lang.NullPointerException]
>   at 
> org.apache.directory.server.core.interceptor.InterceptorChain.throwInterceptorException(InterceptorChain.java:1510)

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



[jira] Commented: (DIRSERVER-865) errors when importing ACI from LDIF file containing tabs

2007-03-05 Thread Emmanuel Lecharny (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRSERVER-865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478070
 ] 

Emmanuel Lecharny commented on DIRSERVER-865:
-

Regarding the ldif with spaces, I would like to have the full ldif file. My 
guess is that your problem is related to the fact you didn't declared an 
administrative point, or that the administrativeRole is incorrectly used.

I know that the documentation is really sparse, and that we will have to 
improve it a lot, and I can't exclude we have a bug somwhere. However, I took 
your ldif file, added a Unit test, declared an administrative point, and it 
seems to work, at first sight...

Can you provie the full Ldif file for complementary tests ?

> errors when importing ACI from LDIF file containing tabs
> 
>
> Key: DIRSERVER-865
> URL: https://issues.apache.org/jira/browse/DIRSERVER-865
> Project: Directory ApacheDS
>  Issue Type: Bug
> Environment: Windows XP
> Java 5.0 (Sun)
> JXplorer
>Reporter: Marek
> Attachments: allow John to read his name-space.error, allow John to 
> read his name-space.ldif, allow John to read his name-tab.error, allow John 
> to read his name-tab.ldif
>
>
> When I import "allow John to read his name-tab.ldif" file which contains tabs 
> I receive the following error in JXplorer and nothing is actually imported:
> javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 
> 17 - failed to add entry 
> cn=allowJohnToReadHisName_ACI12,o=sevenSeas,dc=example,dc=com: 
> itemoruserfirst userfirst not found in attribute registry!:
> org.apache.directory.shared.ldap.exception.LdapInvalidAttributeIdentifierException:
>itemoruserfirst userfirst not found in attribute registry!
>   at 
> org.apache.directory.server.core.schema.SchemaService.check(SchemaService.java:1598)
> When I change tabs to spaces i receive the following error, but everything is 
> imported correctly:
> javax.naming.NamingException: [LDAP: error code 54 - failed to add entry 
> cn=allowJohnToReadHisName_ACI13,o=sevenSeas,dc=example,dc=com: Unexpected 
> exception.:
> org.apache.directory.server.core.interceptor.InterceptorException: Unexpected 
> exception. [Root exception is java.lang.NullPointerException]
>   at 
> org.apache.directory.server.core.interceptor.InterceptorChain.throwInterceptorException(InterceptorChain.java:1510)

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



[jira] Commented: (DIRSERVER-865) errors when importing ACI from LDIF file containing tabs

2007-03-05 Thread Emmanuel Lecharny (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRSERVER-865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478028
 ] 

Emmanuel Lecharny commented on DIRSERVER-865:
-

Thanks Marek for those tests. I'm trying to build a Unit Test to reproduce them.

FYI, the first test (the one with tabs) simply won't work as is, because the 
LDIF file format impose to use at least a space on each line which are part of 
a previously declared attribute :

myattr: discontinued
 lines need a space
 on first position.
^
|
+-- there is a space here, not a tab.

> errors when importing ACI from LDIF file containing tabs
> 
>
> Key: DIRSERVER-865
> URL: https://issues.apache.org/jira/browse/DIRSERVER-865
> Project: Directory ApacheDS
>  Issue Type: Bug
> Environment: Windows XP
> Java 5.0 (Sun)
> JXplorer
>Reporter: Marek
> Attachments: allow John to read his name-space.error, allow John to 
> read his name-space.ldif, allow John to read his name-tab.error, allow John 
> to read his name-tab.ldif
>
>
> When I import "allow John to read his name-tab.ldif" file which contains tabs 
> I receive the following error in JXplorer and nothing is actually imported:
> javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 
> 17 - failed to add entry 
> cn=allowJohnToReadHisName_ACI12,o=sevenSeas,dc=example,dc=com: 
> itemoruserfirst userfirst not found in attribute registry!:
> org.apache.directory.shared.ldap.exception.LdapInvalidAttributeIdentifierException:
>itemoruserfirst userfirst not found in attribute registry!
>   at 
> org.apache.directory.server.core.schema.SchemaService.check(SchemaService.java:1598)
> When I change tabs to spaces i receive the following error, but everything is 
> imported correctly:
> javax.naming.NamingException: [LDAP: error code 54 - failed to add entry 
> cn=allowJohnToReadHisName_ACI13,o=sevenSeas,dc=example,dc=com: Unexpected 
> exception.:
> org.apache.directory.server.core.interceptor.InterceptorException: Unexpected 
> exception. [Root exception is java.lang.NullPointerException]
>   at 
> org.apache.directory.server.core.interceptor.InterceptorChain.throwInterceptorException(InterceptorChain.java:1510)

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



[jira] Commented: (DIRSERVER-865) errors when importing ACI from LDIF file containing tabs

2007-03-05 Thread Marek (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRSERVER-865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478017
 ] 

Marek commented on DIRSERVER-865:
-

I have noticed that NullPointerException happens when the last line looks like 
this: 
"}"

When the last line looks like this:
"  }" 
there is no NPE.


> errors when importing ACI from LDIF file containing tabs
> 
>
> Key: DIRSERVER-865
> URL: https://issues.apache.org/jira/browse/DIRSERVER-865
> Project: Directory ApacheDS
>  Issue Type: Bug
> Environment: Windows XP
> Java 5.0 (Sun)
> JXplorer
>Reporter: Marek
> Attachments: allow John to read his name-space.error, allow John to 
> read his name-space.ldif, allow John to read his name-tab.error, allow John 
> to read his name-tab.ldif
>
>
> When I import "allow John to read his name-tab.ldif" file which contains tabs 
> I receive the following error in JXplorer and nothing is actually imported:
> javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 
> 17 - failed to add entry 
> cn=allowJohnToReadHisName_ACI12,o=sevenSeas,dc=example,dc=com: 
> itemoruserfirst userfirst not found in attribute registry!:
> org.apache.directory.shared.ldap.exception.LdapInvalidAttributeIdentifierException:
>itemoruserfirst userfirst not found in attribute registry!
>   at 
> org.apache.directory.server.core.schema.SchemaService.check(SchemaService.java:1598)
> When I change tabs to spaces i receive the following error, but everything is 
> imported correctly:
> javax.naming.NamingException: [LDAP: error code 54 - failed to add entry 
> cn=allowJohnToReadHisName_ACI13,o=sevenSeas,dc=example,dc=com: Unexpected 
> exception.:
> org.apache.directory.server.core.interceptor.InterceptorException: Unexpected 
> exception. [Root exception is java.lang.NullPointerException]
>   at 
> org.apache.directory.server.core.interceptor.InterceptorChain.throwInterceptorException(InterceptorChain.java:1510)

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



[jira] Commented: (DIRSERVER-865) errors when importing ACI from LDIF file containing tabs

2007-03-05 Thread Marek (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRSERVER-865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477998
 ] 

Marek commented on DIRSERVER-865:
-

The error affects version 1.0.

> errors when importing ACI from LDIF file containing tabs
> 
>
> Key: DIRSERVER-865
> URL: https://issues.apache.org/jira/browse/DIRSERVER-865
> Project: Directory ApacheDS
>  Issue Type: Bug
> Environment: Windows XP
> Java 5.0 (Sun)
> JXplorer
>Reporter: Marek
> Attachments: allow John to read his name-space.error, allow John to 
> read his name-space.ldif, allow John to read his name-tab.error, allow John 
> to read his name-tab.ldif
>
>
> When I import "allow John to read his name-tab.ldif" file which contains tabs 
> I receive the following error in JXplorer and nothing is actually imported:
> javax.naming.directory.InvalidAttributeIdentifierException: [LDAP: error code 
> 17 - failed to add entry 
> cn=allowJohnToReadHisName_ACI12,o=sevenSeas,dc=example,dc=com: 
> itemoruserfirst userfirst not found in attribute registry!:
> org.apache.directory.shared.ldap.exception.LdapInvalidAttributeIdentifierException:
>itemoruserfirst userfirst not found in attribute registry!
>   at 
> org.apache.directory.server.core.schema.SchemaService.check(SchemaService.java:1598)
> When I change tabs to spaces i receive the following error, but everything is 
> imported correctly:
> javax.naming.NamingException: [LDAP: error code 54 - failed to add entry 
> cn=allowJohnToReadHisName_ACI13,o=sevenSeas,dc=example,dc=com: Unexpected 
> exception.:
> org.apache.directory.server.core.interceptor.InterceptorException: Unexpected 
> exception. [Root exception is java.lang.NullPointerException]
>   at 
> org.apache.directory.server.core.interceptor.InterceptorChain.throwInterceptorException(InterceptorChain.java:1510)

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