<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1540: Search API returns an error if empty parameters are provided</title>
    <link>http://localhost/ticket/1540</link>
    <description>&lt;p&gt;
Both in 1.5.1b:
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="http://thedatahub.org/api/search/dataset?groups=lodcloud&amp;amp;title="&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://thedatahub.org/api/search/dataset?groups=lodcloud&amp;amp;title=&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
and 1.5.2a (current master):
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="http://test.ckan.net/api/search/dataset?groups=lodcloud&amp;amp;title="&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://test.ckan.net/api/search/dataset?groups=lodcloud&amp;amp;title=&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Although the error message in 1.5.2a is more verbose:
&lt;/p&gt;
&lt;p&gt;
"Bad request - Bad search option: HTTP code=400, reason=org.apache.lucene.queryParser.&lt;a class="missing wiki"&gt;ParseException?&lt;/a&gt;: Cannot parse 'groups:lodcloud title:': Encountered \"&amp;lt;EOF&amp;gt;\" at line 1, column 22. Was expecting one of:     \"(\" ...     \"*\" ...     &amp;lt;QUOTED&amp;gt; ...     &amp;lt;TERM&amp;gt; ...     &amp;lt;PREFIXTERM&amp;gt; ...     &amp;lt;WILDTERM&amp;gt; ...     \"[\" ...     \"{\" ...     &amp;lt;NUMBER&amp;gt; ..."
&lt;/p&gt;
&lt;p&gt;
Some parameter validation before sending it to Solr should do the trick
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1540</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>amercader</dc:creator>

      <pubDate>Mon, 19 Dec 2011 10:49:54 GMT</pubDate>
      <title>status, milestone changed; owner set</title>
      <link>http://localhost/ticket/1540#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1540#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;owner&lt;/strong&gt;
              set to &lt;em&gt;amercader&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;assigned&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                changed from &lt;em&gt;current-ckan-sprint-2011-12-19&lt;/em&gt; to &lt;em&gt;ckan-sprint-2012-01-09&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>amercader</dc:creator>

      <pubDate>Sun, 08 Jan 2012 22:06:25 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1540#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1540#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;assigned&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Fixed in b80da7a4fe
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>