Actions
Bug #35534
closedRepo Deletion with no feed url causes a `ArgumentError`
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Description
Deleting repositories that have no feed url causes the following error.
ArgumentError bad argument (expected URI object or URI string) - "/usr/share/ruby/uri/common.rb:739:in `URI'" - "/home/vagrant/katello/app/services/katello/pulp3/repository/yum.rb:15:in `remote_options'" - "/home/vagrant/katello/app/services/katello/pulp3/repository.rb:102:in `block in delete_remote'" - "/home/vagrant/katello/app/services/katello/pulp3/service_common.rb:51:in `ignore_404_exception'" - "/home/vagrant/katello/app/services/katello/pulp3/repository.rb:102:in `delete_remote'" - "/home/vagrant/katello/app/lib/actions/pulp3/repository/delete_remote.rb:11:in `invoke_external_task'"Steps to repro
- Create a custom repo with feed url
- Now remove feed url and update the repo
- Delete the repo
Expected:
Successful deletion
Actual:
Above error
Additional Notes:
When a repo has a feed url a repo remote is created in pulp. Possibly on repo update the remotes are not getting cleaned properly.
Actions