Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in harvest_source_list after deleting a harvest source #495

Open
bzar opened this issue Apr 4, 2022 · 1 comment
Open

Error in harvest_source_list after deleting a harvest source #495

bzar opened this issue Apr 4, 2022 · 1 comment

Comments

@bzar
Copy link
Contributor

bzar commented Apr 4, 2022

  1. Create a harvest source
  2. Delete the harvest source
  3. Call harvest_source_list action with return_last_job_status=False
  4. Everything works, the deleted source is included
  5. Call harvest_source_list action with return_last_job_status=True
  6. ckan.logic.NotAuthorized: User None not authorized to read harvest source f00babab-41a8-4167-98f6-1ebe295c23bb from harvest_source_show_status

I'd provide a PR but I'm not exactly sure how the issue should be resolved. For example:

  1. Skip sources that fail authorization
  2. Skip deleted sources
  3. Provide a placeholder status for deleted sources
@FuhuXia
Copy link
Contributor

FuhuXia commented May 1, 2024

I vote for:
2. Skip deleted sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants