← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1467692] [NEW] keystone-manage mapping_engine does not support regex

 

Public bug reported:

When running keystone-manage mapping_engine --rules rules.json --input
input.txt, if rules.json contains any mapping containing regex, it will
fail.

This is because
https://github.com/openstack/keystone/blob/master/keystone/cli.py#L598
uses jsonutils.load(rules.json) and regex contains a boolean instead of
a string, which will invalidate the json file. If the regex is provided
as a string it will fail because it does not match the schema in
https://github.com/openstack/keystone/blob/master/keystone/contrib/federation/utils.py#L88-L90.

** Affects: keystone
     Importance: Undecided
     Assignee: Fernando Diaz (diazjf)
         Status: New

** Changed in: keystone
     Assignee: (unassigned) => Fernando Diaz (diazjf)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1467692

Title:
  keystone-manage mapping_engine does not support regex

Status in OpenStack Identity (Keystone):
  New

Bug description:
  When running keystone-manage mapping_engine --rules rules.json --input
  input.txt, if rules.json contains any mapping containing regex, it
  will fail.

  This is because
  https://github.com/openstack/keystone/blob/master/keystone/cli.py#L598
  uses jsonutils.load(rules.json) and regex contains a boolean instead
  of a string, which will invalidate the json file. If the regex is
  provided as a string it will fail because it does not match the schema
  in
  https://github.com/openstack/keystone/blob/master/keystone/contrib/federation/utils.py#L88-L90.

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


Follow ups

References