When attempting to login to a SAML SP on F22 Alpha (which has python-cherrypy-3.5.0), a 500 error will be encountered on Ipsilon (using 0.4.0). Turning on debug logging shows this:
[Wed Mar 11 22:18:25.576819 2015] [wsgi:error] [pid 5209] [11/Mar/2015:22:18:25] DEBUG(ipsilon/login/common.py:90 LoginManager.auth_successful()): Redirecting back to: /idp/saml2/SSO/Continue?ipsilon_transaction_id=c92a71c3-b2e3-4bf9-afe5-81494fab8136 [Wed Mar 11 22:18:25.578050 2015] [wsgi:error] [pid 5209] [11/Mar/2015:22:18:25] Traceback (most recent call last): [Wed Mar 11 22:18:25.578133 2015] [wsgi:error] [pid 5209] File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 104, in run [Wed Mar 11 22:18:25.578209 2015] [wsgi:error] [pid 5209] hook() [Wed Mar 11 22:18:25.578258 2015] [wsgi:error] [pid 5209] File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 63, in __call__ [Wed Mar 11 22:18:25.578321 2015] [wsgi:error] [pid 5209] return self.callback(**self.kwargs) [Wed Mar 11 22:18:25.578398 2015] [wsgi:error] [pid 5209] File "/usr/lib/python2.7/site-packages/cherrypy/lib/sessions.py", line 784, in save [Wed Mar 11 22:18:25.578465 2015] [wsgi:error] [pid 5209] cherrypy.session.save() [Wed Mar 11 22:18:25.578520 2015] [wsgi:error] [pid 5209] File "/usr/lib/python2.7/site-packages/cherrypy/lib/sessions.py", line 253, in save [Wed Mar 11 22:18:25.578579 2015] [wsgi:error] [pid 5209] self._save(expiration_time) [Wed Mar 11 22:18:25.578633 2015] [wsgi:error] [pid 5209] File "/usr/lib/python2.7/site-packages/cherrypy/lib/sessions.py", line 515, in _save [Wed Mar 11 22:18:25.578687 2015] [wsgi:error] [pid 5209] assert self.locked, ("The session was saved without being locked. " [Wed Mar 11 22:18:25.578740 2015] [wsgi:error] [pid 5209] AssertionError: The session was saved without being locked. Check your tools' priority levels.
I believe that this is due to the following issue, which didn't exist in cherrypy versions < 3.3.0 (F21 is on 3.2.x):
https://bitbucket.org/cherrypy/cherrypy/issue/1345/cant-explicitly-release-filesessions
This issue ticket was originally removed from the tracker as it clashed with the pull request. See upstream ticket for migration details.
Metadata Update from @t0xic0der: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)