[OpenId] Failed to login with Yahoo ID without login to Yahoo services with the same browser

Description

Description of problem:

When trying to login with Yahoo Id, if you have not login to any other Yahoo services, following error message appeared:
Server Connection Closed
Description: The server "real.login.yahoo.com" closed the connection before the transaction was completed.

Version-Release number of selected component (if applicable):
Zanata 3.5.0-SNAPSHOT (git-server-3.4.1-67-g5204cc5)
Zanata 3.4.2-SNAPSHOT (git-server-3.4.1-9-g1c4fd47)

How reproducible:
Easy and Always if your browser have not login to any of yahoo service for a long time.

Steps to Reproduce:
0. Use a browser that have not login to yahoo service.
1. For Zanata server that support Yahoo (open id) Authentication.
2. Click "Login"
3. Click "Yahoo"

Actual results:
Error messages:
Server Connection Closed

Description: The server "real.login.yahoo.com" closed the connection before the transaction was completed.

Expected results:
Login or Agreement form should be shown.

Additional info:
Workaround:
1. Go to www.yahoo.com.
2. Login to yahoo mail

Then yahoo login should work.

Server log:
04:57:41,916 INFO [org.zanata.security.ZanataOpenId] (http-/0.0.0.0:8080-13) openid: https://me.yahoo.com/null
04:57:41,917 INFO [org.openid4java.discovery.Discovery] (http-/0.0.0.0:8080-13) Starting discovery on URL identifier: https://me.yahoo.com/null
04:57:41,917 INFO [org.openid4java.util.HttpCache] (http-/0.0.0.0:8080-13) Returning cached HEAD response for https://me.yahoo.com/null
04:57:41,917 INFO [org.openid4java.util.HttpCache] (http-/0.0.0.0:8080-13) Returning cached GET response for https://open.login.yahooapis.com/openid20/user_profile/xrds
04:57:41,927 INFO [org.openid4java.discovery.yadis.YadisResolver] (http-/0.0.0.0:8080-13) Yadis discovered 1 endpoints from: https://me.yahoo.com/null
04:57:41,928 INFO [org.openid4java.discovery.Discovery] (http-/0.0.0.0:8080-13) Discovered 1 OpenID endpoints.
04:57:41,928 INFO [org.openid4java.consumer.ConsumerManager] (http-/0.0.0.0:8080-13) Trying to associate with https://open.login.yahooapis.com/openid/op/auth attempts left: 4
04:57:41,928 INFO [org.openid4java.consumer.ConsumerManager] (http-/0.0.0.0:8080-13) Found an existing association: 0_j5JEKuNzFFWvUXm9pWYuF119jpWOICq1h6YaPVAXInj_mgjgmenRTolF0pHMv5vdWTcItZ2LnkALPhDKZo8CcsopCgVhDQS333nU5vZT7yc8HHJx0KFMkJrlbMCtEboskULuY-
04:57:41,928 INFO [org.openid4java.consumer.ConsumerManager] (http-/0.0.0.0:8080-13) Creating authentication request for OP-endpoint: https://open.login.yahooapis.com/openid/op/auth claimedID: https://me.yahoo.com/null OP-specific ID: https://me.yahoo.com/null
04:57:41,929 INFO [org.openid4java.server.RealmVerifier] (http-/0.0.0.0:8080-13) Return URL: http://zanata-master-openid.lab.eng.bne.redhat.com:8080/openid.seam matches realm: http://zanata-master-openid.lab.eng.bne.redhat.com:8080/openid.seam

Environment

None

Assignee

Carlos Munoz

Reporter

Ding-Yi Chen

Labels

Tested Version/s

None

Components

Priority

unspecified
Configure