← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1471034] [NEW] invalid URLs are not suppressed

 

Public bug reported:

When creating an endpoint, it is possible to have an invalid URL by
adding a space in "tenant_id."

keystone endpoint-create --service_id 410de5fed7544c90a36ebdb8b38f0cea
--publicurl "http://127.0.0.1:8774 /v1.1/\$(tenant_i d)s" --adminurl "
http://127.0.0.1:8774 /v1.1/\$(tenant_i d)s" --internalurl
"http://127.0.0.1:8774 /v1.1/\$(tenant_i d)s"

It's your own fault if you make an endpoint with a space there, but it
would still be nice for Keystone to stop you and give an error message
such as, "Cannot create an endpoint with an invalid URL."

Note: This is NOT a duplicate of bug #1098564. This bug is fairly
similar to https://bugs.launchpad.net/keystone/+bug/1098564, but that
bug report is about not being able to delete the endpoint. I have a
patch in progress that adds a test case for deleting the endpoint. My
report is about suppressing invalid URLs; the other one is about
deleting an endpoint with an invalid URL. These should have separate
patches.

** Affects: keystone
     Importance: Undecided
         Status: New

** Description changed:

  When creating an endpoint, it is possible to have an invalid URL by
  adding a space in "tenant_id."
  
  keystone endpoint-create --service_id 410de5fed7544c90a36ebdb8b38f0cea
  --publicurl "http://127.0.0.1:8774 /v1.1/\$(tenant_i d)s" --adminurl "
  http://127.0.0.1:8774 /v1.1/\$(tenant_i d)s" --internalurl
  "http://127.0.0.1:8774 /v1.1/\$(tenant_i d)s"
  
  It's your own fault if you make an endpoint with a space there, but it
  would still be nice for Keystone to stop you and give an error message
  such as, "Cannot create an endpoint with an invalid URL."
  
  Note: This is NOT a duplicate of bug #1098564. This bug is fairly
  similar to https://bugs.launchpad.net/keystone/+bug/1098564, but that
  bug report is about not being able to delete the endpoint. I have a
  patch in progress that adds a test case for deleting the endpoint. My
  report is about suppressing invalid URLs; the other one is about
- deleting an endpoint with an invalid URL.
+ deleting an endpoint with an invalid URL. These should have separate
+ patches.

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

Title:
  invalid URLs are not suppressed

Status in OpenStack Identity (Keystone):
  New

Bug description:
  When creating an endpoint, it is possible to have an invalid URL by
  adding a space in "tenant_id."

  keystone endpoint-create --service_id 410de5fed7544c90a36ebdb8b38f0cea
  --publicurl "http://127.0.0.1:8774 /v1.1/\$(tenant_i d)s" --adminurl "
  http://127.0.0.1:8774 /v1.1/\$(tenant_i d)s" --internalurl
  "http://127.0.0.1:8774 /v1.1/\$(tenant_i d)s"

  It's your own fault if you make an endpoint with a space there, but it
  would still be nice for Keystone to stop you and give an error message
  such as, "Cannot create an endpoint with an invalid URL."

  Note: This is NOT a duplicate of bug #1098564. This bug is fairly
  similar to https://bugs.launchpad.net/keystone/+bug/1098564, but that
  bug report is about not being able to delete the endpoint. I have a
  patch in progress that adds a test case for deleting the endpoint. My
  report is about suppressing invalid URLs; the other one is about
  deleting an endpoint with an invalid URL. These should have separate
  patches.

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


Follow ups

References