Commit 0be192c 1 parent 05b8961 commit 0be192c Copy full SHA for 0be192c
File tree 1 file changed +8
-1
lines changed
app/src/main/java/io/apicurio/registry/rest/v2
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -517,11 +517,18 @@ private ConfigurationProperty defToConfigurationProperty(DynamicConfigPropertyDe
517
517
* @return the dynamic config property definition
518
518
*/
519
519
private DynamicConfigPropertyDef resolveConfigProperty (String propertyName ) {
520
- propertyName = registryAuthPropertyToApp (propertyName );
521
520
DynamicConfigPropertyDef property = dynamicPropertyIndex .getProperty (propertyName );
521
+
522
+ if (property == null ) {
523
+ propertyName = registryAuthPropertyToApp (propertyName );
524
+ }
525
+ //If registry property cannot be found, try with app property
526
+ property = dynamicPropertyIndex .getProperty (propertyName );
527
+
522
528
if (property == null ) {
523
529
throw new ConfigPropertyNotFoundException (propertyName );
524
530
}
531
+
525
532
if (!dynamicPropertyIndex .isAccepted (propertyName )) {
526
533
throw new ConfigPropertyNotFoundException (propertyName );
527
534
}
You can’t perform that action at this time.
0 commit comments