Bug 1108454

Summary: [OpenId] Failed to login with Yahoo ID without login to Yahoo services with the same browser
Product: [Retired] Zanata Reporter: Ding-Yi Chen <dchen>
Component: Authentication-OpenIDAssignee: Carlos Munoz <camunoz>
Status: CLOSED UPSTREAM QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.4CC: zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-31 01:16:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ding-Yi Chen 2014-06-12 05:18:07 UTC
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

Comment 1 Zanata Migrator 2015-07-31 01:16:02 UTC
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-390