<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>We&#39;re running into an issue where the session key being issued is too long for the spy memcache implementation:<br></div><div><br></div><div><div>11:53:07.995 - XXX.XXX.XXX.XXX - DEBUG [unimr.shib2.UniMrMemcachedStorageService:133] - storageService.get( replay, <a href="https://example.my.salesforce.com_2yXH_BiHmM6_STHvAyHiYsM8z6yLR4HP_lA94lj5IXktcoEq2dWTsKnS6iaJCKk1MPWSgcGpKraOAuPiOeMwNFQ2Rqdcy3exaDZSZAj8DodV7BnAt6ea8PJaEjEdblkhtsOQjMfvBDEBreKjFb7I3bIBKPPKdhpVhu3kdzZlagX7BTxDFY0s2B8lJsULn6jgfBhj9cq9epgOSIookTzaKlADAZfCFow" target="_blank" rel="noreferrer">https://example.my.salesforce.com_2yXH_BiHmM6_STHvAyHiYsM8z6yLR4HP_lA94lj5IXktcoEq2dWTsKnS6iaJCKk1MPWSgcGpKraOAuPiOeMwNFQ2Rqdcy3exaDZSZAj8DodV7BnAt6ea8PJaEjEdblkhtsOQjMfvBDEBreKjFb7I3bIBKPPKdhpVhu3kdzZlagX7BTxDFY0s2B8lJsULn6jgfBhj9cq9epgOSIookTzaKlADAZfCFow</a>) called.</div><div>11:53:08.012 - XXX.XXX.XXX.XXX - ERROR [edu.internet2.middleware.shibboleth.common.profile.ProfileRequestDispatcherServlet:88] - Error occurred while processing request</div><div>java.lang.IllegalArgumentException: Key is too long (maxlen = 250)</div></div></div></blockquote><div><br></div><div>Somewhat off-topic, but I wanted to mention that IdPv3 has explicit support for StorageService keys over 250 bytes. At the time I was surprised to learn that 250-byte keys are defined by the memcached protocol [1], so it&#39;s a pretty well-defined limit in the service.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Can the keys be reduced in length (via hashing?) before they&#39;re sent to the storage service?</div></div></blockquote><div><br></div><div>That was the approach that I took with the v3 component. Maybe looking at the approach there could help with backporting the feature?</div><div><br></div><div>M</div><div><br></div><div>[1] <a href="https://github.com/memcached/memcached/blob/master/doc/protocol.txt">https://github.com/memcached/memcached/blob/master/doc/protocol.txt</a>, &quot;Keys&quot; section</div><div><br></div></div>