cas initializr latest build using wrong springboot version?

98 views
Skip to first unread message

Nathan Lewan

unread,
Aug 16, 2022, 10:04:10 AM8/16/22
to CAS Community
hello all,

thanks for all the work you do with this. truly awesome.

I have been chugging away at a 6.5.6 build, and yesterday wiped out the overlay and downloaded a fresh one of cas 6.5.6 and cas-management 6.5.5.

when I went to build all was good, when I went to launch in an external tomcat container, all heck broke loose.

I noticed that the gradle.properties file for both cas and cas-management has changed to 2.7.2, from 2.6.3 by default. If I flip back to 2.6.3 things behave better. I still have issues, but i'm assuming that's my bad at the moment. 

when I run the 
curl https://casinit.herokuapp.com/actuator/supportedVersions | jq

it still lists spring boot 2.6.3 as the compatible boot version.

am I doing something incorrect.

thanks!

Nathan Lewan

unread,
Aug 16, 2022, 10:06:03 AM8/16/22
to CAS Community, Nathan Lewan
sorry, that was not welll written

"I noticed that the gradle.properties file for both cas and cas-management has changed to 2.7.2, from 2.6.3 by default. If I flip back to 2.6.3 things behave better. I still have issues, but i'm assuming that's my bad at the moment."

should be

I noticed that the spring boot version in the gradle.properties file for both cas and cas-management has changed to 2.7.2, from 2.6.3 by default when using initializr. If I flip back to 2.6.3 and rebuild, things behave better. I still have issues, but i'm assuming that's my bad at the moment. 

Misagh

unread,
Aug 16, 2022, 10:15:12 AM8/16/22
to CAS Community
That is not your bad, if it is as you report it. I am sure I messed
something up. Will look into it a bit later. Thanks for sharing.
> --
> - Website: https://apereo.github.io/cas
> - Gitter Chatroom: https://gitter.im/apereo/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> You received this message because you are subscribed to the Google Groups "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
> To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/9f3b502d-4ca0-4215-8ff1-b37e9997740dn%40apereo.org.

Nathan Lewan

unread,
Aug 16, 2022, 12:25:33 PM8/16/22
to cas-...@apereo.org
I've just hard-coded the springboot version into my call to the initializr, and it's happy now. Let me know if you need another set of eyeballs to test something, if you end up needing to make a change.

Thanks for all your hard work.

Misagh

unread,
Aug 16, 2022, 12:45:13 PM8/16/22
to CAS Community
All overlays look good, and have the appropriate versions. You'll need
to produce a reproducer (not just a description, but an actual
executable reproducer).
> To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CABeAwj%3D45awmT0n8Jm-J_8CuEwNA3HYwZvD%2BROE1E3xxgYempA%40mail.gmail.com.

Jonathan MacDonald

unread,
Aug 17, 2022, 9:37:15 PM8/17/22
to CAS Community, Misagh Moayyed
Firstly, I want to also mention how much I appreciate the work that's been done.  Thank you so much!

I believe the following will explain what Nathan ran into.  I struggled with this myself, literally just yesterday...

# query 'supportedVersions', cas version 6.5.8 indicates that the boot version should be at 2.6.3
curl https://casinit.herokuapp.com/actuator/supportedVersions | jq

# lets test this...
mkdir test-initializr
cd test-initializr

# post to initializer casVersion 6.5.8 and do not specify 'bootVersion'
curl -d type=cas-overlay -d baseDir=./springboot-not-specified -d casVersion=6.5.8 https://casinit.herokuapp.com/starter.tgz | tar -xzvf -

# post to intializer casVersion 6.5.8, this time specifying 'bootVersion'
curl -d type=cas-overlay -d baseDir=./springboot-specified -d casVersion=6.5.8 -d bootVersion=2.6.3 https://casinit.herokuapp.com/starter.tgz | tar -xzvf -

# do a diff on gradle.properties
diff springboot-not-specified/gradle.properties springboot-specified/gradle.properties

For me, the diff results in the following:
< springBootVersion=2.7.2
---
> springBootVersion=2.6.3


Is this intended behaviour?  It appears that one has to specify the bootVersion in order to get the correct version.

Thanks again!

Misagh

unread,
Aug 18, 2022, 8:52:27 AM8/18/22
to CAS Community
> Is this intended behaviour? It appears that one has to specify the bootVersion in order to get the correct version.

No, this is a problem for sure. One should never have to specify the
boot version. Looks like it might be defaulting to the latest boot
version, as opposed to using what is declared as required/supported.

Nathan Lewan

unread,
Aug 29, 2022, 2:17:14 PM8/29/22
to cas-...@apereo.org
Sorry for not replying, yes this is what I was seeing as well. Manually defining it has resolved this for me. Thanks Jonathan for doing the extra legwork that I did not do.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.

Misagh

unread,
Aug 29, 2022, 2:45:31 PM8/29/22
to CAS Community
Reply all
Reply to author
Forward
0 new messages