Skip to content

Answer 405 instead of 412 to a failing precondition on an unsupported method (#1752) - #1756

Merged
thboileau-git merged 1 commit into
2.6from
fix/1752-405-before-412-2.6
Nov 29, 2026
Merged

thboileau-git merged 1 commit into
2.6from
fix/1752-405-before-412-2.6

Answer 405 instead of 412 to a failing precondition on an unsupported…

bfa140f
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 29, 2026 in 1m 8s

Quality Gate failed

Failed conditions
D Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 684 in org.restlet.java/org.restlet/src/main/java/org/restlet/resource/ServerResource.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 31 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaInwGCDsnfCWoUvzgo5&open=AaInwGCDsnfCWoUvzgo5&pullRequest=1756

Check warning on line 1013 in org.restlet.java/org.restlet/src/main/java/org/restlet/resource/ServerResource.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Reduce the total number of break and continue statements in this loop to use at most one.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaInwGCDsnfCWoUvzgo2&open=AaInwGCDsnfCWoUvzgo2&pullRequest=1756

Check failure on line 576 in org.restlet.java/org.restlet/src/main/java/org/restlet/resource/ServerResource.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 26 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaInwGCDsnfCWoUvzgo4&open=AaInwGCDsnfCWoUvzgo4&pullRequest=1756

Check failure on line 1010 in org.restlet.java/org.restlet/src/main/java/org/restlet/resource/ServerResource.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 32 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaInwGCDsnfCWoUvzgo6&open=AaInwGCDsnfCWoUvzgo6&pullRequest=1756

Check warning on line 118 in org.restlet.java/org.restlet/src/main/java/org/restlet/resource/ServerResource.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change the visibility of this constructor to "protected".

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaInwGCDsnfCWoUvzgo3&open=AaInwGCDsnfCWoUvzgo3&pullRequest=1756

Check warning on line 1108 in org.restlet.java/org.restlet/src/main/java/org/restlet/resource/ServerResource.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Catch Exception instead of Throwable.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaInwGCDsnfCWoUvzgo7&open=AaInwGCDsnfCWoUvzgo7&pullRequest=1756