<?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>Brightbox Blog &#187; bugs</title>
	<atom:link href="http://blog.brightbox.co.uk/tag/bugs/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.brightbox.co.uk</link>
	<description></description>
	<lastBuildDate>Wed, 16 Jun 2010 16:30:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>&#8220;uninitialized constant REXML::VERSION&#8221; with Rails 2.1.1 and Rails 2.2</title>
		<link>http://blog.brightbox.co.uk/posts/uninitialized-constant-rexmlversion-with-rails-211-and-rails-22</link>
		<comments>http://blog.brightbox.co.uk/posts/uninitialized-constant-rexmlversion-with-rails-211-and-rails-22#comments</comments>
		<pubDate>Wed, 10 Sep 2008 10:48:02 +0000</pubDate>
		<dc:creator>Rahoul Baruah</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails 2.1.1]]></category>
		<category><![CDATA[rails 2.2]]></category>
		<category><![CDATA[rexml]]></category>

		<guid isPermaLink="false">http://blog.brightbox.co.uk/?p=137</guid>
		<description><![CDATA[We&#8217;ve found a minor problem with Rails 2.1.1 (and Rails 2.2) on our Brightboxes.  
Because we use Ubuntu Dapper, which ships with Ruby 1.8.4, it includes an earlier version of the REXML library (for XML processing).  As you may know, there was a recent security vulnerability to do with the REXML library and [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve found a minor problem with Rails 2.1.1 (and Rails 2.2) on our Brightboxes.  </p>
<p>Because we use Ubuntu Dapper, which ships with Ruby 1.8.4, it includes an earlier version of the REXML library (for XML processing).  As you may know, there was a recent security vulnerability to do with the REXML library and these latest two versions of Rails include a fix for this.  </p>
<p>Unfortunately, the library that ships with 1.8.4 is slightly incorrect.  Ruby conventions state that a constant should be all capitals so, quite rightly, the Rails updates check for a constant called <tt>REXML::VERSION</tt>.  However, in 1.8.4, the constant is actually called <tt>REXML::Version</tt> meaning that Rails falls over with an &#8220;<tt>uninitialized constant REXML::VERSION</tt>&#8221; error.  </p>
<p>The quick fix is to manually edit <tt> /usr/lib/ruby/1.8/rexml/rexml.rb</tt> and add a new (correctly named constant).  You will need to use sudo to edit the file, as it is owned by root; after editing the file should look something like: </p>
<pre><code>
module REXML
        Copyright = "Copyright © 2001, 2002, 2003, 2004 Sean Russell <&#x73;&#x65;&#x72;&#x40;&#x67;&#x65;&#x72;&#x6d;&#x61;&#x6e;&#x65;&#x2d;&#x73;&#x6f;&#x66;&#x74;&#x77;&#x61;&#x72;&#x65;&#x2e;&#x63;om>"
        Date = "2005/224"
        Version = "3.1.3"
        VERSION = "3.1.3"
end
</code></pre>
<p>We are also looking at our options for a permanent fix for this issue.  </p>]]></content:encoded>
			<wfw:commentRss>http://blog.brightbox.co.uk/posts/uninitialized-constant-rexmlversion-with-rails-211-and-rails-22/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->