Skip to content

Honour an If-Range date only if it is a strong validator (#1742) - #1745

Merged
thboileau-git merged 1 commit into
2.6from
fix/1742-if-range-strong-date-2.6
Nov 28, 2026
Merged

thboileau-git merged 1 commit into
2.6from
fix/1742-if-range-strong-date-2.6

Honour an If-Range date only if it is a strong validator (#1742)

d60a1e0
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Nov 28, 2026 in 1m 0s

Quality Gate failed

Failed conditions
4.6% Duplication on New Code (required ≤ 3%)
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 warning on line 41 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/util/DateUtilsTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "DATE_RFC1036_1" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVK8yQKu3y-8RWBoG&open=AaIiVK8yQKu3y-8RWBoG&pullRequest=1745

Check warning on line 43 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/util/DateUtilsTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "DATE_RFC1123_1" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVK8yQKu3y-8RWBoH&open=AaIiVK8yQKu3y-8RWBoH&pullRequest=1745

Check warning on line 418 in org.restlet.java/org.restlet/src/main/java/org/restlet/data/Conditions.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename "modifiedSince" which hides the field declared at line 59.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVKxHQKu3y-8RWBn_&open=AaIiVKxHQKu3y-8RWBn_&pullRequest=1745

Check warning on line 278 in org.restlet.java/org.restlet/src/main/java/org/restlet/data/Conditions.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge this if statement with the enclosing one.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVKxHQKu3y-8RWBn7&open=AaIiVKxHQKu3y-8RWBn7&pullRequest=1745

Check failure on line 164 in org.restlet.java/org.restlet/src/main/java/org/restlet/data/Conditions.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVKxHQKu3y-8RWBn8&open=AaIiVKxHQKu3y-8RWBn8&pullRequest=1745

Check warning on line 271 in org.restlet.java/org.restlet/src/main/java/org/restlet/data/Conditions.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge this if statement with the enclosing one.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVKxHQKu3y-8RWBn6&open=AaIiVKxHQKu3y-8RWBn6&pullRequest=1745

Check warning on line 399 in org.restlet.java/org.restlet/src/main/java/org/restlet/data/Conditions.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename "modifiedSince" which hides the field declared at line 59.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVKxHQKu3y-8RWBn-&open=AaIiVKxHQKu3y-8RWBn-&pullRequest=1745

Check warning on line 27 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/util/DateUtilsTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove redundant visibility modifiers from the methods of this test class.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVK8yQKu3y-8RWBoJ&open=AaIiVK8yQKu3y-8RWBoJ&pullRequest=1745

Check warning on line 35 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/util/DateUtilsTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "DATE_RFC3339_4" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVK8yQKu3y-8RWBoD&open=AaIiVK8yQKu3y-8RWBoD&pullRequest=1745

Check warning on line 31 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/util/DateUtilsTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "DATE_RFC3339_2" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVK8yQKu3y-8RWBoB&open=AaIiVK8yQKu3y-8RWBoB&pullRequest=1745

Check warning on line 39 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/util/DateUtilsTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "DATE_ASC_1" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVK8yQKu3y-8RWBoF&open=AaIiVK8yQKu3y-8RWBoF&pullRequest=1745

Check warning on line 29 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/util/DateUtilsTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "DATE_RFC3339_1" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVK8yQKu3y-8RWBoA&open=AaIiVK8yQKu3y-8RWBoA&pullRequest=1745

Check warning on line 33 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/util/DateUtilsTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "DATE_RFC3339_3" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVK8yQKu3y-8RWBoC&open=AaIiVK8yQKu3y-8RWBoC&pullRequest=1745

Check warning on line 37 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/util/DateUtilsTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "DATE_RFC3339_5" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVK8yQKu3y-8RWBoE&open=AaIiVK8yQKu3y-8RWBoE&pullRequest=1745

Check failure on line 329 in org.restlet.java/org.restlet/src/main/java/org/restlet/data/Conditions.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

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

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVKxHQKu3y-8RWBn9&open=AaIiVKxHQKu3y-8RWBn9&pullRequest=1745

Check warning on line 45 in org.restlet.java/org.restlet/src/test/java/org/restlet/engine/util/DateUtilsTestCase.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this field "DATE_RFC822_1" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=restlet_restlet-framework-java&issues=AaIiVK8yQKu3y-8RWBoI&open=AaIiVK8yQKu3y-8RWBoI&pullRequest=1745