[ 
https://issues.apache.org/jira/browse/AMBARI-23334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16417775#comment-16417775
 ] 

Hudson commented on AMBARI-23334:
---------------------------------

SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #8933 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/8933/])
[AMBARI-23334] Using the proper regular expression to validate SSO (m.magyar3: 
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=7a318d95d7c142dbfd10eb4c26c2cb2d8ad89c1f])
* (edit) ambari-server/src/main/python/ambari_server/setupSso.py
* (edit) ambari-server/src/test/python/TestSetupSso.py


> 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