Skip to content

Incorrect parameter passed to exhortApi.componentAnalysis call. #188

@soul2zimate

Description

@soul2zimate

This looks wrong https://github.com/redhat-developer/intellij-dependency-analytics/blob/1.0.0/src/main/java/org/jboss/tools/intellij/exhort/ApiService.java#L90-L95

            if ("go.mod".equals(manifestName) || "requirements.txt".equals(manifestName)) {
                var manifestContent = Files.readAllBytes(Paths.get(manifestPath));
                componentReport = exhortApi.componentAnalysis(manifestName, manifestContent);
            } else {
                componentReport = exhortApi.componentAnalysis(manifestPath);
            }

In If clause, it should pass manifestPath as same as in Else clause, not manifestName

see also the actual logic inside componentAnalysis https://github.com/trustification/exhort-java-api/blob/0.0.8-SNAPSHOT/src/main/java/com/redhat/exhort/impl/ExhortApi.java#L412

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions