versions used - Sonarqube Version 8.9.1 (build 44547)
error observed (wrap logs/code around triple quote ``` for proper formatting) - I have created a few custom rules (XPATH Rule). When I delete the custom rules, it appears to be deleted in the UI but after a few hours, the rules appear again.
steps to reproduce - Go to Rule → Select Language as XML → click on “Track breaches of an XPath ruleRULE TEMPLATE” → In the Custom Rule section click Create
potential workaround → I am not aware of any workaround.
Steps taken to fix the issue: I have deleted the ElasticSearch Index in the pod and restarted the pod which created new ElasticSearch indexes. This did not fix the issue. I have also enabled the DEBUG mode to check the logs, I could not find anything concrete.
Thanks for your report.
This sounds like
SONAR-6435 - A deleted Custom Rule is back to READY status after a restart of SonarQube
As you’ll see from the ticket, it was closed Won’t Fix since fixing it would be a non-trivial effort for a very low-traction problem. Can you simply ignore the custom rules you’ve created?