-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Colin,

On 6/14/14, 10:05 AM, Colin Ingarfield wrote:
> On Fri, Jun 13, 2014 at 4:39 PM, Christopher Schultz 
> <ch...@christopherschultz.net> wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
>> 
>> James,
>> 
>> On 6/13/14, 4:11 PM, James H. H. Lampert wrote:
>>> When this thread first came up, I tried one obvious approach: 
>>> creating a symbolic link in the file system, mapping a new 
>>> directory name into an existing context's directory.
>>> 
>>> It didn't work.
>> 
>> If it did work, what you'd end up with is double-deployment,
>> which is something the OP wanted to avoid.
>> 
>> If the lb is the problem, the solution is to make the canonical
>> "name" of the application one that does not include an
>> underscore. Then, use something like url-rewrite (or, even
>> better, do it at the lb) to *redirect* users permanently from the
>> "old" URL space to the new URL space.
>> 
>> Or, just get a load-balancer that doesn't fall-over when you
>> have underscores in your URLs. That's just plain bad software.
>> :(
>> 
>> - -chris
> 
> I couldn't agree more re "bad software" and I'll go ahead and name 
> names.  It's an Amazon "elastic load balancer".  It's configured
> to provide session affinity using the JSESSIONID cookie.  When
> tomcat sets the JSESSIONID it uses "path=/the_context".  The ELB
> then sets its AWSELB cookie with "path=/the%5Fcontext".  I don't
> know if that's valid per the cookie "spec", but that doesn't matter
> b/c neither Firefox nor Chrome will return the AWSELB cookie w/ the
> underscore encoded like that.  This of course breaks the session
> affinity causing all sorts of annoying problems.
> 
> I may open an issue w/ Amazon about it, but there is no telling
> when (if) they'd bother to fix it.  So I'm pursing other options as
> well.

Interesting. I've never used ELB's sticky-session features. It's good
to know there is a potential problem. Do you have a reference to a
publicly-accessible bug report? I'd like to read it if possible.

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJToFR7AAoJEBzwKT+lPKRYIccQAIFqbG2gxlbUxPD5QQ/RXcix
YjADpZ4+RshfK2d34xdYD9En1nupU1u1cUz2UEvNc/ua3AaxbPak3fux7Nw1FFLO
DV+BGppHg2+cG741W8MpnGIOCxkvqU7NwpIjD5VIdHrfT5C/m2XVxXKwLrQDHAaN
Ve8QSqZ+RoNLJmXuBMkqyMWFJ6xCAOmzNgsVHSXoCKPoPElWnBayi3+HRr1iYCtF
i7l8a10zgAJWYTbtB5Jh/gXP09S6ZoBW59bmQojUP9Wh6YtDOYnRiSUulUY7FI1c
twZejEt2lM4KvjegsW9xS7z79jKVIPp3orO/lX7wmXs5kXKwV856lTEH8NkYb/qY
0ETZLFQ3NVDFdF+X+SkL7FaN56Jiok6WmFZ4/MiFpYXaQ41TcT0soNrgccFhoLUo
fHj554GIP8Lwnuczyp3u5nRZzPnfZt6AvYz7S8eDzeKe4xnanX7gUld2nTnrOCAt
jhDK3i98h8KTk0BXAb66CWN+qg+wStV6rdhnsgErbb+1sklValBVpyne+NOH4AnV
kUQgHkTMX+NT77CMCyw7Yphq0iHIMSM2Ntp4Jt1hlkfyMr9/0Mx9ri1Au7H8eVqL
/IcND588/shMqlTcfthz8N4La0fEcGrHNCWXvis6+hJXvaeebOcs/zS2WTMxKdLQ
iWANIz0YBecweiCaMRql
=yCVC
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to