Ignore:
Timestamp:
2015-07-24T22:48:03+12:00 (9 years ago)
Author:
ak19
Message:

Fixing bug in GS3 installer that didn't use the longer password provided, despite the installer now allowing more than 8. The problem was bigger and manifold. 1. Fixed ModifyUsersDB to allow up to and incl 20 chars instead of 8. 2. Fixed the DerbyWrapper classes since the ant config-admin and config-user tasks had stopped working when global.properties was consulted for the derbyserver name and port. Now providing fallbacks again for the installer. 3. build.xml may no longer need to stop tomcat then modify the derby db and then start tomcat again because we're no longer using an embedded derby, but because we're using a networked derby, modifying the usersdb now didn't work unless greenstone (actually derby) was running. Changed the config targets to allow modifying admin and user data even if greenstone is not running, by making the update-userdb target that's called by these two tasks ensure the derbyserver is running before modifying the userdb, and stopping it if it was started up by the target.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/DerbyWrapper.java

    r30043 r30055  
    3535public class DerbyWrapper
    3636{
    37     static final String PORT = GlobalProperties.getProperty("derby.server.port");//, "1527");
    38     static final String DERBYSERVER = GlobalProperties.getProperty("derby.server");//, "localhost");
     37    static final String PORT = GlobalProperties.getProperty("derby.server.port", "1527");
     38    static final String DERBYSERVER = GlobalProperties.getProperty("derby.server", "localhost");
    3939    static final String PROTOCOL = "jdbc:derby://"+DERBYSERVER+":"+PORT+"/"; // "jdbc:derby://localhost:1527";
    4040    static final String DRIVER = "org.apache.derby.jdbc.ClientDriver"; //"org.apache.derby.jdbc.EmbeddedDriver";
Note: See TracChangeset for help on using the changeset viewer.