Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@ private RuntimeException mapToReasonedException(Exception e, String inputPath) {
"Invalid input URI: " + inputPath,
"Please check the URL.",
ce);
case IOException ioe -> new ReasonedException(
ResultStatus.FAILED,
"Invalid input URI: " + inputPath,
"Failed to download file. Please check the URL.",
ioe);
// Default to System Error for everything else
case null, default ->
new ReasonedException(ResultStatus.SYSTEM_ERROR, "System failed to process input: " + inputPath, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ public static AnalyzerArtifact mapFromKojiArchive(
}
case win -> {
WindowsAnalyzerArtifact win = new WindowsAnalyzerArtifact();
win.setName(archiveInfo.getArtifactId());
String name = archiveInfo.getArtifactId() != null ? archiveInfo.getArtifactId()
: archiveInfo.getArchiveId().toString();
win.setName(name);
String release = (buildDetails != null && buildDetails.getInfo() != null
&& buildDetails.getInfo().getRelease() != null) ? buildDetails.getInfo().getRelease()
: "unknown";
Expand Down