Skip to content

zzcoder/spring-validation-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

A Spring Boot Application to Demonstrate Bug in Validation

Just upgraded Spring Boot from 2.1.4.RELEASE to 2.2.5.RELEASE and my application.yml doesn't validate any longer.

For example, in this yaml, the itemOne works in previous version but fails validation now.

test:
  items:
    itemOne:
      COLOR: RED
    ITEM2:
      COLOR: BLUE

It seems any nested map key with uppercase letters will fail. Tried to debug and found getName() in ValidationBindHandler mangles the key into

test.items[item-one].color
test.items[-i-t-e-m2].color

This is apparently incorrect.

About

A unit test to demonstrate Spring Boot validation bug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages