[hibernate-issues] [JIRA] (HV-1780) Add @Normalized contraint that validates if text is normalized in a given form

Craig Andrews (JIRA) jira at hibernate.atlassian.net
Tue May 19 17:12:21 EDT 2020


Craig Andrews ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Acfd6dc5b-301f-43d0-9556-091eb120877e ) *created* an issue

Hibernate Validator ( https://hibernate.atlassian.net/browse/HV?atlOrigin=eyJpIjoiMzA2MzNiYjMyNDhmNGYwYWI4YTVlYmQwNzc1MjI5M2IiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HV-1780?atlOrigin=eyJpIjoiMzA2MzNiYjMyNDhmNGYwYWI4YTVlYmQwNzc1MjI5M2IiLCJwIjoiaiJ9 ) HV-1780 ( https://hibernate.atlassian.net/browse/HV-1780?atlOrigin=eyJpIjoiMzA2MzNiYjMyNDhmNGYwYWI4YTVlYmQwNzc1MjI5M2IiLCJwIjoiaiJ9 ) Add @Normalized contraint that validates if text is normalized in a given form ( https://hibernate.atlassian.net/browse/HV-1780?atlOrigin=eyJpIjoiMzA2MzNiYjMyNDhmNGYwYWI4YTVlYmQwNzc1MjI5M2IiLCJwIjoiaiJ9 )

Issue Type: Bug Affects Versions: 6.1.5.Final Assignee: Unassigned Components: engine Created: 19/May/2020 14:12 PM Priority: Major Reporter: Craig Andrews ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Acfd6dc5b-301f-43d0-9556-091eb120877e )

I propose the addition of `@Normalized` that validates that a character sequence is normalized to a given form.

It can be important to check normalization as part of validation to ensure that further validation works as expected.

References:

* https://docs.oracle.com/javase/7/docs/api/java/text/Normalizer.html#isNormalized(java.lang.CharSequence,%20java.text.Normalizer.Form )
* https://www.informit.com/articles/article.aspx?p=1751371&seqNum=4
* https://wiki.sei.cmu.edu/confluence/display/java/IDS01-J.+Normalize+strings+before+validating+them

( https://hibernate.atlassian.net/browse/HV-1780#add-comment?atlOrigin=eyJpIjoiMzA2MzNiYjMyNDhmNGYwYWI4YTVlYmQwNzc1MjI5M2IiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HV-1780#add-comment?atlOrigin=eyJpIjoiMzA2MzNiYjMyNDhmNGYwYWI4YTVlYmQwNzc1MjI5M2IiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100126- sha1:09684e9 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200519/bef5ce4b/attachment.html 


More information about the hibernate-issues mailing list