Skip to content
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

Parameter validation failed, magento:config:set --http-cache-hosts when using hyphens. #4189

Closed
peec opened this issue Apr 18, 2016 · 1 comment

Comments

@peec
Copy link

peec commented Apr 18, 2016

Version: Magento CLI version 2.0.4

Seems that http cache hosts can not have hyphens, this should be allowed as it's a valid domain name.
WORKS:

bin/magento setup:config:set --http-cache-hosts="hellotest.com"

DOES NOT WORK:

bin/magento setup:config:set --http-cache-hosts="hello-test.com"

Result:

bin/magento setup:config:set --http-cache-hosts="hello-test.com"
Invalid http cache hosts 'hello-test.com'



  [InvalidArgumentException]   
  Parameter validation failed 

Hosting providers such as AWS uses hyphens in EC2 instances, so currently we can not set ec2 dns name which is similar to ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com.

@peec
Copy link
Author

peec commented Apr 18, 2016

Seemes to be fixed in #7f200af39724800c247acee07263703d30fc0f6b , MAGETWO-46858 . Closing

@peec peec closed this as completed Apr 18, 2016
magento-team pushed a commit that referenced this issue Jun 25, 2019
- reverting #22536, because of Backward Incompatible changes in the patch release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant