← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1687888] Re: creating a federation protocol returns Bad Request instead of Conflict

 

I was unable to recreate this locally. I took the following steps:

$ openstack identity provider list -f yaml
- Description: null
  Enabled: true
  ID: myidp

$ openstack mapping list -f yaml
- ID: myidp_mapping

$ openstack mapping show myidp_mapping -f yaml
id: myidp_mapping
rules:
- local:
  - group:
      domain:
        name: Default
      name: federated_users
    user:
      name: '{0}'
  remote:
  - type: HTTP_OIDC_EMAIL

$ cat mapping.json 
{
    "protocol": {
        "mapping_id": "myidp_mapping"
    }
}

$ curl -X PUT -H "X-Auth-Token: $TOKEN" -H "Content-Type: application/json" -d @mapping.json http:/
/127.0.0.1:35357/v3/OS-FEDERATION/identity_providers/myidp/protocols/saml2                                                          
{"protocol": {"mapping_id": "myidp_mapping", "id": "saml2", "links": {"self": "http://127.0.0.1:35357/v3/OS-FEDERATION/identity_providers/myidp/protocols/saml2";, "identity_provider": "http://127.0.0.1:35357/v3/OS-FEDERATION/identity_providers/myidp"}}}

$ curl -X PUT -H "X-Auth-Token: $TOKEN" -H "Content-Type: application/json" -d @mapping.json http:/
/127.0.0.1:35357/v3/OS-FEDERATION/identity_providers/myidp/protocols/saml2
{"error": {"message": "Conflict occurred attempting to store federation_protocol - Duplicate entry found with ID saml2.", "code": 409, "title": "Conflict"}}


Marking this as invalid for now. If there is other relevant information required to reproducing this, please let me know and I'll reassess.

** Changed in: keystone
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1687888

Title:
  creating a federation protocol returns Bad Request instead of Conflict

Status in OpenStack Identity (keystone):
  Invalid

Bug description:
  Do as the following:
  1 PUT /v3/OS-FEDERATION/identity_providers/keystone-idp/protocols/saml2       
    result:ok

  2.PUT /v3/OS-FEDERATION/identity_providers/keystone-idp/protocols/saml2
    result:string indices must be integers (HTTP 400)

  But actually, the response should like 'Conflict occurred...'

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1687888/+subscriptions


References