-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MDEPLOY-279] Better validation for alt deploy repository mojo parameter #12
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this looks sound, should we rather switch to non-greedy matches should could have avoided this from the start? See my comment in JIRA.
I literally copy+pasted m-d-p regexp from 2.x to be 100% sure it is what it is (to match exactly what 2.x did match). Also, IMHO this IF-ELSE clearly explains what and why happens. Is redundant, but buys it out at clarity IMO. |
OK, let me think about this. If we can make it even more idiotproof then we should do it. |
Do not accept anything but expected format. Fail always if not expected alt repo string passed in, but improve error messages best possible. IF legacy used, provide useful error message giving solution as well.
0d78f76
to
578d82f
Compare
Thanks, will look into new changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Going through now... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have pushed two small changes and left a few open issue, but I general I like the approach.
Extend tests as well.
Looks good to me now, I will run tests again! |
Thanks for bearing with me... |
Do accept proper format ONLY, for legacy provide "solution" and
fail with meaningful error message.
https://issues.apache.org/jira/browse/MDEPLOY-279