<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Extending search field with suggestion box</title>
	<atom:link href="http://www.frederikvig.com/2009/09/extending-search-field-with-suggestion-box/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.frederikvig.com/2009/09/extending-search-field-with-suggestion-box/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=extending-search-field-with-suggestion-box</link>
	<description></description>
	<lastBuildDate>Mon, 06 Sep 2010 06:28:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Part 5: Creating the search page – Create an EPiServer site from scratch &#124; Frederik Vig - ASP.NET developer</title>
		<link>http://www.frederikvig.com/2009/09/extending-search-field-with-suggestion-box/comment-page-1/#comment-124</link>
		<dc:creator>Part 5: Creating the search page – Create an EPiServer site from scratch &#124; Frederik Vig - ASP.NET developer</dc:creator>
		<pubDate>Tue, 15 Dec 2009 23:07:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=212#comment-124</guid>
		<description>[...] also added suggestion functionality to the quick search field. See my post Extending search field with suggestion box, for more information. All the code is also available on [...]</description>
		<content:encoded><![CDATA[<p>[...] also added suggestion functionality to the quick search field. See my post Extending search field with suggestion box, for more information. All the code is also available on [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederik Vig</title>
		<link>http://www.frederikvig.com/2009/09/extending-search-field-with-suggestion-box/comment-page-1/#comment-40</link>
		<dc:creator>Frederik Vig</dc:creator>
		<pubDate>Mon, 12 Oct 2009 21:14:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=212#comment-40</guid>
		<description>@Stefan - Updated the Get method now. 
@Magnus - Added a filter to remove all pages that the Everyone group doesn&#039;t have access to.</description>
		<content:encoded><![CDATA[<p>@Stefan &#8211; Updated the Get method now.<br />
@Magnus &#8211; Added a filter to remove all pages that the Everyone group doesn&#8217;t have access to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederik Vig</title>
		<link>http://www.frederikvig.com/2009/09/extending-search-field-with-suggestion-box/comment-page-1/#comment-38</link>
		<dc:creator>Frederik Vig</dc:creator>
		<pubDate>Fri, 09 Oct 2009 10:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=212#comment-38</guid>
		<description>Thanks for both your comments!
@Stefan - I think I understand what you mean. I&#039;ll do a test and update the code accordingly.
@Magnus - You&#039;re absolutely right! I&#039;m going to update the code this weekend.</description>
		<content:encoded><![CDATA[<p>Thanks for both your comments!<br />
@Stefan &#8211; I think I understand what you mean. I&#8217;ll do a test and update the code accordingly.<br />
@Magnus &#8211; You&#8217;re absolutely right! I&#8217;m going to update the code this weekend.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Magnus Aycox</title>
		<link>http://www.frederikvig.com/2009/09/extending-search-field-with-suggestion-box/comment-page-1/#comment-37</link>
		<dc:creator>Magnus Aycox</dc:creator>
		<pubDate>Fri, 09 Oct 2009 07:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=212#comment-37</guid>
		<description>Nice post. But... 
If you are to cache the resulting page names and you are filtering on the current users permissions you open up for faulty or worse, insecure, behaviour. 
What if the user that visits the search page has got admin permissions thereby collecting all pages of the site including all the business secrets (which of course includes compromising secrets in the page name). When the average Joe user visits the site he gets served with all these juicy page names that is above his access level. 
Even worse in case that you have used SearchDataSource because then it&#039;s not merely the page names that are exposed. 
These flaws corrected, this makes for a mean auto complete... (Of course even &quot;meaner&quot; if used with the access flaw ;o)</description>
		<content:encoded><![CDATA[<p>Nice post. But&#8230;<br />
If you are to cache the resulting page names and you are filtering on the current users permissions you open up for faulty or worse, insecure, behaviour.<br />
What if the user that visits the search page has got admin permissions thereby collecting all pages of the site including all the business secrets (which of course includes compromising secrets in the page name). When the average Joe user visits the site he gets served with all these juicy page names that is above his access level.<br />
Even worse in case that you have used SearchDataSource because then it&#8217;s not merely the page names that are exposed.<br />
These flaws corrected, this makes for a mean auto complete&#8230; (Of course even &#8220;meaner&#8221; if used with the access flaw ;o)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Forsberg</title>
		<link>http://www.frederikvig.com/2009/09/extending-search-field-with-suggestion-box/comment-page-1/#comment-35</link>
		<dc:creator>Stefan Forsberg</dc:creator>
		<pubDate>Tue, 06 Oct 2009 08:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=212#comment-35</guid>
		<description>This is really offtopic and I realise you didn&#039;t write the caching methods, but may I suggest you change the way it fetches the data from cache?

At the moment it&#039;s something like this (pseudcode):
if(HttpContext.Current.Cache[key] == null) set default value, otherwise return HttpContext.Current.Cache[key] cast to T. The problem with that is that there&#039;s a chance (however unlikely) for a race condition here if the item with key is removed from cache after you do the null check. You&#039;ll then get a exception, which can be somewhat of a pain to localize.

I think it would be better to do something like this  (this does requiere T to be ref type though):
var value = HttpContext.Current.Cache[key] as T. If value is null return the default otherwise return value. 

Hope that made sense.</description>
		<content:encoded><![CDATA[<p>This is really offtopic and I realise you didn&#8217;t write the caching methods, but may I suggest you change the way it fetches the data from cache?</p>
<p>At the moment it&#8217;s something like this (pseudcode):<br />
if(HttpContext.Current.Cache[key] == null) set default value, otherwise return HttpContext.Current.Cache[key] cast to T. The problem with that is that there&#8217;s a chance (however unlikely) for a race condition here if the item with key is removed from cache after you do the null check. You&#8217;ll then get a exception, which can be somewhat of a pain to localize.</p>
<p>I think it would be better to do something like this  (this does requiere T to be ref type though):<br />
var value = HttpContext.Current.Cache[key] as T. If value is null return the default otherwise return value. </p>
<p>Hope that made sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twitted by krirav</title>
		<link>http://www.frederikvig.com/2009/09/extending-search-field-with-suggestion-box/comment-page-1/#comment-31</link>
		<dc:creator>Twitted by krirav</dc:creator>
		<pubDate>Tue, 29 Sep 2009 07:43:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=212#comment-31</guid>
		<description>[...] This post was Twitted by krirav [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was Twitted by krirav [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twitted by ravnevand</title>
		<link>http://www.frederikvig.com/2009/09/extending-search-field-with-suggestion-box/comment-page-1/#comment-30</link>
		<dc:creator>Twitted by ravnevand</dc:creator>
		<pubDate>Tue, 29 Sep 2009 07:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=212#comment-30</guid>
		<description>[...] This post was Twitted by ravnevand [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was Twitted by ravnevand [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Webmaster Crap &#187; Blog Archive &#187; Extending search field with suggestion box &#124; Frederik Vig - ASP &#8230;</title>
		<link>http://www.frederikvig.com/2009/09/extending-search-field-with-suggestion-box/comment-page-1/#comment-25</link>
		<dc:creator>Webmaster Crap &#187; Blog Archive &#187; Extending search field with suggestion box &#124; Frederik Vig - ASP &#8230;</dc:creator>
		<pubDate>Fri, 18 Sep 2009 01:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=212#comment-25</guid>
		<description>[...] Read more from the original source: Extending search field with suggestion box &#124; Frederik Vig - ASP &#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] Read more from the original source: Extending search field with suggestion box | Frederik Vig &#8211; ASP &#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Extending search field with suggestion box Hello CMS - the best cms website</title>
		<link>http://www.frederikvig.com/2009/09/extending-search-field-with-suggestion-box/comment-page-1/#comment-24</link>
		<dc:creator>Extending search field with suggestion box Hello CMS - the best cms website</dc:creator>
		<pubDate>Thu, 17 Sep 2009 17:29:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.frederikvig.com/?p=212#comment-24</guid>
		<description>[...] the original post:  Extending search field with suggestion box           By admin &#124; category: cms &#124; tags: aol, cms, code, fusion-context, help-users, [...]</description>
		<content:encoded><![CDATA[<p>[...] the original post:  Extending search field with suggestion box           By admin | category: cms | tags: aol, cms, code, fusion-context, help-users, [...]</p>
]]></content:encoded>
	</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! -->