You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Sandor Molnar (JIRA)" <ji...@apache.org> on 2018/03/23 08:14:00 UTC
[jira] [Created] (AMBARI-23334) Provider URL validator incorrect
when setting up SSO via Ambari CLI
Sandor Molnar created AMBARI-23334:
--------------------------------------
Summary: Provider URL validator incorrect when setting up SSO via Ambari CLI
Key: AMBARI-23334
URL: https://issues.apache.org/jira/browse/AMBARI-23334
Project: Ambari
Issue Type: Bug
Components: ambari-server
Affects Versions: 2.7.0
Reporter: Sandor Molnar
Assignee: Sandor Molnar
Fix For: 2.7.0
When setting the URL for the SSO provider while runningĀ {{ambari-server setup-sso}}, valid URLs are rejected.
{noformat}
[root@c7402 ~]# ambari-server setup-sso
Using python /usr/bin/python
Setting up SSO authentication properties...
Do you want to configure SSO authentication [y/n] (y)?y
Provider URL [URL] (http://example.com):https://c7402.ambari.apache.org:8443/gateway/knoxsso/api/v1/websso
Invalid provider URL
Provider URL [URL] (http://example.com):c7402.ambari.apache.org:8443
Public Certificate pem (empty) (empty line to finish input):
{noformat}
Cause:
The RegEx validating the URL is only allowing hostname and port values, when it should allow for absolute URLs.
{code:java|title=ambari_server/setupSso.py:72}
provider_url = get_validated_string_input("Provider URL [URL] ({0}):".format(provider_url), provider_url, REGEX_HOSTNAME_PORT,
"Invalid provider URL", False){code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)