]
Dan Berindei updated ISPN-12592:
--------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
Improve error message when XML element is removed
-------------------------------------------------
Key: ISPN-12592
URL:
https://issues.redhat.com/browse/ISPN-12592
Project: Infinispan
Issue Type: Enhancement
Components: Configuration, Core
Affects Versions: 12.0.0.Dev07
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Fix For: 12.0.0.CR1
When an element is removed from the XML configuration schema, configurations using the
old XML namespace trigger a warning that the element is deprecated, including the name of
the replacement element.
Configurations files with no namespace declarations are assumed to be using the latest
schema and don't trigger the warning, instead they trigger a generic `Unexpected
element 'X' encountered` exception.
Assuming the latest schema is the right thing to do, but we need to improve the error
message for upgraders.