<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1742: Naming of a new package/group can clash with a route</title>
    <link>http://localhost/ticket/1742</link>
    <description>&lt;p&gt;
It is possible to create a group or a dataset called new, or edit, which will then be inaccessible as it is blocked by the existing routes with those names.
&lt;/p&gt;
&lt;p&gt;
We should maintain a list of invalid names in the verification that happens behind the scenes in the UI.
&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/1742</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>ross</dc:creator>

      <pubDate>Wed, 01 Feb 2012 17:17:15 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1742#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1742#comment:1</guid>
      <description>
        &lt;p&gt;
Potentially valid diff, needs test + patch when I have time.
&lt;/p&gt;
&lt;p&gt;
--- a/ckan/controllers/api.py
+++ b/ckan/controllers/api.py
@@ -592,6 +592,8 @@ class &lt;a class="missing wiki"&gt;ApiController?&lt;/a&gt;(&lt;a class="missing wiki"&gt;BaseController?&lt;/a&gt;):
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
def is_slug_valid(self):
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
slug = request.params.get('slug') or &lt;em&gt;
slugtype = request.params.get('type') or &lt;/em&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;p&gt;
+        if slug in ['new', 'edit', 'search']:
+            return self._finish_ok( dict(valid=False) )
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
if slugtype==u'package':
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;
response_data = dict(valid=not bool(package_exists(slug)))
return self._finish_ok(response_data)
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Wed, 01 Feb 2012 17:25:35 GMT</pubDate>
      <title>priority changed</title>
      <link>http://localhost/ticket/1742#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1742#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;priority&lt;/strong&gt;
                changed from &lt;em&gt;awaiting triage&lt;/em&gt; to &lt;em&gt;trivial&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Probably better in the ckan/logic/validators.py: name_validator
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ross</dc:creator>

      <pubDate>Mon, 05 Mar 2012 14:10:15 GMT</pubDate>
      <title>status, milestone changed</title>
      <link>http://localhost/ticket/1742#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/1742#comment:3</guid>
      <description>
          &lt;ul&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;ckan-backlog&lt;/em&gt; to &lt;em&gt;current-ckan-sprint-2012-03-19&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ross</dc:creator>

      <pubDate>Mon, 12 Mar 2012 10:50:21 GMT</pubDate>
      <title>keywords set</title>
      <link>http://localhost/ticket/1742#comment:4</link>
      <guid isPermaLink="false">http://localhost/ticket/1742#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;keywords&lt;/strong&gt;
              &lt;em&gt;[1d]&lt;/em&gt; added
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>ross</dc:creator>

      <pubDate>Mon, 12 Mar 2012 12:26:33 GMT</pubDate>
      <title>keywords, status changed; resolution set</title>
      <link>http://localhost/ticket/1742#comment:5</link>
      <guid isPermaLink="false">http://localhost/ticket/1742#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;keywords&lt;/strong&gt;
              &lt;em&gt;[1d][a:0.5d]&lt;/em&gt; added; &lt;em&gt;[1d]&lt;/em&gt; removed
            &lt;/li&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;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>