Project

Profile

Help

Issue #600

closed

repos and users named with a single period

Added by igulina@redhat.com over 7 years ago. Updated about 3 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.5
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:
It's possible to create a repo named '.' (period), but after it's not possible to do anything with this repo, e.g. to update or delete.

Version-Release number of selected component (if applicable):

rpm -qa | grep pulp-server

pulp-server-2.5.0-0.14.beta.el6.noarch

How reproducible:
always

Steps to Reproduce:

pulp-admin docker repo create --repo-id=' '

Validation failed for argument [--repo-id]: value must contain only letters,
numbers, underscores, periods and hyphens

pulp-admin docker repo create --repo-id='.'

Repository [.] successfully created

pulp-admin docker repo create --repo-id='-'

Repository [-] successfully created

pulp-admin -u admin -p admin docker repo list

--------------------------------------------------------------------
Docker Repositories
--------------------------------------------------------------------

Id: zoo
Display Name: zoo
Description: None
Content Unit Counts:

Id: _
Display Name: _
Description: None
Content Unit Counts:

Id: woo.doo
Display Name: woo.doo
Description: None
Content Unit Counts:

Id: .
Display Name: .
Description: None
Content Unit Counts:

Id: -
Display Name: -
Description: None
Content Unit Counts:

Id: 1
Display Name: 1
Description: None
Content Unit Counts:

Id: _
Display Name: _
Description: None
Content Unit Counts:

pulp-admin -u admin -p admin docker repo update --repo-id '_' --description='update underscore repo'

Repository [_] successfully updated

pulp-admin -u admin -p admin docker repo list

--------------------------------------------------------------------
Docker Repositories
--------------------------------------------------------------------

Id: zoo
Display Name: zoo
Description: None
Content Unit Counts:

Id: woo.doo
Display Name: woo.doo
Description: None
Content Unit Counts:

Id: .
Display Name: .
Description: None
Content Unit Counts:

Id: _
Display Name: _
Description: None
Content Unit Counts:

Id: _
Display Name: _
Description: update underscore repo
Content Unit Counts:

pulp-admin -u admin -p admin docker repo update --repo-id . --description='update period repo'

An unexpected error has occurred. More information can be found in the client
log file ~/.pulp/admin.log.

pulp-admin -u admin -p admin docker repo delete --repo-id='.'

The web server reported an error trying to access the Pulp application. The
likely cause is that the pulp-manage-db script has not been run prior to
starting the server. More information can be found in Apache's error log file on
the server itself.

pulp-admin -u admin -p admin docker repo delete --repo-id '.'

The web server reported an error trying to access the Pulp application. The
likely cause is that the pulp-manage-db script has not been run prior to
starting the server. More information can be found in Apache's error log file on
the server itself.

less ~/.pulp/admin.log

2014-10-30 17:00:45,829 - ERROR - Client-side exception occurred
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp/client/extensions/core.py", line 478, in run
exit_code = Cli.run(self, args)
File "/usr/lib/python2.6/site-packages/okaara/cli.py", line 974, in run
exit_code = command_or_section.execute(self.prompt, remaining_args)
File "/usr/lib/python2.6/site-packages/pulp/client/extensions/extensions.py", line 224, in execute
return self.method(*arg_list, **clean_kwargs)
File "/usr/lib/python2.6/site-packages/pulp/client/commands/repo/cudl.py", line 171, in run
delete_task = self.context.server.repo.delete(self.repo_id).response_body
File "/usr/lib/python2.6/site-packages/pulp/bindings/repository.py", line 100, in delete
return self.server.DELETE (path)
File "/usr/lib/python2.6/site-packages/pulp/bindings/server.py", line 90, in DELETE
return self._request('DELETE', path, body=body)
File "/usr/lib/python2.6/site-packages/pulp/bindings/server.py", line 151, in _request
self._handle_exceptions(response_code, response_body)
File "/usr/lib/python2.6/site-packages/pulp/bindings/server.py", line 187, in _handle_exceptions
raise exceptions.ApacheServerException(response_body)
ApacheServerException
2014-10-30 17:01:22,244 - ERROR - Client-side exception occurred
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp/client/extensions/core.py", line 478, in run
exit_code = Cli.run(self, args)
File "/usr/lib/python2.6/site-packages/okaara/cli.py", line 974, in run
exit_code = command_or_section.execute(self.prompt, remaining_args)
File "/usr/lib/python2.6/site-packages/pulp/client/extensions/extensions.py", line 224, in execute
return self.method(*arg_list, **clean_kwargs)
File "/usr/lib/python2.6/site-packages/pulp_docker/extensions/admin/cudl.py", line 183, in run
scratchpad = response.get(u'scratchpad', {})
AttributeError: 'list' object has no attribute 'get'

+ This bug was cloned from Bugzilla Bug #1159071 +

Also available in: Atom PDF