You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.warn("could not write validation hash file due to exception:\n\t{}", e.getMessage());
@@ -229,12 +239,12 @@ public static void createValidationFiles(URLConnection resourceUrlConnection, Fi
229
239
* Validate a local file based on pre-existing metadata files for size and hash.<br>
230
240
* If the passed in <code>localFile</code> parameter is a file named <code>file.ext</code>, the function searches in the same folder for:
231
241
* <ul>
232
-
* <li><code>file.ext.size</code>: if found, it compares the size stored in it to the length of <code>localFile</code> (in bytes).</li>
233
-
* <li><code>file.ext.hash</code>: if found, it compares the size stored in it to the hash code of <code>localFile</code>.</li>
242
+
* <li><code>file.ext.size</code>: If found, it compares the size stored in it to the length of <code>localFile</code> (in bytes).</li>
243
+
* <li><code>file.ext.hash_XXXX (where XXXX is DM5, SHA1, or SHA256)</code>: If found, it compares the size stored in it to the hash code of <code>localFile</code>.</li>
234
244
* </ul>
235
245
* If any of these comparisons fail, the function returns <code>false</code>. otherwise it returns true.
236
246
* <p>
237
-
* This function does not implement hash code verification yet.
247
+
* <b>N.B.</b> None of the 3 common verification hashing algorithms are implement yet.
238
248
* @param localFile The file to validate
239
249
* @return <code>false</code> if any of the size or hash code metadata files exists but its contents does not match the expected value in the file, <code>true</code> otherwise.
240
250
* @since 6.1.1
@@ -258,9 +268,26 @@ public static boolean validateFile(File localFile) {
0 commit comments