• 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
WebObjects 5.3.1 Redirect bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WebObjects 5.3.1 Redirect bug?


  • Subject: WebObjects 5.3.1 Redirect bug?
  • From: David LeBer <email@hidden>
  • Date: Tue, 15 Nov 2005 15:03:06 -0500

I'm playing with WebObjects 5.3.1 and I'm seeing an oddity in WORedirect:

With redirect code like this:

public WOComponent createDA()
{
NSMutableDictionary dict = new NSMutableDictionary();
dict.takeValueForKey("Zero", "valueZero");
dict.takeValueForKey(String.valueOf(1), "valueOne");
dict.takeValueForKey("Two", "valueTwo");
System.out.println("Performing: " + dict);
String url = context().directActionURLForActionNamed( "default", dict );
WORedirect redirect = new WORedirect(context());
System.out.println("Performing (URL): " + url);
redirect.setUrl(url);
return redirect;
}


And default action code like this:

    public WOActionResults defaultAction() {
		System.out.println("Action: " + request().formValues());
        	return pageWithName("Main");
    }

I get these results:

Performing: {valueZero = "Zero"; valueTwo = "Two"; valueOne = "1"; }
Performing (URL): /cgi-bin/WebObjects/NewWOTest.woa/wa/default? valueZero=Zero&amp;valueTwo=Two&amp;valueOne=1
Action: {valueZero = ("Zero"); amp;valueTwo = ("Two"); amp;valueOne = ("1"); }


WO is encoding the ampersands in the url into &amp; but then it is not respecting the encoding when it extracts the values again (leaving the munged dictionary keys). I'm hoping there is something stupid I am doing here and this is not a bug. If anyone can confirm or negate my results I'd be grateful.

--
;david

--
David LeBer
"I am codeferous!"
Codeferous Software
site:   http://www.codeferous.com
blog: http://david.codeferous.com




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WebObjects 5.3.1 Redirect bug?
      • From: Lachlan Deck <email@hidden>
  • Prev by Date: Re: So how is 5.3.1 looking?
  • Next by Date: Re: So how is 5.3.1 looking?
  • Previous by thread: D2W and Boolean
  • Next by thread: Re: WebObjects 5.3.1 Redirect bug?
  • Index(es):
    • Date
    • Thread