Actions
Issue #1073
closedwrong error msg on delete rpm from nonexisting repo
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.7.0 Beta
Platform Release:
2.8.0
OS:
RHEL 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:
Description
If to delete a rpm from a nonexisting repo, there is no error message that such a repo doesn't exist. Instead it says "Nth was found". A user can take it as a rpm s/he wants to delete doesn't exist. I expect a msg that a repo is not found.
>> rpm -qa pulp-server
pulp-server-2.7.0-0.3.beta.el7.noarch
>> pulp-admin rpm repo list
+----------------------------------------------------------------------+
RPM Repositories
+----------------------------------------------------------------------+
Id: zoo_repo
Display Name: zoo_repo
Description: None
Content Unit Counts:
Erratum: 4
Package Category: 1
Package Group: 2
Rpm: 32
>> pulp-admin rpm repo remove rpm --repo-id zoo --str-eq='name=dog'
This command may be exited via ctrl+c without affecting the request.
[\]
Running...
Nothing found that matches the given criteria.
I expect error that repo is not found as for
>> pulp-admin rpm repo sync run --repo-id zoo
+----------------------------------------------------------------------+
Synchronizing Repository [zoo]
+----------------------------------------------------------------------+
The following resource(s) could not be found:
zoo (repo_id)
Updated by ipanova@redhat.com over 9 years ago
- Tags Easy Fix added
we should add here validation of the repo https://github.com/pulp/pulp/blob/master/server/pulp/server/webservices/views/repositories.py#L1252 like here https://github.com/pulp/pulp/blob/master/server/pulp/server/webservices/views/repositories.py#L1199
Updated by amacdona@redhat.com over 9 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to abradshaw@redhat.com
Updated by amacdona@redhat.com over 9 years ago
- Status changed from ASSIGNED to NEW
- Assignee deleted (
abradshaw@redhat.com)
Updated by bmbouter over 9 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to amacdona@redhat.com
- Triaged changed from No to Yes
Updated by amacdona@redhat.com over 9 years ago
This bug can be fixed easily, but it should wait until https://github.com/pulp/pulp/pull/1931 has been merged to avoid fixing the same problem twice, once with pymongo, once with mongoengine.
Updated by amacdona@redhat.com over 9 years ago
- Status changed from ASSIGNED to MODIFIED
Updated by amacdona@redhat.com about 9 years ago
- Status changed from MODIFIED to NEW
Updated by amacdona@redhat.com about 9 years ago
- Assignee deleted (
amacdona@redhat.com)
Updated by amacdona@redhat.com about 9 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to amacdona@redhat.com
- Platform Release set to 2.8.0
Updated by amacdona@redhat.com about 9 years ago
- Status changed from ASSIGNED to MODIFIED
Updated by dkliban@redhat.com almost 9 years ago
- Status changed from MODIFIED to 5
Updated by dkliban@redhat.com almost 9 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
Actions