Hi there,

On 16/11/2005, at 10:12 AM, Dev WO wrote:

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).

This *fix* might be the cause of the new problem...
I don't think the bug is in the hyperlink generation, because it was doing this in 5.2.2 and before (which isn't that old;)) and no one mentioned a bug about this. And at least the & in the source code of the (X)HTML is the correct way of doing it.

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?

Correct.
I'm not as advance as any of you in WO, but I have some simple DA which lead to a product based on its PK like
productPK=15&wosid=blabla
and it works just fine...
Maybe because there's not that much parameter and I'm requesting the value of the first one.
The wosid is working well too, so it must be getting correctly too...
As I told you I'm not enough "good" to tell you what's wrong:( The only thing I can say is that the & in an hyperlink is correct.

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 &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.

Confirmed (See below).

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

public WOActionResults defaultAction() {
        NSLog.out.appendln( "Post: " + request().formValues() );
        NSLog.out.appendln( "Keys: " + request().formValueKeys() );
        return pageWithName("Main");
}

Pre: {valueZero = "Zero"; valueTwo = "Two"; valueOne = "1"; }
URL: /cgi-bin/WebObjects/TestRedirect.woa/-50628/wa/default? valueZero=Zero&amp;valueTwo=Two&amp;valueOne=1&amp;wosid=LDHjmeMHbkGCQ GRnoremEw Post: {valueZero = ("Zero"); amp;valueTwo = ("Two"); amp;valueOne = ("1"); amp;wosid = ("LDHjmeMHbkGCQGRnoremEw"); }
Keys: ("valueZero", "amp;valueTwo", "amp;valueOne", "amp;wosid")
I'm asking this just to understand, why are you using "post" on a hyperlink? If it's a form so there's nothing written in the (X)HTML source code and the form will submit with & as it's passing parameter (which is correct).
There's no "post" action for a hyperlink.

Could you clarify what you trying to do?
It may be obvious, but I don't understand with my limited knowledge;)

Xavier


Ouch... are you going to file the bug David?

with regards,
--

Lachlan Deck


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects% 40anazys.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to