New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use a different policy for property overrides #22
Conversation
Normally in the `Environment` it is better to let user-defined properties take precedence, rather than trying to simply omit them. This change makes the `ClientSecurityAutoConfiguration` rely on that existing feature, rather than trying to inspect the property sources manually and add guess which properties are set. See spring-projects#21
2 things:
Having stated the above, my changes are still more appropriate then the changes proposed in this PR. |
Feel free to ignore this change. You have something that works for you apparently. I was just trying to clarify the analysis. I’m pretty sure nothing is discarded in Spring Cloud, but if you have a more focused test case that shows only that aspect of your analysis, please open or attach to an issue in spring cloud commons. |
Thank you @dsyer. Yep, I continued to work with @spencergibb yesterday in Slack to dig a bit deeper/perform more analysis. I was able to reproduce this problem without SBDG on the classpath, in this little example/test application. I added a comment with this example/test to SCC Issue-476. @spencergibb also wrote an example/test that he was able to use to reproduce the problem. He also verified his fix (PR-480) resolved the issue for both his and my example/test as well as SBDG. I think we are all good. @wxlund - FYI ^^^^ |
Closing for the time being. May consider these changes at a later time. |
Normally in the
Environment
it is better to let user-definedproperties take precedence, rather than trying to simply omit
them. This change makes the
ClientSecurityAutoConfiguration
relyon that existing feature, rather than trying to inspect the property
sources manually and add guess which properties are set.
See #21