• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: StringIndexOutOfBoundsException and cookies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: StringIndexOutOfBoundsException and cookies


  • Subject: Re: StringIndexOutOfBoundsException and cookies
  • From: Kaj Hejer <email@hidden>
  • Date: Mon, 19 Jan 2004 23:36:59 +0100

At 14:20 -0800 19-01-04, Chuck Hill wrote:
Hi Kaj,

Try this:

The easiest fix is as follows, in Application.java:

public WOResponse dispatchRequest(WORequest request) {
    String cookieHeader = request.headerForKey("cookie");
    if (cookieHeader != null && /* cookie not ok */) {
        String newCookie = /* Fix cookie here */;
        request.setHeader(URLEncoder.encode(newCookie, "cookie");
    }
    return super.dispatchRequest(request);
}



Hi!

Thanks for answering!

I saw something like that in the WO5.1 releasenotes (?).

The hard part here is to write a good /* cookie not ok */ and /* Fix cookie here */ code :)

Do you think setting WOAcceptMalformedCookies to true make the StringIndexOutOfBoundsException go away?


-Kaj :) _______________________________________________ webobjects-dev mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: StringIndexOutOfBoundsException and cookies
      • From: Chuck Hill <email@hidden>
References: 
 >StringIndexOutOfBoundsException and cookies (From: Kaj Hejer <email@hidden>)
 >Re: StringIndexOutOfBoundsException and cookies (From: arturo <email@hidden>)
 >Re: StringIndexOutOfBoundsException and cookies (From: Kaj Hejer <email@hidden>)
 >Re: StringIndexOutOfBoundsException and cookies (From: Chuck Hill <email@hidden>)

  • Prev by Date: RE: Newbiw question: adding EOModel to project
  • Next by Date: Re: StringIndexOutOfBoundsException and cookies
  • Previous by thread: Re: StringIndexOutOfBoundsException and cookies
  • Next by thread: Re: StringIndexOutOfBoundsException and cookies
  • Index(es):
    • Date
    • Thread