fcrespel / jenkins-cas-plugin

Jenkins CAS Plugin (personal repo)
https://github.com/jenkinsci/cas-plugin
MIT License
7 stars 23 forks source link

Upgrading to Jenkins 2.160 breaks CAS logins #9

Closed danschmidt5189 closed 5 years ago

danschmidt5189 commented 5 years ago

Upgrading to Jenkins 2.160 (from 2.159) causes CAS logins to fail with an infinite loop, as Jenkins does not respect the result of the authorization flow. To reproduce:

Note:

kgeis commented 5 years ago

I am having the same issue.

differences:

ToeBee commented 5 years ago

Same problem after after upgrading from 2.150.1 to 2.150.2 last night. The exchange goes like this:

I don't see anything happening in the Jenkins log file while this is going on.

fcrespel commented 5 years ago

Thanks for the notice. This issue is related to the SECURITY-901 fix in Jenkins. I'll try to implement the necessary adjustments in CAS plugin ASAP, until then you can either downgrade Jenkins or apply the workaround described in the Upgrade Guide.

ToeBee commented 5 years ago

Ah, the upgrade guide did not mention this when I looked yesterday. Unfortunately the workaround of setting that Java property does not seem to fix it for me. But we can stay at .1 for now.

ToeBee commented 5 years ago

Turns out, there was a typo in the property name on the release notes. Someone updated the wiki page and release notes and things are working for me on .2 now. Just need to remember to unset the property after the CAS plugin is updated :)

fcrespel commented 5 years ago

The fix for this issue is available in jenkinsci/cas-plugin#2, but before I release it could you please try the test build available on the CI server? (get cas-plugin.hpi, rename it to cas-plugin.jpi, put it in your Jenkins plugins folder and restart).

tanrobotix commented 5 years ago

@fcrespel I've tested. It's run OK. Thank you so much for you fixing. image Please release it in Jenkins Plugin market. Thank you

Wadeck commented 5 years ago

get cas-plugin.hpi, rename it to cas-plugin.jpi, put it in your Jenkins plugins folder and restart

Not even required to rename, the hpi files are also correctly handled :)

fcrespel commented 5 years ago

Thanks for the feedback, CAS plugin version 1.4.3 is now released. It may take a few hours to appear in the Update Center, until then you can grab it from the Maven repository.