<?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>WebCenter Interaction, ALUI, Plumtree blog by Integryst &#187; iRule</title>
	<atom:link href="http://blog.integryst.com/webcenter-interaction/tag/irule/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.integryst.com/webcenter-interaction</link>
	<description>WebCenter Interaction, ALUI, Plumtree</description>
	<lastBuildDate>Thu, 12 Jan 2012 22:54:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Fix KD Handling of HTML Docs</title>
		<link>http://blog.integryst.com/webcenter-interaction/2010/01/21/fix-kd-handling-of-html-docs/</link>
		<comments>http://blog.integryst.com/webcenter-interaction/2010/01/21/fix-kd-handling-of-html-docs/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 04:45:54 +0000</pubDate>
		<dc:creator>Matt Chiste</dc:creator>
				<category><![CDATA[Knowledge Directory]]></category>
		<category><![CDATA[BigIP]]></category>
		<category><![CDATA[iRule]]></category>

		<guid isPermaLink="false">http://blog.integryst.com/webcenter-interaction/?p=46</guid>
		<description><![CDATA[In ALUI 6.5, and following through to 10gR3 and the latest patches, Oracle changed the way documents are opened in the Knowledge Directory.  This change was to get a little better browser compatibility so that when a user clicks on a document in the KD, the user is always presented with the usual Open/Save Dialog [...]]]></description>
			<content:encoded><![CDATA[<p>In ALUI 6.5, and following through to 10gR3 and the latest patches, Oracle changed the way documents are opened in the Knowledge Directory.  This change was to get a little better browser compatibility so that when a user clicks on a document in the KD, the user is always presented with the usual Open/Save Dialog box.</p>
<p>Many WCI clients have HTML files in their Knowledge Directories, whether they&#8217;re crawled in from Publisher, Collaboration Server, or uploaded from some other source.  In version 6.1 and before, the behavior of the portal was simply to open these files directly in the browser, but that changed with 6.5.  Unfortunately, Oracle has asserted that this is &#8220;expected behavior&#8221; and while an enhancement request has been submitted, there are no promises about the behavior changing in 11g. The good news is that there&#8217;s a relatively simple fix for this behavior.  Unfortunately, the &#8220;relatively simple&#8221; fix assumes you&#8217;ve got BigIP load balancing requests to your portal, but if not, hopefully this post will give you some ideas on how to resolve the problem in your environment.</p>
<p>The problem is caused by the portal returning an HTTP header called &#8220;Content-Disposition&#8221;:</p>
<div class="mceTemp">
<dl>
<dt><img class="size-full wp-image-47" title="disposition" src="http://blog.integryst.com/webcenter-interaction/files/2010/01/disposition.PNG" alt="Content Disposition Header" width="446" height="179" /></dt>
<dd>Content Disposition Header</dd>
</dl>
<p>The trick is to remove this header for HTML documents.  I&#8217;ve tried writing ISAPI filters unsuccessfully, but for the clients that needed the fix, they had BigIP. </p>
<p>Hit the link to see the BigIP iRule to resolve this issue.</p></div>
<p><span id="more-46"></span></p>
<pre>if { [HTTP::header Content-Disposition] contains "attachment"}
{
    if { [HTTP::header Content-Type] contains "text/html" }
    {
        HTTP::header remove "Content-Disposition"
    }
}</pre>
<p><img class="alignnone size-full wp-image-75" title="bigip-disposition" src="http://blog.integryst.com/webcenter-interaction/files/2010/01/bigip-disposition.png" alt="bigip-disposition" width="704" height="309" /></p>
<p>This iRule simply says &#8220;if there&#8217;s a Content-Disposition Header, and the Content Type is HTML, remove that header&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.integryst.com/webcenter-interaction/2010/01/21/fix-kd-handling-of-html-docs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

