You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Dirk Rudolph (Jira)" <ji...@apache.org> on 2022/06/08 07:51:00 UTC
[jira] [Created] (SLING-11383) Configuration API fails validation of internal names with LENIENT mode
Dirk Rudolph created SLING-11383:
------------------------------------
Summary: Configuration API fails validation of internal names with LENIENT mode
Key: SLING-11383
URL: https://issues.apache.org/jira/browse/SLING-11383
Project: Sling
Issue Type: Bug
Components: Feature Model Analyser
Affects Versions: Feature Model API Regions Extension 1.6.0
Reporter: Dirk Rudolph
Consider the following configuration-api
{code}
"configuration-api:JSON": {
"factory-configurations": {
"my.service.pid": {
"mode": "LENIENT",
"region": "GLOBAL",
"internal-names": [
"default"
]
}
}
{code}
As a user I would expect to get a warning when I have a configuration {{my.service.pid~default}} in my project, but the actual result is an error.
{code}
Configuration my.service.pid~default: Factory configuration with name is not allowed
{code}
The reason for that is that the [FeatureValidator|https://github.com/apache/sling-org-apache-sling-feature-extension-apiregions/blob/org.apache.sling.feature.extension.apiregions-1.6.0/src/main/java/org/apache/sling/feature/extension/apiregions/api/config/validation/FeatureValidator.java#L156] does not use the configuration description's validation mode but the one of the ConfigurationApi.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)