<?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>coffeecoders.de &#187; bug</title>
	<atom:link href="http://coffeecoders.de/tag/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://coffeecoders.de</link>
	<description>professional devs at work</description>
	<lastBuildDate>Tue, 13 Sep 2011 16:34:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>trac: upgrading trac with easy_install fails with &#8220;unexpected HTML page found&#8221;</title>
		<link>http://coffeecoders.de/2009/08/trac-upgrading-trac-with-easy_install-fails-with-unexpected-html-page-found/</link>
		<comments>http://coffeecoders.de/2009/08/trac-upgrading-trac-with-easy_install-fails-with-unexpected-html-page-found/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 10:55:09 +0000</pubDate>
		<dc:creator>stevie</dc:creator>
				<category><![CDATA[common]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">http://coffeecoders.de/?p=240</guid>
		<description><![CDATA[When installing or upgrading trac on a Debian-like linux machine you might want to use the easy approach of the python setuptools. Trac can be installed or upgraded by using: easy_install http://svn.edgewall.org/repos/trac/branches/0.11-stable Since the release of Subversion 1.5 the version &#8230; <a href="http://coffeecoders.de/2009/08/trac-upgrading-trac-with-easy_install-fails-with-unexpected-html-page-found/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When installing or upgrading trac on a Debian-like linux machine you might want to use the easy approach of the python setuptools. Trac can be installed or upgraded by using:</p>
<p><code>easy_install http://svn.edgewall.org/repos/trac/branches/0.11-stable</code></p>
<p>Since the release of Subversion 1.5 the version of easy_install included in the Debian repository ran into a compatibility issue. <span id="more-240"></span>Instead of working as expected it always complained:</p>
<p><code>error: Unexpected HTML page found at http://svn.edgewall.org/repos/trac/branches/0.11-stable</code></p>
<p>The problem seems to be that the SVN-Web-Output generated by Subversion 1.5+ is not being understanded by setuptools. In the <a href="http://trac-hacks.org/ticket/5512">issue tracker</a> for the trac-plugin-project <a href="http://www.trac-hacks.org">trac-hacks.org</a> I found the easiest way to solve this problem. You will use the setuptools to update itself and then you won&#8217;t have problems anymore:</p>
<p><code>easy_install -U setuptools</code></p>
<p>PS: This problem also occured when trying to install plugins from trac-hacks.org since they also use SVN 1.5+.</p>
 <p><a href="http://coffeecoders.de/?flattrss_redirect&amp;id=240&amp;md5=81fefaa5094762c4a0b3ca4a923c52ce" title="Flattr" target="_blank"><img src="http://coffeecoders.de/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://coffeecoders.de/2009/08/trac-upgrading-trac-with-easy_install-fails-with-unexpected-html-page-found/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>trac: Solving sqlite-issues when upgrading from Debian etch to lenny</title>
		<link>http://coffeecoders.de/2009/02/trac-solving-sqlite-issues-when-upgrading-from-debian-etch-to-lenny/</link>
		<comments>http://coffeecoders.de/2009/02/trac-solving-sqlite-issues-when-upgrading-from-debian-etch-to-lenny/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 14:06:41 +0000</pubDate>
		<dc:creator>stevie</dc:creator>
				<category><![CDATA[common]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">http://coffeecoders.de/?p=128</guid>
		<description><![CDATA[On my dev-server I had to upgrade to the newer version of debian lenny (which will be released as stable version this week). The upgrade went fine but after it was finished trac (0.11.2.1 ) refused to start, throwing the &#8230; <a href="http://coffeecoders.de/2009/02/trac-solving-sqlite-issues-when-upgrading-from-debian-etch-to-lenny/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On my dev-server I had to upgrade to the newer version of debian lenny (which will be released as stable version this week).</p>
<p>The upgrade went fine but after it was finished <a href="http://trac.edgewall.org/">trac (0.11.2.1 )</a> refused to start, throwing the error message</p>
<blockquote><p>DatabaseError: file is encrypted or is not a database</p></blockquote>
<p><span id="more-128"></span>According to the <a href="http://trac.edgewall.org/ticket/2585">ticket system of trac</a> the problem is the wrong version of sqlite which is used by trac. Sadly all my efforts to make the database useable again failed with the error message above.</p>
<p>After some research I discovered another way to let trac use the default sqlite3 but keeping my data alive. <a href="http://pacopablo.com/irclogs/2008/10/21">This chatlog</a> states a simple way to convert your sqlite2 database to the newer sqlite3-format. Here is a quick walkthrough:</p>
<ol>
<li>Install the packages sqlite (v2) and sqlite3 (guess the version <img src='http://coffeecoders.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p128code3'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1283"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p128code3"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> sqlite sqlite3</pre></td></tr></table></div>

</li>
<li>Dump the old database and convert it to sqlite3

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p128code4'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1284"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p128code4"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>trac-repos
<span style="color: #7a0874; font-weight: bold;">cd</span> db
<span style="color: #c20cb9; font-weight: bold;">mv</span> trac.db trac.db.old-sqlite2
sqlite trac.db.old-sqlite2 .dump <span style="color: #000000; font-weight: bold;">|</span> sqlite3 trac.db
<span style="color: #c20cb9; font-weight: bold;">chown</span> www-data:www-data trac.db
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></td></tr></table></div>

</li>
</ol>
<p>And you&#8217;re done. The old database is now named <em>trac.db.old-sqlite2</em> in case you need it for whatever reason. The new one is named with the default name <em>trac.db</em> so trac will use this one if not specified otherwise in <em>conf/trac.ini</em>.</p>
<p>I hope this tip saves you from some worries after upgrading to Debian Lenny. Keep on coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://coffeecoders.de/2009/02/trac-solving-sqlite-issues-when-upgrading-from-debian-etch-to-lenny/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>TOP 25 Most Dangerous Programming Errors</title>
		<link>http://coffeecoders.de/2009/01/top-25-most-dangerous-programming-errors/</link>
		<comments>http://coffeecoders.de/2009/01/top-25-most-dangerous-programming-errors/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 11:11:30 +0000</pubDate>
		<dc:creator>stevie</dc:creator>
				<category><![CDATA[common]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://coffeecoders.de/?p=79</guid>
		<description><![CDATA[I recently found a document, stating it contains the most dangerous programming errors. The layout of this article is very &#8230; let&#8217;s say technical so I was about to close this one because it&#8217;s not very much fun to read &#8230; <a href="http://coffeecoders.de/2009/01/top-25-most-dangerous-programming-errors/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I recently found a document, stating it contains the most dangerous programming errors. The layout of this article is very &#8230; let&#8217;s say technical so I was about to close this one because it&#8217;s not very much fun to read it. But the first few lines took me in and I read the whole thing. I wonder if it has the same impact on you:</p>
<p><span id="more-79"></span></p>
<blockquote><p>Today in Washington, DC, experts from more than 30 US and international cyber security organizations jointly released the consensus list of the 25 most dangerous programming errors that lead to security bugs and that enable cyber espionage and cyber crime. Shockingly, most of these errors are not well understood by programmers; their avoidance is not widely taught by computer science programs; and their presence is frequently not tested by organizations developing software for sale.</p>
<p>The impact of these errors is far reaching. Just two of them led to more than 1.5 million web site security breaches during 2008 &#8211; and those breaches cascaded onto the computers of people who visited those web sites, turning their computers into zombies.</p>
<p>[...much more...]</p></blockquote>
<p>If you are a programmer and have the urge to make a perfect application you have to admit that this excerpt teases you. You want to know if you are better than these guys who messed up epically.</p>
<p>Let&#8217;s see, which errors could you have made?</p>
<p>Well, of course, we have the three regulars <strong>SQL Injection</strong>, <strong>Cross Site Scripting</strong> and <strong>OS Command Injection</strong>. These three are still very common although there are a various number of best practises available to prevent them.</p>
<p>So if you have one of these in your application you would be in good company but you will have ignored some basic rules like &#8220;<em>Don&#8217;t trust user input!</em>&#8220;.</p>
<p>Ok, moving on. What else is there password- and cryptographie-related errors are often a source of fun or blank horror. There are the ones where you should have watched the newspages like &#8220;<strong>Use of a Broken or Risky Cryptographic Algorithm</strong>&#8220;, things you should know to avoid like &#8220;<strong>Hard-Coded Password</strong>&#8221; and &#8220;<strong>Client-Side Enforcement of Server-Side Security</strong>&#8221; and things you could have tested properly like &#8220;<strong>Execution with Unnecessary Privileges</strong>&#8221; or &#8220;<strong>Improper Access Control (Authorization)</strong>&#8220;.</p>
<p>I know, i know &#8211; you would have done (or not done) all these things if you just had enough time for it. Well, I know the clients and I know that they don&#8217;t have the feeling for tasks like &#8220;testing&#8221;. They can&#8217;t possibly understand why such a task is taking so much time. But as reality shows it is wise to invest a big chunk of your development time into it.</p>
<p>So it is <em>your</em> tasks to make sure the client (or your boss for that matter) understands the need for testing and making &#8220;unnecessarry&#8221; code for checking user input etc. It is in both his/her interest and yours to produce an application holding up against real world scenarios and bored high school kids.</p>
<p>Link: <a href="http://www.sans.org/top25errors/#s4">SANS Institute &#8211; CWE/SANS TOP 25 Most Dangerous Programming Errors</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://coffeecoders.de/2009/01/top-25-most-dangerous-programming-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

