No error Message for caching:rules: no name and no request url

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

Bug Description

Post a request
a valid name value
a domain entry with a domain property set to "invalid"
an origin entry with the origin property set to a "not an origin" and port property set to 80 and the ssl property set to true
an origin entry with a rules entry with the name property set to "name." and request_url set to "www.somewebsite.com"
a caching entry without a name property and without a ttl property and an empty rules entry
{
  "name": "Bill's New CDN Service",
  "domains": [{
                "domain": "invalid"
              }],
  "origins": [{
                "origin": "invalid",
    "port": 80,
    "ssl": true,
    "rules":[{"name": "name.",
              "request_url": "www.somewebsite.com"}]
              }],
  "caching":[{"rules":[{}]}]
}

Expected to get an error message for the missing propertied of name and requested_url, but didn't.

Actual response:
{
    "message": "{\"errors\": [{\"message\": \"['caching'][0]['name']-'name' is a required property\"}, {\"message\": \"['caching'][0]['ttl']-'ttl' is a required property\"}, {\"message\": \"['flavor_id']-'flavor_id' is a required property\"}]}"
}

Documentation states that these fields are required

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

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

commit 68561541c85729e20d1dfb2e291423b7a733190c
Author: amitgandhinz <email address hidden>
Date: Mon Dec 29 18:13:19 2014 -0500

    Fixes validation of caching rules

    Change-Id: I1e4b8a48847890c58e612455d56e02e3583533db
    Closes-Bug: 1405276

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.