You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by jubax <ba...@semedy.com> on 2019/08/01 14:20:11 UTC

Re: ArrayIndexOutOfBoundsException in CookieRememberMeManager.getRememberedSerializedIdentity

Brian Demers wrote
> It sounds like you have two conflicting versions of a remember me manager
> in your applications?
> 
> They each format the cookie differently, and this causes the stock
> RememberMeManager to throw an exception.
> If this assumption _is_ correct Shiro should probably log and ignore this
> exception and NOT fail.
> 
> Can you provide an example of your request/response headers that is
> causing
> this issue? (that should make it easy to write a test)

In the meantime I made sure that our two applications are installed on
separate servers. After that I tested only the old application. But the
ArrayIndexOutOfBoundsException still occured. Then I deleted the
corresponding cookies in my browser (I probably should have checked
request/response headers before doing that). After that the error did not
occur anymore.

Right now I cannot change the application setup in order to reproduce the
error, but I plan to do so in the next few weeks.



--
Sent from: http://shiro-user.582556.n2.nabble.com/

Re: ArrayIndexOutOfBoundsException in CookieRememberMeManager.getRememberedSerializedIdentity

Posted by Brian Demers <br...@gmail.com>.
Thanks for the update, keep us posted!

On Thu, Aug 1, 2019 at 10:20 AM jubax <ba...@semedy.com> wrote:

> Brian Demers wrote
> > It sounds like you have two conflicting versions of a remember me manager
> > in your applications?
> >
> > They each format the cookie differently, and this causes the stock
> > RememberMeManager to throw an exception.
> > If this assumption _is_ correct Shiro should probably log and ignore this
> > exception and NOT fail.
> >
> > Can you provide an example of your request/response headers that is
> > causing
> > this issue? (that should make it easy to write a test)
>
> In the meantime I made sure that our two applications are installed on
> separate servers. After that I tested only the old application. But the
> ArrayIndexOutOfBoundsException still occured. Then I deleted the
> corresponding cookies in my browser (I probably should have checked
> request/response headers before doing that). After that the error did not
> occur anymore.
>
> Right now I cannot change the application setup in order to reproduce the
> error, but I plan to do so in the next few weeks.
>
>
>
> --
> Sent from: http://shiro-user.582556.n2.nabble.com/
>