Name contianing special character "<" gives multiple results
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-designateclient |
New
|
Undecided
|
Unassigned |
Bug Description
In creating this bug report, I want to mention it is hard to place into the right package, as the responsibility for it lies in several packages. I believe that if the behaviour in the python-
The bug in particular is: attempting to create a recordset using a name beginning with "<" fails as the designate REST API returns multiple results. The errors given are similar to:
Multiple matches found for <project_
I believe this is due to the REST API translating an initial "<" as a SQL "less than" query, and this query is made when the designateclient tries to call
zone = v2_utils.
This attempts to obtain the ID of the zone by querying the REST API with something like:
GET /v2/zones?
And as the result can return more than 1 name, we hit the unusual "Multiple matches" error.
I believe this scenario could be handled in several different ways:
1) Change how the query is sent to designate, to not invoke the "less than" SQL. I'm not sure how to do this though...
2) Reject names which begin with "<" with a NotFound exception.
3) Throw a different kind of error.
Note: There is a separate issue at play that is causing us to make this weird query. We are setting the dns_domain in neutron netorks/ports to "<project_