Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

[1.4.12] Private repository with port number not valid anymore #308

Closed
mmaeller opened this issue Jul 30, 2019 · 10 comments
Closed

[1.4.12] Private repository with port number not valid anymore #308

mmaeller opened this issue Jul 30, 2019 · 10 comments

Comments

@mmaeller
Copy link

Description

Private repository with port in address invalid.

How to reproduce

https://myrepo:5001/project

What do you expect

Port is a valid part of the repository URL.

What happened instead

Repo name "myrepo:5001/project" must contain only lowercase, numbers, '-', '_' or '.'

See c0ce28f

mmaeller added a commit to mmaeller/dockerfile-maven that referenced this issue Jul 31, 2019
mmaeller added a commit to mmaeller/dockerfile-maven that referenced this issue Aug 1, 2019
…it number to represent a proper port definition.
mmaeller added a commit to mmaeller/dockerfile-maven that referenced this issue Aug 1, 2019
@buhuan192
Copy link

only 80 port!

@mmaeller
Copy link
Author

mmaeller commented Aug 5, 2019

@buhuan192 Can you tell us why?

@gofman8
Copy link

gofman8 commented Aug 5, 2019

@mmaeller
Copy link
Author

mmaeller commented Aug 5, 2019

I don't get it.

@deveth0
Copy link

deveth0 commented Aug 6, 2019

@buhuan192 bullshit, this would mean no ssl/tls...

@mmaeller I think @SkySonR just wanted to point out the relevant changes which cause this issue. I completely agree, that this is a must have as most companies I work with also use custom private repositories which might be hosted on the same hostname but different ports.

@MatanRubin
Copy link

We're seeing the exact same issue, can't use a private repository with a custom port (which, as said above, is a very common use-case).
Looks like the issue can be easily fixed by changing VALID_REPO_REGEX

@seamonstr
Copy link
Contributor

@mmaeller has got a good fix to this in his branch with a PR pending.

@buhuan192
Copy link

buhuan192 commented Aug 8, 2019

String VALID_REPO_REGEX = "^([a-z0-9_.-])+(\\/[a-z0-9_.-]+)*$";
You are right!
See if the next version can solve this little problem.
Please view the source files:BuildMojo.java

@dmonti
Copy link

dmonti commented Aug 19, 2019

This bug have appeared in v1.4.11 and still happening in v1.4.12

@SlipstreamZA
Copy link

Any idea when the pull request will get merged? Unable to use this with a private repository on a different port at the moment

mattnworb added a commit that referenced this issue Oct 15, 2019
#308 Extend repository validation by allowing port number.
deveth0 added a commit to pro-vision/pv-build-tools that referenced this issue Nov 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants