<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: WebObjects 5.3.1 WORedirect Bug</title>
	<atom:link href="http://davidleber.net/?feed=rss2&#038;p=191" rel="self" type="application/rss+xml" />
	<link>http://davidleber.net/?p=191</link>
	<description>I&#039;m David LeBer. I&#039;m Canadian, I&#039;m pessimistic, I code. This is my blog reBeLog. WO, Cocoa, thoughts, you know, it&#039;s a blog.</description>
	<lastBuildDate>Tue, 31 Aug 2010 22:09:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daniel</title>
		<link>http://davidleber.net/?p=191&#038;cpage=1#comment-1703</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 10 Feb 2006 15:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://david.codeferous.com/?p=191#comment-1703</guid>
		<description>for WOHyperlink, I found the culprit: in com.webobjects.appserver._private.WOURLEncoder.encodeAsCGIFormValues(...) &quot;&amp;&quot; has been replaced with &quot;&amp;&quot; in WO 5.3.1.</description>
		<content:encoded><![CDATA[<p>for WOHyperlink, I found the culprit: in com.webobjects.appserver._private.WOURLEncoder.encodeAsCGIFormValues(&#8230;) &#8220;&amp;&#8221; has been replaced with &#8220;&amp;amp;&#8221; in WO 5.3.1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://davidleber.net/?p=191&#038;cpage=1#comment-1693</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 10 Feb 2006 08:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://david.codeferous.com/?p=191#comment-1693</guid>
		<description>Same problem with a WOHyperlink with href binding and parameters (bindings starting with a ?): &amp; instead of &amp; in the generate url.</description>
		<content:encoded><![CDATA[<p>Same problem with a WOHyperlink with href binding and parameters (bindings starting with a ?): &amp; instead of &amp; in the generate url.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://davidleber.net/?p=191&#038;cpage=1#comment-1502</link>
		<dc:creator>david</dc:creator>
		<pubDate>Tue, 20 Dec 2005 21:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://david.codeferous.com/?p=191#comment-1502</guid>
		<description>I don&#039;t think so, I think that WORedirect is just sending the request as is, and it&#039;s confusing WORequest when you ask for formValues().</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think so, I think that WORedirect is just sending the request as is, and it&#8217;s confusing WORequest when you ask for formValues().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Galen Rhodes</title>
		<link>http://davidleber.net/?p=191&#038;cpage=1#comment-1500</link>
		<dc:creator>Galen Rhodes</dc:creator>
		<pubDate>Tue, 20 Dec 2005 21:21:21 +0000</pubDate>
		<guid isPermaLink="false">http://david.codeferous.com/?p=191#comment-1500</guid>
		<description>It WORedirect encoding the ampersands a second time so that you wind up with something like &amp;amp;?</description>
		<content:encoded><![CDATA[<p>It WORedirect encoding the ampersands a second time so that you wind up with something like &amp;amp;amp;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://davidleber.net/?p=191&#038;cpage=1#comment-1471</link>
		<dc:creator>david</dc:creator>
		<pubDate>Mon, 19 Dec 2005 18:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://david.codeferous.com/?p=191#comment-1471</guid>
		<description>I don&#039;t know about that Galen,

Yes the context().directActionURLForActionNamed(…) method is encoding the ampersands. But that would be the correct behaviour if you wanted to embed the URL in your page (ie: use it with a WODynamicElement). 

If you click on a URL containing encoded ampersands with a browser, it will decode them before making the request.

I think WORedirect is kind of acting like a browser in this instance and should be decoding the ampersands as well.

Obviously, I didn&#039;t write the code. So I&#039;ll let Apple decide what the correct behavior should be or where the fix should lie.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know about that Galen,</p>
<p>Yes the context().directActionURLForActionNamed(…) method is encoding the ampersands. But that would be the correct behaviour if you wanted to embed the URL in your page (ie: use it with a WODynamicElement). </p>
<p>If you click on a URL containing encoded ampersands with a browser, it will decode them before making the request.</p>
<p>I think WORedirect is kind of acting like a browser in this instance and should be decoding the ampersands as well.</p>
<p>Obviously, I didn&#8217;t write the code. So I&#8217;ll let Apple decide what the correct behavior should be or where the fix should lie.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Galen Rhodes</title>
		<link>http://davidleber.net/?p=191&#038;cpage=1#comment-1469</link>
		<dc:creator>Galen Rhodes</dc:creator>
		<pubDate>Mon, 19 Dec 2005 18:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://david.codeferous.com/?p=191#comment-1469</guid>
		<description>I think we should be clear that the bug is not with WORedirect but rather with WOContext. (or something that WOContext calls) 

During the generation of the URL in the call to directActionURLForActionNamed(...) the ampersands (&amp;) are being encoded when the parameters from the dictionary are appended to the URL.</description>
		<content:encoded><![CDATA[<p>I think we should be clear that the bug is not with WORedirect but rather with WOContext. (or something that WOContext calls) </p>
<p>During the generation of the URL in the call to directActionURLForActionNamed(&#8230;) the ampersands (&amp;) are being encoded when the parameters from the dictionary are appended to the URL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Schrag</title>
		<link>http://davidleber.net/?p=191&#038;cpage=1#comment-1305</link>
		<dc:creator>Mike Schrag</dc:creator>
		<pubDate>Tue, 15 Nov 2005 22:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://david.codeferous.com/?p=191#comment-1305</guid>
		<description>Same thing happened in my app with just generating a direct action URL to put in a javascript redirect ... I don&#039;t think it&#039;s your code.</description>
		<content:encoded><![CDATA[<p>Same thing happened in my app with just generating a direct action URL to put in a javascript redirect &#8230; I don&#8217;t think it&#8217;s your code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
