Red Hat Bugzilla – Bug 997567
misleading help text for adding alias.
Last modified: 2015-05-14 21:29:51 EDT
I think the idea here is simply to make the error text more understandable. Users need to know they can't create aliases for anything in the $CLOUD_DOMAIN.
+++ This bug was initially created as a clone of Bug #997320 +++
Description of problem:
When trying to enter an alias from the UI for my app, the help text is misleading and incorrect
Enter your custom domain name. e.g. www.example.com or something.example.com
If I were to put test.example.com it will display the error. "Invalid Server Alias 'ppp.example.com' specified". From the code, it looks like if the instance's hostname has example.com as part of the domain name it will be flagged as error, therefore the help text in the UI is incorrect.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. In the UI's add alias text box, enter something like test.example.com
failed with the error similar to Invalid Server Alias 'ppp.example.com' specified"
--- Additional comment from Brenton Leanhardt on 2013-08-15 10:36:53 EDT ---
Does this happen in Online if you choose an rhcloud.com domain for your alias? If so we should work on the bug there.
--- Additional comment from Peter Ruan on 2013-08-15 11:43:56 EDT ---
Yes, if I were to put test.rhcloud.com as my alias it throws the same error. I think it's the regular expression that's flagging it.
Should explain blacklisted domains to users via error messages and change help.
Made slightly less vague in https://github.com/openshift/origin-server/pull/3451
Commit pushed to master at https://github.com/openshift/origin-server
Bug 997567 - The alias error message is too vague
Test on devenv_3683, and when I add an alias as "example.dev.rhcloud.com", it would return "The specified alias is not allowed: 'example.dev.rhcloud.com'" as expected. So verified it, thanks!