Changeset 32345 for main

Show
Ignore:
Timestamp:
17.08.2018 21:57:56 (12 months 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)

Files:
1 modified

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@;