<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>henaredegan.com</title>
	
	<link>http://www.henaredegan.com/blog</link>
	<description />
	<lastBuildDate>Sat, 27 Feb 2010 23:44:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/henaredegan" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="henaredegan" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Java and SSL on FreeBSD</title>
		<link>http://www.henaredegan.com/blog/2010/02/28/java-and-ssl-on-freebsd/</link>
		<comments>http://www.henaredegan.com/blog/2010/02/28/java-and-ssl-on-freebsd/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 23:44:15 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google apps]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jira]]></category>
		<category><![CDATA[pop]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=150</guid>
		<description><![CDATA[Running Jira on FreeBSD, I wanted to be able to pick up email from a Google Apps account and feed it in as tickets. This is normally a straight-forward process but I was getting these errors in the Jira logs:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
So [...]]]></description>
			<content:encoded><![CDATA[<p>Running Jira on FreeBSD, I wanted to be able to pick up email from a Google Apps account and feed it in as tickets. This is normally a straight-forward process but I was getting these errors in the Jira logs:</p>
<p><code>javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</code></p>
<p>So it seemed like the Gmail SSL certificate for IMAP or POP wasn&#8217;t validating. That&#8217;s weird as it would be a major problem if it didn&#8217;t and they&#8217;re certainly not using a self-signed certificate.</p>
<p>I checked the keystore and it appeared empty so it looks like FreeBSD&#8217;s Java doesn&#8217;t ship with the normal list of CAs. To fix this I did:</p>
<p><code>[henare@freebsd ~]$ ls -l /usr.local/diablo-jdk1.6.0/jre/lib/security/cacerts<br />
-rw-r--r--  1 root  wheel  942    Aug  6  2007 /usr/ports/java/jdk16/files/cacerts<br />
[henare@freebsd ~]$ #wow, that file's really small (this directory was in our JAVA_HOME - don't ask me about the usr.local thing)<br />
[henare@freebsd ~]$ #first, backup this file<br />
[henare@freebsd ~]$ sudo cp /usr/local/diablo-jdk1.6.0/jre/lib/security/cacerts{,_backup`date +%Y%m%d`}<br />
[henare@freebsd ~]$ #now, copy over the file from ports<br />
[henare@freebsd ~]$ sudo cp /usr/ports/java/jdk16/files/cacerts /usr.local/diablo-jdk1.6.0/jre/lib/security/cacerts<br />
[henare@freebsd ~]$ ls -l /usr.local/diablo-jdk1.6.0/jre/lib/security/cacerts<br />
-rw-r--r--  1 root  wheel  40624 Aug  6  2007 /usr/ports/java/jdk16/files/cacerts<br />
[henare@freebsd ~]$ #that looks better</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2010/02/28/java-and-ssl-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating an ASP site to a static Apache site</title>
		<link>http://www.henaredegan.com/blog/2009/11/23/migrating-an-asp-site-to-a-static-apache-site/</link>
		<comments>http://www.henaredegan.com/blog/2009/11/23/migrating-an-asp-site-to-a-static-apache-site/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 04:57:12 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=131</guid>
		<description><![CDATA[I recently needed to move a very simple ASP site to Apache for archival purposes. There was nothing of importance that the dynamic ASP was doing and as it was just for an archive, it made the most sense to turn it into simple HTML (as the whole site probably should have been in the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed to move a very simple ASP site to Apache for archival purposes. There was nothing of importance that the dynamic ASP was doing and as it was just for an archive, it made the most sense to turn it into simple HTML (as the whole site probably should have been in the first place). All of this was easy enough with wget -m, etc. but I came across one major stumbling block.</p>
<p>The files mirrored from the original site had a question mark in the file name due to them being queries and the fact that Unix supports question marks in file names. This wasn&#8217;t a problem for most modern browsers as they encode the question mark before doing the request and Apache happily serves up the file. After doing a test migration of the site I noticed heaps of 404s coming from visitors to the site via search engines.</p>
<p>I got around this with some painful mod_rewrite hacking:</p>
<p><code>RewriteEngine On<br />
RewriteCond %{QUERY_STRING} .<br />
RewriteCond %{REQUEST_FILENAME} \.asp$<br />
RewriteRule ^(.*)$ http://example.com$1\%3F%{QUERY_STRING}? [NE]</code></p>
<p>In semi-human-speak:</p>
<ul>
<li>Turn the mod_rewrite engine on</li>
<li>Look for queries that have a query string (i.e. a ? and anything after it)</li>
<li>And where the filename requested is a .asp file</li>
<li>Rewrite the whole request to http://example.com
<ul>
<li>Then the original request (sans query string)</li>
<li>Then %3F (question mark encoded)</li>
<li>Then the query string and make sure there&#8217;s no other query string appended (the ? at the end)</li>
<li>Also, don&#8217;t encode the stuff we&#8217;re throwing back to the client (the [NE])</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2009/11/23/migrating-an-asp-site-to-a-static-apache-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert TIFF to JPEG on Linux</title>
		<link>http://www.henaredegan.com/blog/2009/11/16/convert-tiff-to-jpeg-on-linux/</link>
		<comments>http://www.henaredegan.com/blog/2009/11/16/convert-tiff-to-jpeg-on-linux/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 01:29:26 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[jpeg]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[tiff]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=128</guid>
		<description><![CDATA[I wanted to convert some high resolution TIFFs that Lisa took of Bill&#8217;s paintings recently and came up with this quick and dirty conversion into JPEG:
for i in *.tif; do tifftopnm "$i" &#124; pnmtojpeg &#62; "${i%.tif}.jpeg"; done
That&#8217;ll convert all .tif files in a directory to JPEG (using default processing setting).
I didn&#8217;t have exiftool installed, and [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to convert some high resolution TIFFs that Lisa took of Bill&#8217;s paintings recently and came up with this quick and dirty conversion into JPEG:</p>
<p><code>for i in *.tif; do tifftopnm "$i" | pnmtojpeg &gt; "${i%.tif}.jpeg"; done</code></p>
<p>That&#8217;ll convert all .tif files in a directory to JPEG (using default processing setting).</p>
<p>I didn&#8217;t have <tt>exiftool</tt> installed, and no internerd or media to install it from, otherwise I would&#8217;ve looked at doing the metadata too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2009/11/16/convert-tiff-to-jpeg-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evolution Hangs on Startup</title>
		<link>http://www.henaredegan.com/blog/2009/10/28/evolution-hangs-on-startup/</link>
		<comments>http://www.henaredegan.com/blog/2009/10/28/evolution-hangs-on-startup/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 23:36:26 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[hang]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=125</guid>
		<description><![CDATA[I&#8217;ve had Evolution hang on start up a few times lately, I keep forgetting what I&#8217;ve done to fix it so I&#8217;m noting it here. All I&#8217;ve needed to do is to kill evolution-data-server and try to start Evolution again, so to fix this issue:
killall evolution-data-server-2.28
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had <a href="http://projects.gnome.org/evolution/">Evolution</a> hang on start up a few times lately, I keep forgetting what I&#8217;ve done to fix it so I&#8217;m noting it here. All I&#8217;ve needed to do is to kill evolution-data-server and try to start Evolution again, so to fix this issue:</p>
<p><code>killall evolution-data-server-2.28</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2009/10/28/evolution-hangs-on-startup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting to Apple Remote Desktop on Linux</title>
		<link>http://www.henaredegan.com/blog/2009/10/08/connecting-to-apple-remote-desktop-on-linux/</link>
		<comments>http://www.henaredegan.com/blog/2009/10/08/connecting-to-apple-remote-desktop-on-linux/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 15:47:32 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=120</guid>
		<description><![CDATA[Apple Remote Desktop allows you to graphically administer remote OS X machines, including OS X Server. Apple uses some custom encryption over the top of the standard VNC protocol so if you are connecting from a Linux client using vncviewer you&#8217;ll get the following error message:
Server did not offer supported security type
To set the Apple [...]]]></description>
			<content:encoded><![CDATA[<p>Apple Remote Desktop allows you to graphically administer remote OS X machines, including OS X Server. Apple uses some custom encryption over the top of the standard VNC protocol so if you are connecting from a Linux client using <code>vncviewer</code> you&#8217;ll get the following error message:</p>
<p><code>Server did not offer supported security type</code></p>
<p>To set the Apple Remote Desktop server to use &#8220;legacy&#8221; VNC mode (i.e. unencrypted passwords), you can SSH into the server (if it&#8217;s remote) and execute the following command:</p>
<p><code>sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -restart -agent -privs -all -clientopts -setvnclegacy -vnclegacy -yes -setvncpw -vncpw </code><i>somesecretpassword</i></p>
<p>Remember that you&#8217;re now using VNC in it&#8217;s normal mode where passwords are transmitted across the wire in plaintext so if the network you&#8217;re connecting across is untrusted, tunnel the connection using SSH or similar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2009/10/08/connecting-to-apple-remote-desktop-on-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenAustralia DevLive 0.0.5 and Git Repository</title>
		<link>http://www.henaredegan.com/blog/2009/09/21/openaustralia-devlive-0-0-5-and-git-repository/</link>
		<comments>http://www.henaredegan.com/blog/2009/09/21/openaustralia-devlive-0-0-5-and-git-repository/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 06:16:18 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[openaustralia]]></category>
		<category><![CDATA[susestudio]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=103</guid>
		<description><![CDATA[v0.0.5
I&#8217;ve created another incremental build of OpenAustralia DevLive. Version 0.0.5 simply makes the web application&#8217;s directory the twfy git source tree so you can now use the source control features of git (like resetting after making changes).
You can download the 429 MB VMWare image from SUSE Studio for the next week or so (let me [...]]]></description>
			<content:encoded><![CDATA[<h2>v0.0.5</h2>
<p>I&#8217;ve created another incremental build of OpenAustralia DevLive. Version 0.0.5 simply makes the web application&#8217;s directory the <code>twfy</code> git source tree so you can now use the source control features of git (like resetting after making changes).</p>
<p>You can <a href="http://susestudio.com/download/92dba82dbc7fd5738e272f0ccb0bbca7/OpenAustralia_DevLive.i686-0.0.5.vmx.tar.gz">download the 429 MB VMWare image</a> from SUSE Studio for the next week or so (let me know if you want it after this as I may have to initiate a rebuild to make the download available again).</p>
<h2>Git Repository</h2>
<p>All of the files used to create OpenAustralia DevLive are <a href="http://github.com/henare/oa-devlive">now hosted in a GitHub repository</a> so you can now build your own if you&#8217;d like.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2009/09/21/openaustralia-devlive-0-0-5-and-git-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving Confluence to Solaris under VMWare</title>
		<link>http://www.henaredegan.com/blog/2009/09/10/moving-confluence-to-solaris-under-vmware/</link>
		<comments>http://www.henaredegan.com/blog/2009/09/10/moving-confluence-to-solaris-under-vmware/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 07:50:15 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[confluence]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[virtualisation]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=96</guid>
		<description><![CDATA[As a proof of concept, yesterday I moved our Confluence installation to Solaris under VMWare from it&#8217;s current home on a Linux box. I won&#8217;t go into the background as to why I was doing this (most people would be shocked hearing I would move anything from Linux!) but the reason it was a proof [...]]]></description>
			<content:encoded><![CDATA[<p>As a proof of concept, yesterday I moved our Confluence installation to Solaris under VMWare from it&#8217;s current home on a Linux box. I won&#8217;t go into the background as to why I was doing this (most people would be shocked hearing I would move anything <i>from</i> Linux!) but the reason it was a proof of concept was the fact that <a href="http://jira.atlassian.com/browse/CONF-11301">Confluence isn&#8217;t officially supported under VMWare</a>.</p>
<p>A few points:</p>
<ul>
<li>There are lots of Solaris things I don&#8217;t like after coming from Linux. Packaging first, and the tools it ships with (I want <i>GNU</i> grep and tar, dammit!)</li>
<li>To allow an unprivileged user (our confluence user in this case) to bind to privileged ports (i.e. TCP &lt; 1024), run this as root with the user logged out <code>usermod -K defaultpriv=basic,net_privaddr confluence</code></li>
<li>Use <code>prstat</code>, not <code>top</code> on Solaris</li>
<li>When Atlassian says don&#8217;t use Solaris&#8217; version of <code>tar</code>, they mean it. I spent about half an hour debugging only to find that Solaris had untarred the file incorrectly. Grrr.</li>
<li>I love open formats and the *nix way. I did a <code>mysqldump</code> from our old server and found that our DB tables were using the MyISAM engine (not recommended by Atlassian), so I switched to InnoDB by a simple, quick <code>sed</code> through the dump. Brilliant. I love it.</li>
<li>To stress test the application after the move <a href="http://www.joedog.org/index/siege-home">I used siege</a>, which worked a treat. It&#8217;s probably packaged for your Linux distro too</li>
</ul>
<p>Confluence seems to be running fine on the new VM and withstood my siege, it&#8217;s only small (50 MB) so that might be a factor but it&#8217;s worth testing if you need to make this move yourself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2009/09/10/moving-confluence-to-solaris-under-vmware/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenAustralia DevLive 0.0.4 – Seek and ye shall find</title>
		<link>http://www.henaredegan.com/blog/2009/09/07/openaustralia-devlive-0-0-4-seek-and-ye-shall-find/</link>
		<comments>http://www.henaredegan.com/blog/2009/09/07/openaustralia-devlive-0-0-4-seek-and-ye-shall-find/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 09:47:01 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[openaustralia]]></category>
		<category><![CDATA[susestudio]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=92</guid>
		<description><![CDATA[The new version of OpenAustralia DevLive is now available. Version 0.0.4 adds search functionality so you can test and hack on search related features and bugs.
After the appliance boots, build the search index by opening a terminal and running:
/srv/www/openaustralia/twfy/search/index.pl openaustralia daterange 2007-09-19 2007-09-21
The 416 MB VMWare image can be downloaded from SUSE Studio for the [...]]]></description>
			<content:encoded><![CDATA[<p>The new version of <a href="http://www.henaredegan.com/blog/2009/08/06/introducing-openaustralia-devlive/">OpenAustralia DevLive</a> is now available. Version 0.0.4 adds search functionality so you can test and hack on search related features and bugs.</p>
<p>After the appliance boots, build the search index by opening a terminal and running:</p>
<p><code>/srv/www/openaustralia/twfy/search/index.pl openaustralia daterange 2007-09-19 2007-09-21</code></p>
<p>The 416 MB <a href="http://susestudio.com/download/391e325e2df76e74c374ab384e358aba/OpenAustralia_DevLive.i686-0.0.4.vmx.tar.gz">VMWare image</a> can be downloaded from SUSE Studio for the next week or so. If you have any issues downloading or using the appliance, please leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2009/09/07/openaustralia-devlive-0-0-4-seek-and-ye-shall-find/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google Account OpenID URL</title>
		<link>http://www.henaredegan.com/blog/2009/09/04/google-account-openid-url/</link>
		<comments>http://www.henaredegan.com/blog/2009/09/04/google-account-openid-url/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 01:23:55 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[openid]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=84</guid>
		<description><![CDATA[It was harder than it should have been to find the URL to use for the OpenID provided by your Google Account, so for future reference, enter this in the address box of OpenID enabled sites:
https://www.google.com/accounts/o8/id
]]></description>
			<content:encoded><![CDATA[<p>It was harder than it should have been to find the URL to use for the OpenID provided by your Google Account, so for future reference, enter this in the address box of OpenID enabled sites:</p>
<p><code>https://www.google.com/accounts/o8/id</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2009/09/04/google-account-openid-url/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google Search Appliance SMB URLs</title>
		<link>http://www.henaredegan.com/blog/2009/08/25/google-search-appliance-smb-urls/</link>
		<comments>http://www.henaredegan.com/blog/2009/08/25/google-search-appliance-smb-urls/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 08:40:43 +0000</pubDate>
		<dc:creator>henare</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google search appliance]]></category>
		<category><![CDATA[gsa]]></category>
		<category><![CDATA[hacks]]></category>

		<guid isPermaLink="false">http://www.henaredegan.com/blog/?p=70</guid>
		<description><![CDATA[I&#8217;m running a proof of concept at work of the Google Search Appliance (GSA). Work&#8217;s very much a Microsoft Windows shop and for the demo I wanted the SMB search results to link to the files on the SMB share, not the GSA proxy that is the default.
You can hack this with this small change [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m running a proof of concept at work of the <a href="http://www.google.com.au/enterprise/gsa/">Google Search Appliance</a> (GSA). Work&#8217;s very much a Microsoft Windows shop and for the demo I wanted the SMB search results to link to the files on the SMB share, not the GSA proxy that is the default.</p>
<p>You can hack this with <a href='http://www.henaredegan.com/blog/wp-content/uploads/2009/08/gsa.patch'>this small change</a> to the XLST, a git-diff as follows:</p>
<p><code>diff --git a/gsa-original b/gsa-smb<br />
index ba1c66f..73751ab 100644<br />
--- a/gsa-original<br />
+++ b/gsa-smb<br />
@@ -2680,8 +2680,7 @@ for (var j = 1; j &amp;lt; p.length; j++) { url += "&amp;amp;" + p[j]; }}<br />
         &lt;/xsl:when&gt;<br />
        <!-- *** URI for smb or NFS must be escaped because it appears in the URI query *** --><br />
         &lt;xsl:when test="$protocol='nfs' or $protocol='smb'"&gt;<br />
-         &lt;xsl:value-of disable-output-escaping='yes'<br />
-                       select="concat($protocol,'/',$temp_url)"/&gt;<br />
+         &lt;xsl:value-of disable-output-escaping='yes' select="concat('file://', substring-after(U, '://'))"/&gt;<br />
         &lt;/xsl:when&gt;<br />
         &lt;xsl:when test="$protocol='unc'"&gt;<br />
           &lt;xsl:value-of disable-output-escaping='yes' select="concat('file://', $display_url2)"/&gt;</code></p>
<p>Now, after you collect your jaw from the floor when you realise that this will create URLs like <code>file://servername/path/to/file</code>, please remind yourself of the earlier caveats of <strong>hack</strong> and <strong>Windows</strong>. This actually took longer that it should have to debug as Firefox on Linux isn&#8217;t insane enough to make this work.</p>
<p>If the POC works out and we decided to go ahead with the GSA use, I&#8217;d be searching for something a bit more robust (and if I&#8217;m working on it, I&#8217;ll share the details of what we decide to do!).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.henaredegan.com/blog/2009/08/25/google-search-appliance-smb-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
