Closed joemccall86 closed 5 years ago
May be related to https://github.com/grails-plugins/grails-spring-security-core/issues/492
It looks like the bug resides in grails core.
I've created a new issue in grails-core to fix the bug: https://github.com/grails/grails-core/issues/11042
Example application:
https://github.com/joemccall86/config-parse-test
I have configuration in
application.yml
that sets a value to'${MY_APP_VALUE:default_value}'
. When I include the plugin in my application, my service class thatimplements GrailsConfigurationAware
reads the value incorrectly.Expected: both
co.getProperty('myApp.value')
andco.myApp.value
return'default_value'
Actual:co.getProperty('myApp.value')
returns the literal string'${MY_APP_VALUE:default_value}'
whileco.myApp.value
returns'default_value'
I'm not exactly sure what in the plugin would be causing this. I did notice if I set
grails.plugin.springsecurity.active: false
inapplication.yml
it works as expected, but if I setgrails.plugin.springsecurity.oauthProvider.active: false
it exhibits the broken behavior. I suspect the culprit is inSpringSecurityOauth2ProviderGrailsPlugin.groovy:589
where the secondary config is loaded.