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
During a trial to implement a hack to get the Java DB as a dedicated server #3560 I detected that the signature of the Exists method doesn't match with the SQL Query that is performed. I'm not a golang developer so maybe my bug report is wrong, but I also so far found no description that proofs that I'm wrong.
Desired Behavior
The Exists function in the javadb/client.go file calls the SelectIndexByArtifactIDAndGroupID(artifactID, groupID) out of the trivy-java-db in the argument order artifactID, groupID.
Actual Behavior
The current behavior is that the function gets called by javadb/client.go in the opposite order with groupID, artifactID.
Reproduction Steps
1. Compare https://github.com/aquasecurity/trivy/blob/main/pkg/javadb/client.go#L119 with https://github.com/aquasecurity/trivy-java-db/blob/main/pkg/db/db.go#L162
Discussed in #4594
Originally posted by DaspawnW June 8, 2023
Description
During a trial to implement a hack to get the Java DB as a dedicated server #3560 I detected that the signature of the Exists method doesn't match with the SQL Query that is performed. I'm not a golang developer so maybe my bug report is wrong, but I also so far found no description that proofs that I'm wrong.
Desired Behavior
The Exists function in the javadb/client.go file calls the
SelectIndexByArtifactIDAndGroupID(artifactID, groupID)
out of the trivy-java-db in the argument order artifactID, groupID.Actual Behavior
The current behavior is that the function gets called by javadb/client.go in the opposite order with groupID, artifactID.
Reproduction Steps
Target
None
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
nn
Version
Checklist
trivy --reset
The text was updated successfully, but these errors were encountered: