commit
679044574a
2 changed files with 2 additions and 2 deletions
|
@ -186,7 +186,7 @@ def process_oauth(func):
|
||||||
normalized = [part.strip() for part in auth.split(' ') if part]
|
normalized = [part.strip() for part in auth.split(' ') if part]
|
||||||
if normalized[0].lower() != 'bearer' or len(normalized) != 2:
|
if normalized[0].lower() != 'bearer' or len(normalized) != 2:
|
||||||
logger.debug('Invalid oauth bearer token format.')
|
logger.debug('Invalid oauth bearer token format.')
|
||||||
return
|
return func(*args, **kwargs)
|
||||||
|
|
||||||
token = normalized[1]
|
token = normalized[1]
|
||||||
_validate_and_apply_oauth_token(token)
|
_validate_and_apply_oauth_token(token)
|
||||||
|
|
|
@ -24,7 +24,7 @@ class ListRepositoryTags(RepositoryParamResource):
|
||||||
def get(self, args, namespace, repository):
|
def get(self, args, namespace, repository):
|
||||||
repo = model.repository.get_repository(namespace, repository)
|
repo = model.repository.get_repository(namespace, repository)
|
||||||
if not repo:
|
if not repo:
|
||||||
abort(404)
|
raise NotFound()
|
||||||
|
|
||||||
def tag_view(tag):
|
def tag_view(tag):
|
||||||
tag_info = {
|
tag_info = {
|
||||||
|
|
Reference in a new issue