sonar-cnes-report icon indicating copy to clipboard operation
sonar-cnes-report copied to clipboard

Error while generating report - {"errors":[{"msg":"For input string: \"_AFourReports.cshtml\""}]}

Open AbhijitKhillari opened this issue 2 years ago • 2 comments

Describe the bug

A clear and concise description of what the bug is.

I'm running a report for a project with Dot Net Framework 4.6.1. While generating report it is showing error "{"errors":[{"msg":"For input string: "_AFourReports.cshtml""}]}" _AFourReports.cshtml is file in the project.

SonarQube version - 8.9 LTS CNES report version - 4.0

To reproduce

Steps to reproduce the behavior.

  1. Go to 'More'
  2. Click on 'CNES Report'
  3. Fill in the required data
  4. Click on Generate button

Expected behavior

Report Should be generated

Screenshots & log

image image

User environment

Please complete the following information.

  • OS: [e.g. Windows 10]
  • .NET framenwork 4.6.1
  • SonarQube 8.9 LTS
  • CNES Report 4.0

AbhijitKhillari avatar Mar 11 '22 06:03 AbhijitKhillari

Hi @AbhijitKhillari Sorry for the huge response time... but thanks for the feedback ! With these elements, I can't tell exactly what the problem was, but I would bet it's the filename (beginning with an underscore). Could you try to rename it just to check that, please ? Otherwise, I would need some SonarQube server logs to debug this precisely...

Sancretor avatar Apr 26 '22 12:04 Sancretor

Hi @AbhijitKhillari I haven't been able to reproduce your error with plugin version 4.1.1 on SonarQube 8.9.8. I don't know if the latest of our releases fixes the problem, or if I just don't have enough data to full reproduce your situation....

Could you please provide some SonarQube server logs as requested previously ? Don't forget to remove sensitive data.

Sancretor avatar May 04 '22 07:05 Sancretor