Results 1 to 2 of 2

Thread: Storing custom global config values

  1. #1
    Join Date
    Jan 2009
    Posts
    10
    Rep Power
    6

    Default Storing custom global config values

    For my zimlet I need to have a global configuration that applies to all users. So I created an admin extension where this configuration can be managed. Now I am having difficulties with storing the configuration values. First, I tried to store the values in the 'global configuration' in LDAP, but that requires modification of the schema. Then I thought about storing it in the local config, but it appears the local config can only be edited using the command line client.

    At last I found the DbConfig (accessible via com.zimbra.cs.util.Config), I finally managed to store the configuration, but now Zimbra fails to start after it has been stopped, this is caused by a NullPointerException being thrown from com.zimbra.cs.util.Confg.init(), line 71 (the line containing the else if).
    Code:
    mConfigMap = DbConfig.getAll(conn, ts);
    for (Iterator<DbConfig> it = mConfigMap.values().iterator(); it.hasNext();) {
    DbConfig c = it.next();
    if (mYoungest == null) {
      mYoungest = c.getModified();
    } else if (c.getModified().after(mYoungest)) {
      mYoungest = c.getModified();
    }
    I think this would be solved by ordering the results of the query by modification and using a LinkedHashMap in com.zimbra.cs.db.DbConfig.getAll(), or by adding some null-handling in com.zimbra.cs.util.Config.

    Is there any work-around, or another way of have custom global configuration values without modifying the zimlet definition, or the LDAP schema?
    Last edited by NetForce1; 02-26-2009 at 06:25 AM.

  2. #2
    Join Date
    Jan 2009
    Posts
    10
    Rep Power
    6

    Default

    Just found out that the NPE mentioned in my previous post only occurs in Zimbra Desktop, on ZCS, the modified column is filled for every value in the config table.

Similar Threads

  1. bayes db..
    By osiris in forum Administrators
    Replies: 9
    Last Post: 06-15-2011, 12:14 PM
  2. LDAP Cannot bind on migration to new server
    By neekster in forum Migration
    Replies: 23
    Last Post: 03-09-2009, 03:08 AM
  3. speed up the net
    By mcesari in forum Administrators
    Replies: 10
    Last Post: 04-25-2008, 12:24 PM
  4. [SOLVED] Install Problem in Ubuntu 6.06 Server
    By xtimox in forum Installation
    Replies: 16
    Last Post: 03-27-2008, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •