Error in harvest_source_list after deleting a harvest source
bzar opened this issue · 1 comments
bzar commented
- Create a harvest source
- Delete the harvest source
- Call
harvest_source_list
action withreturn_last_job_status=False
- Everything works, the deleted source is included
- Call
harvest_source_list
action withreturn_last_job_status=True
ckan.logic.NotAuthorized: User None not authorized to read harvest source f00babab-41a8-4167-98f6-1ebe295c23bb
fromharvest_source_show_status
I'd provide a PR but I'm not exactly sure how the issue should be resolved. For example:
- Skip sources that fail authorization
- Skip deleted sources
- Provide a placeholder status for deleted sources
FuhuXia commented
I vote for:
2. Skip deleted sources