Create Service Request Allowing Empty Strings

Bug #1406619 reported by William Brothers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Poppy
Fix Released
Medium
Amit Gandhi

Bug Description

Posting a request for create service with empty strings does return error messages.
I have a request body where the domain property is set to an empty string, along with origin and several other mandatory fields.
{
  "name": "Bills new CDN service",
  "domains": [{
                "domain": ""
  }],
  "origins": [{
                "origin": "",
    "port": 80,
    "ssl": true,
    "rules":[{"name": "",
              "request_url": ""}]
              }],
  "caching":[{ "name": "caching name",
               "ttl": 0,
        "rules": [{"name": "", "request_url":"www.somewhere.com"}]
             }],
  "restrictions":[{"name": "blah", "rules": [{}]}],
  "flavor_id": "blah"
}
Expected a 400 status with error messages.
Actual Result:
400 status with the following message:

{
"message": "Could not find a flavor with the id 'blah'"
}

Revision history for this message
Amit Gandhi (amit-gandhi) wrote :
Changed in poppy:
milestone: none → kilo-2
importance: Undecided → Medium
assignee: nobody → Amit Gandhi (amit-gandhi)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to poppy (master)

Reviewed: https://review.openstack.org/145072
Committed: https://git.openstack.org/cgit/stackforge/poppy/commit/?id=e017ab6fda7c3e694440fc8bb7013bdfb7eb29c3
Submitter: Jenkins
Branch: master

commit e017ab6fda7c3e694440fc8bb7013bdfb7eb29c3
Author: amitgandhinz <email address hidden>
Date: Mon Jan 5 16:51:12 2015 -0500

    Set restrictions on field lengths

    Change-Id: I71290527ef344981b7901781afddb0c4102074c8
    Closes-Bug: 1406619
    Closes-Bug: 1406609

Changed in poppy:
status: In Progress → Fix Committed
Changed in poppy:
status: Fix Committed → Fix Released
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.