-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
SAXParseException generating Scorecard for SonarQube #117
Comments
The SonarQube parser is very old so I'm not surprised it doesn't work anymore. I'd love to update it though. Can you share the results file with me? dave dot wichers at owasp dot org is my email. And I'll update the scorecard generator to support the current XML results format. |
Results file attached |
@darkspirit510 - Sascha - is this still an issue anymore for the updated version of SonarQube scorecard generator? |
@akhvee This XML file does not have a root tag. Even adding one artificially does not fix the file. How did you get/export this one? 🤔 |
@darkspirit510 - I've had tools generate invalid XML like this before. When this occurs, I've had to insert the required XML elements at the start/end of the file to 'fix' the XML, before sending it to the XML parser. This may need to be done if SonarQube is generating something that is actually invalid. Let's see what @akhvee says about how the XML was actually generated. |
I am running into SAXParseException while trying to generate scorecard using
./createScorecards.sh
. find the logs belowThe Sonar results file
Benchmark_1.2-sonar-v8.4.2.xxxxx-xxx.xml
was generated by./createScorecards.sh
with SonarQube (docker 8.4.2-community instance) running locally.How do i fix this issue.
Since
Benchmark_1.2-sonar-v8.4.2.xxxxx-xxx.xml
file is large ~18 MB i haven't attached it here. Let me know if it you like to get hold of it.The text was updated successfully, but these errors were encountered: