identifyException accidentally externalized as unusable top level config element #17591
Labels
design-issue
release bug
This bug is present in a released version of Open Liberty
release:21009
team:Zombie Apocalypse
Projects
Milestone
identifyException was intended to be available only as a nested element of dataSource,
When I went to promote this nested element from nonship to beta, I discovered that due to the way in which the metatype was written, the developer had accidentally exposed identifyException as an unusable top level element, which made it into Open Liberty doc. See https://openliberty.io/docs/21.0.0.1/reference/config/identifyException.html
This means that a user could currently write the following as valid top level config, which would be a no-op because it doesn't apply to anything:
Options:
identifyException
as top level config and add an exclude to the MetaTypeValidator. This shouldn't cause any real errors because the top level element never did anything in the first place, although schema-based config editors would now start noticing it as bad config, which in a way is helpful because it would inform users that their top levelidentifyException
doesn't do anything.identifyException
as useless top level config, which the server will continue to ignore. The usability problem of having a useless configuration element will remain.identifyException
as top level config and come up with a way to make it useful by giving dataSource an identifyExceptionRef attribute. This complicates the configuration somewhat, but at least has a valid use case behind it. It would unfortunately force us to switch away from the flattened config optimization for identifyException.Preferred option 1 was approved by the POC.
The text was updated successfully, but these errors were encountered: