Skip to content

Conversation

@pstember
Copy link
Contributor

Some changes to the code ...

@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String data = request.getParameter("data");
Utils.storeData(data);

Check notice

Code scanning / SonarQube

Exceptions should not be thrown from servlet methods

<!--SONAR_ISSUE_KEY:91db4380-c352-4067-bd39-c75290bea363-->Handle the following exception that could be thrown by "storeData": IOException. <p>See more on <a href="https://nautilus.sonarqube.org/project/issues?id=demo%3Ajava-security&branch=feature%2Fadd-data-store&issues=91db4380-c352-4067-bd39-c75290bea363&open=91db4380-c352-4067-bd39-c75290bea363">SonarQube</a></p>
@sonar-nautilus
Copy link

sonar-nautilus bot commented Jun 2, 2025

Quality Gate failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 60%)

See analysis details on SonarQube

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

Successfully merging this pull request may close these issues.

4 participants