Re: WebObjects 5.3.1 Redirect bug?
Re: WebObjects 5.3.1 Redirect bug?
- Subject: Re: WebObjects 5.3.1 Redirect bug?
- From: David LeBer <email@hidden>
- Date: Tue, 15 Nov 2005 19:45:02 -0500
On 15-Nov-05, at 6:12 PM, Dev WO wrote:
Hi guys,
I filled the bug you mentioned and yes it has been fixed:
an hyperlink must have its & escaped to & and it is now working
correctly (again as it was working fine in 5.2.2 and earlier).
David, I don't understand exactly what you are looking for in fact,
if I understand well you're saying that when trying to parse a url
to get to it's "keys", WO can't do it anymore?
If it's what you are saying, you should fill a bug as it is one for
sure;)
But having the & escaped is not a bug it's (X)HTML:)
I explored a little more. If you add a WOHyperlink to a WOComponent
and give it DirectAction bindings with a NSDictionary for its
queryDictionary binding it will generate a link href like this:
href="/cgi-bin/WebObjects/NewWOTest.woa/wa/default?
valueZero=Une&valueTwo=Du&valueOne=1&"
That is correct.
When you click on that link to perform that request the browser sends
this to the server: http://localhost:port/cgi-bin/WebObjects/
NewWOTest.woa/wa/default?valueZero=Une&valueTwo=Du&valueOne=1
The browser decodes the & and sends plain '&' to the server.
This works and the request().formValues() returns the dictionary
you'd expect.
When you use the WORedirect, WebObjects is not performing the job of
the browser and it is submitting the encoded ampersands to the
server. Which it doesn't like. Silly WebObjects.
I don't know enough about the minutia of web standards to know which
is the incorrect behavior (submitting encoded ampersands, or barfing
if you receive them) but that is where the problem lies.
I think that's enough to file this as a bug. I'll do that tonight.
Xavier
Hi there,
On 16/11/2005, at 7:03 AM, David LeBer wrote:
I'm playing with WebObjects 5.3.1 and I'm seeing an oddity in
WORedirect:
<...>
WO is encoding the ampersands in the url into & 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.
I seem to recall reading something about this ampersand bug being
fixed in the 5.3.1 release notes - but I can't find the release
notes anymore. i.e., they've disappeared from http://
docs.info.apple.com/article.html?artnum=302797
Okay, viewing the source for the page reveals the release notes
(or are they now referred to as "cat out of the bag notes")..
For your situation...
4237223: TITLE: Direct Action generate non-valid URL
ISSUE URLs generated by DirectActions sometimes incorrectly
converted &
RESOLUTION: This issue has been resolved.
So I'd say that this issue has not been resolved. File a bug...
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40anazys.com
This email sent to email@hidden
--
;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