[JIRA] (JJDBC-12) Context Size claims to be too small for StorageBackedSessionManager

Rod Widdowson (Jira) jira at shibboleth.atlassian.net
Sun Jul 10 14:52:59 UTC 2022


Rod Widdowson ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=59fb32bbc24efb3c4ed3c977 ) *commented* on JJDBC-12 ( https://shibboleth.atlassian.net/browse/JJDBC-12?atlOrigin=eyJpIjoiMDMyYzFhMWIwODdkNDgxMzg3Y2YzNjY0OWZmZTViZGEiLCJwIjoiaiJ9 )

Re: Context Size claims to be too small for StorageBackedSessionManager ( https://shibboleth.atlassian.net/browse/JJDBC-12?atlOrigin=eyJpIjoiMDMyYzFhMWIwODdkNDgxMzg3Y2YzNjY0OWZmZTViZGEiLCJwIjoiaiJ9 )

This appears (modulo a glitch in my HSQLDB config where I had value as varchar(255) and it needed to be clob

My fix is not correct however since I am setting the value in doInitialize the correct solution is to

* Set the context, key and value sizes up (to 255, 255 & Integer.MAX_VALUE ) in the constructor
* Document the keySize , contextSize & valueSize setters (so people can set their configuration to match the SQL). It might be magical to query the database for these values, but life is too short (isn’t it?)
* Do NOT set any of these values in the doInitialize so that Spring configuration trumps the defaukt.

But that can all wait for tomorrow.

( https://shibboleth.atlassian.net/browse/JJDBC-12#add-comment?atlOrigin=eyJpIjoiMDMyYzFhMWIwODdkNDgxMzg3Y2YzNjY0OWZmZTViZGEiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/JJDBC-12#add-comment?atlOrigin=eyJpIjoiMDMyYzFhMWIwODdkNDgxMzg3Y2YzNjY0OWZmZTViZGEiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100202- sha1:a3e9824 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20220710/f3bc9d08/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-c2f86ab9-b3ee-45d8-b7b0-e297e3658ab5
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220710/f3bc9d08/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-02aede52-fb62-4906-89e0-bdb4827d16fa
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220710/f3bc9d08/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-69ef1d8f-e708-4fe1-a205-8087d92a2c17
Type: image/png
Size: 468 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220710/f3bc9d08/attachment-0005.png>


More information about the commits mailing list