Currently, the url allows any parameters when create endpoint, such as:
curl -i -H "X-Auth-Token:admin" -H "Content-Type:application/json" http://127.0.0.1:35357/v3/endpoints -d '{"endpoint":{"interface":"test","service_id":"d893b85ae4f842d5bb1727e271cf5be3","url":"111"}}'
HTTP/1.1 201 Created
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 252
Date: Tue, 25 Feb 2014 03:13:30 GMT
{"endpoint": {"links": {"self": "http://192.168.70.108:5000/v3/endpoints/81638ad18b9e4495aac576c006c1fed1"}, "url": "111", "region": null, "interface": "test", "service_id": "d893b85ae4f842d5bb1727e271cf5be3", "id": "81638ad18b9e4495aac576c006c1fed1"}}
Should we add a check that the url parameter must be url format like?
Fix proposed to branch: master /review. openstack. org/93426
Review: https:/