Skip to content

Conversation

ncdc
Copy link

@ncdc ncdc commented Mar 5, 2015

Fixes #241

Signed-off-by: Andy Goldstein agoldste@redhat.com

@ncdc ncdc force-pushed the remove-max-component-length branch from f954155 to 9298f35 Compare March 5, 2015 15:15
@ncdc
Copy link
Author

ncdc commented Mar 5, 2015

@stevvooe spurious unrelated test failure?

@dmp42
Copy link
Contributor

dmp42 commented Mar 5, 2015

Seems that one is popping from time to time...
Probably need to investigate.

@ncdc
Copy link
Author

ncdc commented Mar 5, 2015

@dmp42 can you kick circle to get it to retest?

@dmp42
Copy link
Contributor

dmp42 commented Mar 5, 2015

Restarted.
For future investigation - log from the failed build: https://gist.github.com/dmp42/7ba754f8985562efc7d3

@stevvooe
Copy link
Collaborator

stevvooe commented Mar 6, 2015

@ncdc While we're at it, should we remove RepositoryNameMaxComponents? This is also effectively enforced by the maximum number of characters.

@stevvooe stevvooe added the bug label Mar 6, 2015
@stevvooe stevvooe added this to the Registry/Beta milestone Mar 6, 2015
@stevvooe
Copy link
Collaborator

stevvooe commented Mar 6, 2015

@ncdc Also, let's update the specification (doc/spec/api.md).

@ncdc
Copy link
Author

ncdc commented Mar 6, 2015

While we're at it, should we remove RepositoryNameMaxComponents? This is also effectively enforced by the maximum number of characters

So there's no longer a need to restrict it to 5?

Also, let's update the specification (doc/spec/api.md).

Will do, once we settle on RepositoryNameMaxComponents. Will do tomorrow - I need a night off 😄

@ncdc
Copy link
Author

ncdc commented Mar 6, 2015

@stevvooe the spec currently says that a name must have at least 2 components and must be less than 256 characters. The only mention of a 30-character limit is a reference to the repository names as we know of them today. There is also no mention of a maximum of 5 components.

@stevvooe
Copy link
Collaborator

stevvooe commented Mar 6, 2015

@jlhawn @shin- PTAL

@stevvooe
Copy link
Collaborator

stevvooe commented Mar 6, 2015

LGTM!

@ncdc
Copy link
Author

ncdc commented Mar 6, 2015

@stevvooe did you want to remove the 5 component max?

@stevvooe
Copy link
Collaborator

stevvooe commented Mar 6, 2015

@ncdc Please go ahead.

@ncdc
Copy link
Author

ncdc commented Mar 6, 2015

@stevvooe ok, will do

@ncdc
Copy link
Author

ncdc commented Mar 6, 2015

@stevvooe 5 max removed. I can squash if you need.

@dmcgowan
Copy link
Collaborator

dmcgowan commented Mar 6, 2015

LGTM

// RepositoryNameMinComponents is the minimum number of slash-delimited
// components that a repository name must have
RepositoryNameMinComponents = 1

// RepositoryNameMaxComponents is the maximum number of slash-delimited
// components that a repository name must have
RepositoryNameMaxComponents = 5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RepositoryNameRegexp needs to be modified to not restrict this, as well.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, forgot to make that change. I knew that was there but with
everything going on today I missed it. I'll get it in later tonight.
On Fri, Mar 6, 2015 at 6:03 PM Stephen Day notifications@github.com wrote:

In registry/api/v2/names.go
#242 (comment):

// RepositoryNameMinComponents is the minimum number of slash-delimited
// components that a repository name must have
RepositoryNameMinComponents = 1
  • // RepositoryNameMaxComponents is the maximum number of slash-delimited
  • // components that a repository name must have
  • RepositoryNameMaxComponents = 5

RepositoryNameRegexp needs to be modified to not restrict this, as well.


Reply to this email directly or view it on GitHub
https://github.com/docker/distribution/pull/242/files#r25985918.

Fixes distribution#241

Signed-off-by: Andy Goldstein <agoldste@redhat.com>
@ncdc ncdc force-pushed the remove-max-component-length branch from 97bb8d5 to e1e7248 Compare March 7, 2015 00:56
@stevvooe
Copy link
Collaborator

stevvooe commented Mar 7, 2015

LGTM!

stevvooe added a commit that referenced this pull request Mar 7, 2015
Remove max repository component length restriction
@stevvooe stevvooe merged commit ddde6b4 into distribution:master Mar 7, 2015
@stevvooe stevvooe modified the milestones: Registry/2.0.0-beta, Registry/2.0 Mar 31, 2015
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Apr 22, 2021
…ngth

Remove max repository component length restriction
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Jan 19, 2022
…ngth

Remove max repository component length restriction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove repository component length restriction
4 participants