Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

registry host with trailing forward slash on registry add cannot be queried or removed #208

Closed
nurmi opened this issue May 30, 2019 · 0 comments
Assignees
Labels

Comments

@nurmi
Copy link
Member

nurmi commented May 30, 2019

There is a bug that is preventing proper internal encoding/formatting of registry host strings if they are added to the system with a trailing forward slash. The behavior can be reproduced like so:

# anchore-cli registry add badregistry/ foo bar --skip-validate
Registry: badregistry/
User: foo
Type: docker_v2
Verify TLS: True
Created: 2019-05-30T16:13:34Z
Updated: 2019-05-30T16:13:34Z


# anchore-cli registry list
Registry            Type             User          
badregistry/        docker_v2        foo           

# anchore-cli registry get badregistry/
Error: registry not found in DB
HTTP Code: 404
Detail: {'error_codes': []}

The fix will involve investigation of which component is not handling the trailing slash correctly as well as a review of the url encode/decode points between the client, api service and catalog service.

@nurmi nurmi added the bug label May 30, 2019
@nurmi nurmi self-assigned this May 30, 2019
@nurmi nurmi closed this as completed in 37f11e3 Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant