Bug 1002337

Summary: An added identity cannot be removed on an Internal+OpenID auth server
Product: [Retired] Zanata Reporter: Damian Jansen <djansen>
Component: Authentication-OpenIDAssignee: zanata-dev-internal <zanata-dev-internal>
Status: CLOSED WORKSFORME QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.0CC: 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: 2014-07-24 03:04:01 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 Damian Jansen 2013-08-28 23:28:11 UTC
Description of problem:
If a server is set up to be internal auth + openID, a user who has signed up with internal but then added an OpenID identity cannot remove that identity

Version-Release number of selected component (if applicable):
3.0

How reproducible:
Easy always

Steps to Reproduce:
Pre: Server is set to internal + openID authentication methods
1. Sign up to zanata using internal authentication
2. Go to Sidebar->Settings->Manage identities
3. Press Add identity
4. Sign in with an openID
5. View the identities page

Actual results:
No delete button for the added identity

Expected results:
The identity should be delete-able

Additional info:
A quick hack of the .size gt 1 test in identities.xhtml allows this identity to be deleted, without visible problems. Of course, allowing this on an account without an internal auth means the account is no longer accessible.
If possible, a better test would be "has internal auth || size gt 1".

Comment 1 Damian Jansen 2014-07-24 03:04:01 UTC
Fixed by the dashboard/settings rework