Changeset 31865
- Timestamp:
- 2017-08-09T21:10:54+12:00 (6 years ago)
- Location:
- main/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/classes/dictionary.properties
r31861 r31865 867 867 Mirroring.DownloadJob.Resume_Tooltip:Resume this download 868 868 Mirroring.DownloadJob.Status:Downloaded {0} of {1} files ({2} warnings, {3} errors) 869 Mirroring.DownloadJob.Warning_No_Valid_Certificate:WARNING: Can't download from a site that doesn\'t have a (valid) security certificate. 870 Mirroring.DownloadJob.Enable_NoCheckCertificate:Enable 'No certificate checking' in Preferences > Connection to download insecurely from https URLs. 869 871 Mirroring.DownloadJob.Waiting:Waiting to start 870 872 Mirroring.DownloadJob.Waiting_User:Waiting for user action -
main/trunk/gli/src/org/greenstone/gatherer/download/DownloadJob.java
r31831 r31865 1081 1081 AppendLineOnlyFileDocument download_log = DownloadJob.this.download_log; 1082 1082 1083 boolean noCheckCertificate_needed = false; // determine whether this flag needs to be set for wget (under Preferences > Connection) 1084 1083 1085 while (!Thread.currentThread().isInterrupted() && (line = br.readLine()) != null 1084 1086 && !line.trim().equals("<<Finished>>") /*&& !isStopped()*/) { … … 1100 1102 DebugStream.println("***** Requesting robot.txt"); 1101 1103 ignore_for_robots = true; 1104 } 1105 else if(line.indexOf("--no-check-certificate") != -1) { 1106 downloadWarning(); 1107 noCheckCertificate_needed = true; 1102 1108 } 1103 1109 // If line contains "=> `" display text as the … … 1180 1186 } 1181 1187 } 1188 if(noCheckCertificate_needed) { // can't download from (some nested) URL as its 1189 // certificate can't be verified. User must turn on --no-check-certificate 1190 // if they want to download from there anyway, but it will do so insecurely 1191 download_log.appendLine("************"); 1192 download_log.appendLine(Dictionary.get("Mirroring.DownloadJob.Warning_No_Valid_Certificate")); 1193 download_log.appendLine(Dictionary.get("Mirroring.DownloadJob.Enable_NoCheckCertificate")); 1194 download_log.appendLine("************"); 1195 } 1182 1196 1183 1197 } catch (IOException ioe) { -
main/trunk/greenstone2/build-src/packages/wget/wgetrc-gs.in
r31829 r31865 4 4 5 5 # for versions with openssl support, don't want to be forced to run wget 6 # with --no-check-certificate each time 7 check_certificate = off 6 # with --no-check-certificate each time. Now this is controlled in GLI's 7 # File > Preferences > Connection tab by ticking "No certificate checking" 8 #check_certificate = off 8 9 9 10 ## You can use this file to change the default behaviour of wget or to
Note:
See TracChangeset
for help on using the changeset viewer.