Ignore:
Timestamp:
2018-08-17T21:57:56+12:00 (6 years ago)
Author:
ak19
Message:

util.pm has to cope with library url being undefined: it can happen if the build.props properties are invalid or inconsistent (port numbers, inconsistency between enabled port properties and server.protocol, missing keystore password if https is enabled)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/util.pm

    r32324 r32345  
    14031403        close(PIN);
    14041404       
    1405         if (defined $lib_name) { # url won't be undef now
     1405        # url can be undef if tomcat.port could not be determined due to
     1406        # user having wrong or conflicting server related vals in build.props
     1407           if (defined $url && defined $lib_name) {
    14061408            # replace the servlet_name portion of the url found, with the given library_name
    14071409            $url =~ s@/[^/]*$@/$lib_name@;
Note: See TracChangeset for help on using the changeset viewer.