[ 
https://issues.apache.org/jira/browse/AMBARI-23334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sandor Molnar updated AMBARI-23334:
-----------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> 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
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 2.7.0
>
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to