Hide Forgot
When posting a new domain with an id of '' the messages we get back are: "Invalid namespace: ''. Namespace must only contain alphanumeric characters." and "Namespace '' is too short. Minimum length is 1 characters." Because we display the errors the server returns to the user this causes visual confusion - we should return a single error for the case '': "Namespace '' is too short. Minimum length is 1 characters." (or some other better variation)
When input existed domain name and not allowed domain name such as openshift, will also prompt "Your namespace must be letters or numbers with no spaces or symbols" error massage.I think this error message is not proper. Reproduce: 1,Log in and go to the domain name alter page. 2,Input the existed domain name or not allowed domain name. 3,Click save button.
Did this get fixed?
Not on PROD
It is not fixed in devenv_1178 yet, and I found some other problem.When I input the existed namespace, and click the save button , it will return "namespace 'domaintest00' already in use. Please choose another", but I input none namespace and click the save button, the previous error message still existe. You can refer to the screenshot attachment.
Created attachment 584849 [details] The Screenshot of error message.
Had a scathing twitter post about this - MUST FIX :)
Git rev 2894737fac99d fixes the issue mentioned in the description i.e. it returns only one error in case of failures. For comment-4, broker is returning only one error 'Domain xxx already in use. please choose another' but site is showing more errors. Assigning to clayton for further investigation.
The duplicate error message does not prompt when input '' namespace . But the problem in comment-4 is still exist. You can reproduce it in website in follow steps. 1.create a domain in website 2.go the page of changing domain. 3.input existed domain name and click the save button, then "Namespace 'domiantest000' already in use. Please choose another" will be prompted. 4.input domain name with empty, and click the save. 5.The "Namespace 'domiantest000' already in use. Please choose another" will still exist in the page. I think it is page's problem. I suspect it has no bussiness with the broker.
The problem in comment 8 is a dupe of bug 822018 - the JS was showing it. *** This bug has been marked as a duplicate of bug 822018 ***