Updated the messaging for an invalid swid tag file and added .log as another type of tmp log file to extension to accept.

This commit is contained in:
Cyrus
2020-07-29 09:27:15 -04:00
parent 29789e2fbe
commit 2b2e7c744b
2 changed files with 2 additions and 6 deletions

View File

@ -61,7 +61,7 @@ public class ReferenceManifestPageController
extends PageController<NoPageParams> { extends PageController<NoPageParams> {
private static final String BIOS_RELEASE_DATE_FORMAT = "yyyy-MM-dd"; private static final String BIOS_RELEASE_DATE_FORMAT = "yyyy-MM-dd";
private static final String LOG_FILE_PATTERN = "([^\\s]+(\\.(?i)(rim|rimel|bin))$)"; private static final String LOG_FILE_PATTERN = "([^\\s]+(\\.(?i)(rim|rimel|bin|log))$)";
private final BiosDateValidator biosValidator; private final BiosDateValidator biosValidator;
private final ReferenceManifestManager referenceManifestManager; private final ReferenceManifestManager referenceManifestManager;
@ -232,10 +232,6 @@ public class ReferenceManifestPageController
messages, messages,
rim, rim,
referenceManifestManager); referenceManifestManager);
for (SwidResource swidRes : rim.parseResource()) {
System.out.println("testing this section!");
}
} }
} }

View File

@ -469,7 +469,7 @@ public class ReferenceManifest extends ArchivableEntity {
if (jaxbe != null) { if (jaxbe != null) {
return jaxbe; return jaxbe;
} else { } else {
throw new IOException("Invalid swidtag file!"); throw new IOException("Invalid Base RIM, swidtag format expected.");
} }
} }