Project: mule
Issue MULE-8053: CheckExclusiveAttributes should ignore documentation namespace
Classes like org.mule.config.spring.factories.AggregationStrategyDefinitionParser register the pre processor: org.mule.config.spring.parsers.processors.CheckExclusiveAttribute Now this preprocessor validates that only one attribute is present in this element. While this implementation seems o be correct it also stops me from adding any other attribute even though it belongs to a different namespace. For instance: This definition fails and I'm only adding an doc:name. Here is the exception : org.mule.module.launcher.DeploymentInitException: CheckExclusiveAttribute.CheckExclusiveAttributeException: The attribute 'class' cannot appear with the attribute 'name' in element custom-aggregation-strategy{class=org.mule.munit.CustomAggregationStrategy, name=lalala}. org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:181) org.mule.module.launcher.artifact.ArtifactWrapper$2.execute(ArtifactWrapper.java:62) org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader(ArtifactWrapper.java:129) org.mule.module.launcher.artifact.ArtifactWrapper.init(ArtifactWrapper.java:57) org.mule.module.launcher.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:25) org.mule.module.launcher.DefaultArchiveDeployer.guardedDeploy(DefaultArchiveDeployer.java:274) org.mule.module.launcher.DefaultArchiveDeployer.deployArtifact(DefaultArchiveDeployer.java:294) org.mule.module.launcher.DefaultArchiveDeployer.deployExplodedApp(DefaultArchiveDeployer.java:261) org.mule.module.launcher.DefaultArchiveDeployer.deployExplodedArtifact(DefaultArchiveDeployer.java:110) org.mule.module.launcher.DeploymentDirectoryWatcher.deployExplodedApps(DeploymentDirectoryWatcher.java:287) org.mule.module.launcher.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:148) org.mule.tooling.server.application.ApplicationDeployer.main(ApplicationDeployer.java:130) Please check attached the full xml to reproduce. Could you please modify the implementation of CheckExclusiveAttribute to support this?
Story points: 3