<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LolocoJr &#187; bug empty href rails</title>
	<atom:link href="http://www.railsguru.com/articles/tag/bug-empty-href-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.railsguru.com</link>
	<description>Andy Lo-A-Foe&#039;s blog</description>
	<lastBuildDate>Thu, 21 Jul 2011 13:31:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Most bizarre bug hunt this month!</title>
		<link>http://www.railsguru.com/articles/2006/09/20/most-bizarre-bug-hunt-this-month/</link>
		<comments>http://www.railsguru.com/articles/2006/09/20/most-bizarre-bug-hunt-this-month/#comments</comments>
		<pubDate>Wed, 20 Sep 2006 14:18:00 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[bug empty href rails]]></category>

		<guid isPermaLink="false">http://www.railsguru.com/2007/06/27/most-bizarre-bug-hunt-this-month</guid>
		<description><![CDATA[Today I spent about an hour hunting down the cause of some bizarre behavior in one of our new Rails projects. The action in question handles both GET/POST. In the GET part I do an XMLRPC call to an external &#8230; <a href="http://www.railsguru.com/articles/2006/09/20/most-bizarre-bug-hunt-this-month/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I spent about an hour hunting down the cause of some bizarre behavior in one of our new Rails projects. The action in question handles both <span class="caps">GET</span>/POST. In the <span class="caps">GET</span> part I do an <span class="caps">XMLRPC</span> call to an external system to generate some hash value and store it in the session. This data is then shown on screen and further interaction with the customer is done through Ajax. The content on screen however did not match the value stored in the customer&#8217;s session. It turns out the application received two or sometimes three <span class="caps">GET</span> request in short succession! However, the browser (Firefox) would only display data from the very first <span class="caps">GET</span> request. Where were these other ghostly <span class="caps">GET</span>&#8217;s coming from??!! They came from this piece of <span class="caps">HTML</span> in the default layout template:<br/><br />
<br/><br />
<code><br />
&lt;link rel="Shortcut Icon" href="" /&gt;<br />
</code></p>
<p><br/><br />
So Firefox (and any other browsers?) will call the current request path of your application for elements with empty hrefs. I think this is proper behavior from the browser, but it might cause some really nasty side effects in your application!! Suffice it to say, the dude responsible for this template will be punished sever&#8230;oh crap, that was me too!<br/></p></p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><script type="text/javascript"><!--
google_ad_client = "pub-6322765154114793";
/* 300x250, created 7/3/11 */
google_ad_slot = "6228709946";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.railsguru.com/articles/2006/09/20/most-bizarre-bug-hunt-this-month/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

