Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

gtoison
Copy link
Contributor

@gtoison gtoison commented Feb 28, 2024

As noted in #727 and spotbugs/sonar-findbugs#983 the detector introduced in #681 declared a new bug code abbreviation but did not provide.
This is causing a crash when the detector reports a bug.

This should fix #727 and spotbugs/sonar-findbugs#983

@h3xstream
Copy link
Member

Good catch. I will try to add a test that does sanity checks on the metadata file to prevent this.

@h3xstream h3xstream merged commit bf12d51 into find-sec-bugs:master Feb 29, 2024
@gtoison
Copy link
Contributor Author

gtoison commented Feb 29, 2024

Thanks for merging!
I'm making a test in the sonar-findbugs project and it seems to be the only missing abbreviation.
Note that I also found a problematic case (missing category) in one of the sb-contrib bug patterns.

@schloemer-bas schloemer-bas mentioned this pull request Apr 5, 2024
@Bi0icL
Copy link

Bi0icL commented Apr 26, 2024

I'm facing the same trouble, is there anything I can do to temporarily alleviate it?

@gtoison
Copy link
Contributor Author

gtoison commented Apr 26, 2024

findsecbugs shouldn't crash when trying to report the problem but most likely this is a real finding an you can solve it by disabling XXE on your xml processing classes as explained here: https://github.com/find-sec-bugs/find-sec-bugs/pull/681/files#diff-a686f21490e05e3796410ae562a7a8bbc9802a995afee23da568c5d0fe4ff2e4

@kmoens
Copy link

kmoens commented Jul 8, 2024

When can we expect a release of this fix?

@mai-67
Copy link

mai-67 commented Jul 15, 2024

Good morning!
We have the same problem. We are waiting for a release with the error fixed.

@uwesinha
Copy link

uwesinha commented Aug 6, 2024

Can we maybe get a 1.13.1 release with just this fix and nothing else?

1 similar comment
@mai-67
Copy link

mai-67 commented Aug 27, 2024

Can we maybe get a 1.13.1 release with just this fix and nothing else?

@Jane151013
Copy link

Same error occured,waiting for 1.13.1 released.
We use sonar-findbugs plugin 4.2.10,which use 1.13.0 version of findsecbugs.
Because our sonar is 10.6,only this version 4.2.0 is compatible.
waiting for your fix version,TKS

@readonlyuser1
Copy link

sonar-findbugs 4.2.10

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar (default-cli) on project archive: Can not execute Findbugs: java.lang.IllegalArgumentException: Error: missing bug code for keySECXXEVAL

@mai-67
Copy link

mai-67 commented Oct 1, 2024

Please, when is the new version of findbugs scheduled to be released that fixes this error?
We have production environments that cannot be analyzed due to this bug. Thank you

@mjeffrey
Copy link

In our Java 21 code we have a false positive with this error and so it crashes.
We can't use 1.12.0 and we can't use 1.13.0.
A new 1.13.1 release would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

findsecbugs-plugin: missing bug code for keySECXXEVAL
9 participants