[jboss-jira] [JBoss JIRA] (WFCORE-3887) Smarter range validation error messages

Michal Petrov (Jira) issues at jboss.org
Tue Mar 19 13:49:00 EDT 2019


    [ https://issues.jboss.org/browse/WFCORE-3887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13710520#comment-13710520 ] 

Michal Petrov commented on WFCORE-3887:
---------------------------------------

[~brian.stansberry] is this still needed? The error message with this wording (WFLYCTL0107) is not in use as far as I can tell. The error messages used in Int/LongRangeValidator are "A minimum/maximum value of %d is required".

> Smarter range validation error messages
> ---------------------------------------
>
>                 Key: WFCORE-3887
>                 URL: https://issues.jboss.org/browse/WFCORE-3887
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: Management
>            Reporter: Brian Stansberry
>            Priority: Minor
>
> A message like this is kind of silly: "Value must be between 0 and 9007199254740991".
> Smarter would be the ParameterValidator code that detects the message checking if the range max is Integer.MAX_INT (for an int) or Long.MAX_LONG (for a long) and if the bad value is below the max, just saying the equivalent of "Value must be greater than %d".



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list