mapping_id does not allow "_" character

Bug #1531959 reported by Roxana Gherle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Roxana Gherle

Bug Description

The underscore character is not allowed in mapping_id because the validation of the parameter value is done with the id_string regex pattern '^[a-zA-Z0-9-]+$' which doesn't include '_'.

Underscore character should be allowed in a mapping id validation.

Changed in keystone:
assignee: nobody → Roxana Gherle (roxana-gherle)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/264937

Changed in keystone:
status: New → In Progress
Revision history for this message
Henry Nash (henry-nash) wrote : Re: id_string parameter type does not allow "_" character

Could I ask what the use case is for this? domain_id's are generated by keystone, they cannot be provided by the caller...

Changed in keystone:
status: In Progress → Incomplete
Revision history for this message
Roxana Gherle (roxana-gherle) wrote :

hey Henry, I hit this when creating a federation protocol using a mapping_id containing an underscore. mapping_id is provided by the user. maybe my reference to domain_id was not necessary.

Changed in keystone:
status: Incomplete → In Progress
tags: added: low-hanging-fruit
summary: - id_string parameter type does not allow "_" character
+ mapping_id does not allow "_" character
description: updated
Changed in keystone:
milestone: none → mitaka-3
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/264937
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=b81a8266d1e6248ca759d51ef1a003423887ee8a
Submitter: Jenkins
Branch: master

commit b81a8266d1e6248ca759d51ef1a003423887ee8a
Author: Roxana Gherle <email address hidden>
Date: Thu Jan 7 11:09:54 2016 -0800

    Allow '_' character in mapping_id value

    Underscore character should be allowed in mapping_id.

    Closes-Bug: #1531959
    Change-Id: I4235e09ff68f68bbe4cf5c4e9aeaef2b79484f94

Changed in keystone:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/keystone 9.0.0.0b3

This issue was fixed in the openstack/keystone 9.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.