Topic
5 replies Latest Post - ‏2011-08-09T22:08:30Z by christopha
christopha
christopha
9 Posts
ACCEPTED ANSWER

Pinned topic Config Tool throws exception while reading CM ACL

‏2010-02-21T22:22:37Z |
I try to create a libray using com.ibm.content.cm.tools.LibraryCreate.
When I associate a Content Manager ACL other than the unmodified PublicReadACL, I always get a Java exception:

XXXXXXXXXXXXXXXXXXXXXXXXXXXX
X !!! Exception !!! X
XXXXXXXXXXXXXXXXXXXXXXXXXXXX
Name: java.lang.ArrayIndexOutOfBoundsException
Message: Array index out of range: 1

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1
at com.ibm.content.cm.service.TestUtil.printACL(TestUtil.java:6505)
at com.ibm.content.cm.service.TestUtil.printACL(TestUtil.java:6468)
at com.ibm.content.cm.tools.LibraryCreate.promptAclChoice(LibraryCreate.java:483)
at com.ibm.content.cm.tools.LibraryCreate.main(LibraryCreate.java:254)

I tried the same with multiple ACLs on two different systems with CM 8.4.2.1 on Windows Server (one 32bit and one 64bit).

Does anybody have this issue, too? If yes, is ther a solution?

Christoph
Updated on 2011-08-09T22:08:30Z at 2011-08-09T22:08:30Z by christopha
  • TigerTrix
    TigerTrix
    18 Posts
    ACCEPTED ANSWER

    Re: Config Tool throws exception while reading CM ACL

    ‏2010-02-22T21:38:31Z  in response to christopha
    Greetings,

    This happens in 1.0 when you have ACLs with user groups and no individual users in the ACL, or more user groups than individual users. There is an error printing the ACL selection for verification when there are more user groups than individual users associated in the ACL. If you have both user groups and individual users in the ACL, but have an equal or fewer number of individual users you will not have an error, but the list of user groups does not print correclty. If you have only individual users associated in the ACL there is no problem.

    Steps to Reproduce:
    0. Define an ACL in your system that has user groups associated, no individual users.
    1. Run LibraryCreate
    2. Choose new or existing application.
    3. Choose a new name, title, description, etc.
    4. When prompted for ACL selection, choose "L" to list all ACLs.
    5. Choose the ACL mentioned in step 0.
    --> ERROR printing the ACL for verification.

    The same problem exists for creating applications (or library groups).

    If you have this problem and need a solution, check for updates that might fix this issue. If none are available, contact support. At the time of this post, there is no fix pack available yet. But if this post is outdated, check for updates.
    • christopha
      christopha
      9 Posts
      ACCEPTED ANSWER

      Re: Config Tool throws exception while reading CM ACL

      ‏2010-02-23T08:19:18Z  in response to TigerTrix
      Hello Tiger Trix,

      many thanks for this explanation, now we can work around this.
      In the meantime I opened a PMR regarding that issue. Let's see ...

      It seems that there are more bugs in the tool:
      
      CHOICE: Choose an ACL: GHS_Demo_ACL   ----------------------------------------------------------------------------- Access Control List: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Name: GHS_Demo_ACL Desc: *Wenige duerfen aendern, alle duerfen Lesen ID: 1000 Type: Admin (
      '0') - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Individual Users Granted Access: (2) - DEMO - ECMUSER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - User Groups Granted Access: (2) - DEMO                            : - ECMUSER                         : -----------------------------------------------------------------------------   PROMPT: Is 
      
      this ACL acceptable given the user access listed above?
      

      Under "User Groups Granted Access" it lists the users again insteade of the groups. It might be worth to be revised by development lab.

      Anyway, thanks again!

      Christoph
      • TigerTrix
        TigerTrix
        18 Posts
        ACCEPTED ANSWER

        Re: Config Tool throws exception while reading CM ACL

        ‏2010-02-23T17:43:13Z  in response to christopha
        Greetings,

        That is the same problem and the same fix. The problem is that the individual users are printed instead of the user groups. When you have more individual users than user groups it fails instead of only printing the incorrect list as shown the the range error pasted in the original post.

        So no need to log a separate issue. It is the same problem.
        • TigerTrix
          TigerTrix
          18 Posts
          ACCEPTED ANSWER

          Re: Config Tool throws exception while reading CM ACL

          ‏2010-06-16T17:12:36Z  in response to TigerTrix
          This is fixed in V1.1 released on June 15, 2010.
          • christopha
            christopha
            9 Posts
            ACCEPTED ANSWER

            Re: Config Tool throws exception while reading CM ACL

            ‏2011-08-09T22:08:30Z  in response to TigerTrix
            Indeed the actual version no longer throws this exception.

            Christoph