See https://github.com/spring-projects/spring-boot/issues/25848 for some background. As far as I can see, the reference documentation does not mention that spring.profiles.active
is invalid in a profile-specific configuration file. It's mentioned on the wiki, but I think we should mention it and any other potential triggers of an InvalidConfigDataPropertyException
in the reference documentation.
Comment From: robert-smith-911
@wilkinsona Something I could look at?
Comment From: wilkinsona
Sorry for the delay, @robert-smith-911. I missed the notification for your comment. If you're still interested in looking at this, that'd be much appreciated. Thank you.
Comment From: robert-smith-911
@wilkinsona Sure I'll take a look, thanks. What part of the docs should this go?
Comment From: wilkinsona
I think I'd put the bulk of the changes here and then perhaps also mention the restriction at the end of section 4.3.
Comment From: robert-smith-911
@wilkinsona Got swamped, but looking to have this finished up over the weekend
Comment From: wilkinsona
No worries, @robert-smith-911. Whenever you're ready.
Comment From: robert-smith-911
@wilkinsona So it seems just from this issue (and some Googling) that I've really only found a handful of potential triggers of an InvalidConfigDataPropertyException. Is there somewhere specific I could be looking?
Comment From: wilkinsona
There’s no one specific place. If it were me, I’d use my IDE to identify everywhere that InvalidConfigDataPropertyException
is thrown and work out the different causes from there.
Comment From: robert-smith-911
@wilkinsona ok great thanks
Comment From: robert-smith-911
@wilkinsona My apologies, sorry to say just too swamped to finish this one 😢 hopefully this summer I can jump back in and contribute some more fixes.
Comment From: snicoll
No worries and thanks for letting us know.