<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #2231: Base harvester broken on 1.6.1</title>
    <link>http://localhost/ticket/2231</link>
    <description>&lt;p&gt;
On its current version, ckanext-harvest passed a custom schema to package_create and package_update to allow defining an id for new packages (the same as in remote ckan instances) &lt;a class="missing changeset" title="No default repository defined"&gt;[1]&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Recent changes in the logic layer have made that the context object is no longer directly read from the context, but only get from plugins &lt;a class="missing changeset" title="No default repository defined"&gt;[2]&lt;/a&gt;. This makes the schema sent from ckanext-harvest to be ignored and the harvesting fails because the id field is not expected
&lt;/p&gt;
&lt;pre class="wiki"&gt;ValidationError: {'Id': u'The input field id was not expected.'}
&lt;/pre&gt;&lt;p&gt;
We need a way to either:
&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Be more flexible accepting schemas on the logic functions
&lt;/li&gt;&lt;li&gt;Modify the harvester plugin to implement the necessary interface
&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;
&lt;a class="missing changeset" title="No default repository defined"&gt;[1]&lt;/a&gt; &lt;a class="ext-link" href="https://github.com/okfn/ckanext-harvest/blob/master/ckanext/harvest/harvesters/base.py#L115"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckanext-harvest/blob/master/ckanext/harvest/harvesters/base.py#L115&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a class="missing changeset" title="No default repository defined"&gt;[2]&lt;/a&gt; &lt;a class="ext-link" href="https://github.com/okfn/ckan/blob/0c07d3be846777318b35c31325215dff00e99313/ckan/logic/action/create.py#L38"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/blob/0c07d3be846777318b35c31325215dff00e99313/ckan/logic/action/create.py#L38&lt;/a&gt;
&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/2231</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>amercader</dc:creator>

      <pubDate>Mon, 19 Mar 2012 14:28:48 GMT</pubDate>
      <title>milestone changed</title>
      <link>http://localhost/ticket/2231#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/2231#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                changed from &lt;em&gt;ckan-sprint-2012-03-19&lt;/em&gt; to &lt;em&gt;current-ckan-sprint-2012-04-02&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>amercader</dc:creator>

      <pubDate>Mon, 02 Apr 2012 13:52:15 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/2231#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/2231#comment:2</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;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>