[ 
https://issues.apache.org/jira/browse/WW-5579?focusedWorklogId=987680&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-987680
 ]

ASF GitHub Bot logged work on WW-5579:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Oct/25 08:23
            Start Date: 17/Oct/25 08:23
    Worklog Time Spent: 10m 
      Work Description: sonarqubecloud[bot] commented on PR #1390:
URL: https://github.com/apache/struts/pull/1390#issuecomment-3414388491

   ## [![Quality Gate 
Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png
 'Quality Gate 
Passed')](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1390) 
**Quality Gate passed**  
   Issues  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 New 
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=1390&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png
 '') [0 Accepted 
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=1390&issueStatuses=ACCEPTED)
   
   Measures  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=1390&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [83.3% Coverage on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1390&metric=new_coverage&view=list)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0.0% Duplication on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1390&metric=new_duplicated_lines_density&view=list)
  
     
   [See analysis details on SonarQube 
Cloud](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1390)
   
   




Issue Time Tracking
-------------------

    Worklog Id:     (was: 987680)
    Time Spent: 20m  (was: 10m)

> @DoubleRangeFieldValidator and @ShortRangeFieldValidator missing from 
> @Validations container annotation
> -------------------------------------------------------------------------------------------------------
>
>                 Key: WW-5579
>                 URL: https://issues.apache.org/jira/browse/WW-5579
>             Project: Struts 2
>          Issue Type: Dependency
>          Components: Annotations
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Major
>             Fix For: 7.2.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The @Validations container annotation does not include fields for 
> {{@DoubleRangeFieldValidator}} and {{@ShortRangeFieldValidator}}, making it 
> impossible to use multiple instances of these validators within a single 
> {{@Validations}} annotation.
> Current State:
>  - {{@Validations}} includes: {{intRangeFields}}, {{longRangeFields}}, 
> {{dateRangeFields}}
>  - {{@Validations}} missing: {{doubleRangeFields}}, {{shortRangeFields}}
> Expected Behavior:
> Developers should be able to use {{@DoubleRangeFieldValidator}} and 
> {{@ShortRangeFieldValidator}} within {{@Validations}} container, similar to 
> other range validators:
> {code:java}
>   @Validations(
>       intRangeFields = {@IntRangeFieldValidator(...)},
>       longRangeFields = {@LongRangeFieldValidator(...)},
>       doubleRangeFields = {@DoubleRangeFieldValidator(...)},  // NOT AVAILABLE
>       shortRangeFields = {@ShortRangeFieldValidator(...)}     // NOT AVAILABLE
>   )
> {code}
> Impact:
> Users must scatter double/short range validations across XML configuration or 
> use standalone annotations, breaking consistency with other validators.
> Note:
>  - Both validators work correctly when used as standalone annotations 
> (directly on methods)
>  - JavaDoc in Validations.java:136 incorrectly shows shortRangeFields in 
> example
>  - Processing infrastructure exists in 
> AnnotationValidationConfigurationBuilder 
> (processDoubleRangeFieldValidatorAnnotation(), 
> processShortRangeFieldValidatorAnnotation())
>   - Related historical issues: WW-4004, WW-4011 improved these annotations 
> but didn't add container support
>   Files Affected:
>   - 
> core/src/main/java/org/apache/struts2/validator/annotations/Validations.java
>   - 
> core/src/main/java/org/apache/struts2/validator/AnnotationValidationConfigurationBuilder.java



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to