ckan/ckanext-harvest

Deleting a harvest source makes it impossible to recreate a new one with the same URL

michelraymond opened this issue · 1 comments

Hello,

I'm using ckan 2.9 and the latest version of ckanext-harvest. After creating and removing a harvest source (using the "Delete and clear source" button), it's impossible to recreate a new one with the same URL. It raises this error:

The form contains invalid entries:
URL: There already is a Harvest Source for this URL (& config)

Even though the harvest source isn't visible, neither on the webUI nor after running the ckan --config=/etc/ckan/default/ckan.ini harvester sources command.

Thanks for your help!

As ckanext-harvest just delete the harvested source as a regular package, I guess you have the same problem when creating a dataset with a name that has been used previously; is that correct?

p.toolkit.get_action('package_delete')(context, data_dict)

If so, then the issue is not specific to ckanext-harvest, but to ckan itself.