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

Re: WebObjects 5.3.1 Redirect bug?


  • Subject: Re: WebObjects 5.3.1 Redirect bug?
  • From: Dev WO <email@hidden>
  • Date: Wed, 16 Nov 2005 11:24:36 +0100

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 &amp; 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 &amp; 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&amp;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 &amp; 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@hidden)
Help/Unsubscribe/Update your Subscription:
40anazys.com


This email sent to email@hidden


_______________________________________________ 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: David LeBer <email@hidden>
References: 
 >WebObjects 5.3.1 Redirect bug? (From: David LeBer <email@hidden>)
 >Re: WebObjects 5.3.1 Redirect bug? (From: Lachlan Deck <email@hidden>)
 >Re: WebObjects 5.3.1 Redirect bug? (From: Dev WO <email@hidden>)
 >Re: WebObjects 5.3.1 Redirect bug? (From: Lachlan Deck <email@hidden>)

  • Prev by Date: CORRECTION: Re: More newbie questions
  • Next by Date: Re: empty replay
  • Previous by thread: Re: WebObjects 5.3.1 Redirect bug?
  • Next by thread: Re: WebObjects 5.3.1 Redirect bug?
  • Index(es):
    • Date
    • Thread