When activate rules,only one default profile can be selected,others can't be seen

Hi,all
We have several profiles in java language,all projects are belonging to default profile.Then we want to active a rule in profile A active list into profile B.But only the default profile can be choose in the pop window.
Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
    SonarQube Community Edition v10.6
  • how is SonarQube deployed: zip, Docker, Helm
    zip
  • what are you trying to achieve
    Activate a rule in profile A to profileB
  • what have you tried so far to achieve this
    1.We have tried rules in other languages,there is still only one profile-the default profile of java language inside
    2.We have tried to change some projects in to profile B,no help
    3.We have checked the permission of user admin and Administrator role,all permissions are selected.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
no logs can be shown.


Any help will be graceful,tks

Hi,

I believe this is fixed in 10.7. Can you upgrade and see if this is still replicable?

 
Thx,
Ann

Okay.Thank you very much for your timely assistance.
We’ll try to upgrade to 10.7.After upgrade is done,I’ll reply the result.

1 Like

Hi,Ann,
It’s very unfortunately to tell you,even though we upgrade sonarqube into 10.7,the bug is still there.


We even tried to use the Incognito Mode of firefox to avoid the cache files influence,but nothing help.
As I remember,I could activate any rule in profile A to profile B,if only the two profile in the same language.But now,the rule can activate in any other profile if only there is project under it,is it right?
If it is not right,I think it is a bug.
Waiting for your answers,tks.

Hi,

I’m not sure I understand the current state.

You’re saying only profiles with assigned projects appear in the dropdown?

Are there any errors in your browser console?

 
Ann

Hi,Ann.Thank you for your answer.

Yes,you’re right.


Look,there are two profile in Scala,I choose Activated Rules in [FindBugs Security Scala].In theory, I can choose to activate these rules in [Sonar way] at the dropdown.
But in fact,there are only two profiles of java in dropdown.Not scala profile.

By the way,there’s an error in my browser console

I’ve tried change my browser from Firefox to chrome,nothing help.

Hi,

Thanks for confirming. I’ve flagged this for more expert eyes.

 
Ann

1 Like

Hello @Jane151013 ,

It appears that you are trying to activate rules in BUILT-IN Quality Profiles, which is not possible, and this is intended behavior.

If you want to create a custom Sonar Way that includes a find bugs rule, I recommend making a copy of the Sonar Way Quality Profile and activating rules from find bugs within your custom Quality Profile.

1 Like