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> {
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 ReferenceManifestManager referenceManifestManager;
@ -232,10 +232,6 @@ public class ReferenceManifestPageController
messages,
rim,
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) {
return jaxbe;
} else {
throw new IOException("Invalid swidtag file!");
throw new IOException("Invalid Base RIM, swidtag format expected.");
}
}