Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't fix issue will be reported again #26

Closed
benjaminliugang opened this issue Dec 27, 2016 · 10 comments
Closed

Won't fix issue will be reported again #26

benjaminliugang opened this issue Dec 27, 2016 · 10 comments
Assignees

Comments

@benjaminliugang
Copy link

benjaminliugang commented Dec 27, 2016

In our SonarQube server some issues already mark as won't fix, but after some days, it will be auto marked as fixed(closed). And then it will be report again after few days.

I'm not sure what's wrong with it and what kind of issues will be mark as new issue?

@benjaminliugang benjaminliugang changed the title Won't fix issue will be report again Won't fix issue will be reported again Dec 27, 2016
@gengivan
Copy link

gengivan commented Jan 3, 2017

Hi Team, any update?

Thanks
Ivan Geng

@stevespringett
Copy link
Contributor

What version of SonarQube? Issues are generated against the project, not a particular source file. Are there any changes to the project in SQ prior to this issue occurring?

@stevespringett stevespringett self-assigned this Jan 3, 2017
@gengivan
Copy link

gengivan commented Jan 3, 2017

The sonar version is Version 5.6.1.

Issues were not reported on the source files. The issues were reported on JARs. As some of the JARs are already latest or the latest version has known issues, so we marked them as 'Won't Fix'.

A few days later some files were reported again(no change on the jar dependency), but not all of the issues happens again.

Any suggestion? Thanks.

@gengivan
Copy link

gengivan commented Jan 6, 2017

Hi @stevespringett , any suggestion? Thanks.

@stevespringett
Copy link
Contributor

Have you compared the paths of the jars from each of the runs? Are the paths exactly the same? If not, then they would be considered separate issues. I've looked through the plugin code and don't see anything that would cause this issue randomly. You may want to diff the DC XML files.

@stevespringett
Copy link
Contributor

Also, can you provide me the exact version of a few jars that you've seen this with?

@gengivan
Copy link

@stevespringett , you are right. Actually, the alerts were reported on different type files: in war and individual jar. But the incorrect alert behavior is not consistent, not figure out when it was reported again.

I think the reason should be alerts status had been moved to FIXED, so sonar treat them as new issues.

Please find one sample jar: jackson-mapper-asl-1.9.13.jar.

By the way, any more detail about this?

You may want to diff the DC XML files.

@pioto
Copy link

pioto commented Nov 26, 2018

This still appears to be an issue with version 1.1.2 of this plugin, and version 6.7.6 of SonarQube.

It seems that the "key" of the issue changes with each run, causing the issues to be marked as "isNew" in the JSON report, which in turn ends up falsely marking some builds as introducing "new" issues that have been around for months.

@Reamer
Copy link
Member

Reamer commented Apr 21, 2019

Hi,
please checkout new version of this plugin.
1.1.4 for Sonarqube 6.7.5 and above
1.2.3 for Sonarqube 7.6 and above

@Reamer
Copy link
Member

Reamer commented May 7, 2019

Should be fixed with actual version of this plugin. This plugin looks for a pom.xml or gradle.build in your project to link issue against this files.

@Reamer Reamer closed this as completed May 7, 2019
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

No branches or pull requests

5 participants