Looks like someone reversed the order of the arguments to NSDictionary.setObjectForKey.
On Wed, Dec 19, 2012 at 10:06 AM, Calven Eggert <cegg...@uhnresearch.ca>wrote: > My URL looks like this when the error page is displayed: > > .../cgi-bin/WebObjects/CRR.woa/wo/1uoeYYmtvWCOQKj2xVio70/4.0.99.1.1.21 > > Then it looks like this when i click on the button: (And stays on the same > page instead of executing the action in that button and going to my login > page) > > > .../cgi-bin/WebObjects/CRR.woa/wo/1uoeYYmtvWCOQKj2xVio70/4.0.99.1.1.21?1=Submit+and+Return+to+Login+Page > > That looks strange. what's with the ?1=... > > Anyone know why it looks like this? > > > On 2012-12-19, at 10:32 AM, John Huss wrote: > > You need to examine the urls and the session ID (cookie or url) and see > where/what they are. > > > On Wed, Dec 19, 2012 at 9:15 AM, Calven Eggert <cegg...@uhnresearch.ca>wrote: > >> that doesn't seem to make a difference. >> >> What I can't figure out is that I've set a breakpoint on the loginPage >> method and it never gets there. I click on the button and the page reloads >> again. What would make the error page load a second time? >> >> >> On 2012-12-19, at 8:41 AM, John Huss wrote: >> >> WORedirect should be created using pageWithName. May not matter though. >> >> On Wednesday, December 19, 2012, Calven Eggert wrote: >> >>> *bump* >>> >>> anyone have any ideas? >>> >>> Begin forwarded message: >>> >>> *From: *Calven Eggert <cegg...@uhnresearch.ca> >>> *Subject: **WOResponse HandleException problem* >>> *Date: *17 December, 2012 4:04:00 PM EST >>> *To: *webobjects-dev@lists.apple.com >>> >>> I have a framework that has overridden WOResponse HandleException for >>> many years. >>> >>> Today I have discovered that there is a problem with the page I display >>> to the user. The page shows text and a button at the bottom of the page is >>> labelled "Go to Login Page". It used to go to the login page of the >>> application but now when clicked on it seems to do nothing. When clicked >>> on a second time it then correctly goes to the login page. >>> >>> I can't seem to figure out why it's no longer working. I can confirm >>> that it was working properly in May of 2011. I haven't a clue when it >>> stopped working. Some kind of upgrade may have caused it to stop. Java >>> version, Eclipse.... no idea. >>> >>> This is how it is handled: >>> >>> public WOResponse handleException(Exception anException, WOContext >>> aContext) >>> { >>> super.handleException(anException, aContext); >>> COREErrorPage errorPage = (COREErrorPage) pageWithName( >>> "COREErrorPage", aContext); >>> errorPage.initialize(true, anException, theUser, "", "", null); >>> return errorPage.generateResponse(); >>> } >>> >>> >>> My error page does this when the user clicks on the button, but only the >>> second time it is clicked: >>> >>> public WOComponent loginPage() { >>> WORedirect redirect = new WORedirect(context()); >>> try { >>> >>> redirect.setUrl(((COREApplication)application()).logoutLink()); >>> } catch (Exception e) { >>> e.printStackTrace(); >>> e = null; >>> >>> redirect.setUrl(((COREApplication)application()).logoutLink()); >>> } >>> ((CORESession)session()).terminate(); >>> return redirect; >>> } >>> >>> Any help in solving this mystery is appreciated. >>> >>> Calven >>> >>> >>> >> > >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com