Get on an abandon zone should return 405 and not a 404

Bug #1421416 reported by Vinod Mangalpally
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
Medium
Vinod Mangalpally

Bug Description

Steps to Reproduce:
================
Do a get on v2/zones/<zone_id>/tasks/abandon

Expected behavior:
===============
This should return a 405 as only a POST is a valid operation at v2/zones/<zone_id>/tasks/abandon

Actual behavior:
=============
A 404 with the message "resource not found" is returned.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (master)

Fix proposed to branch: master
Review: https://review.openstack.org/155627

Changed in designate:
status: New → In Progress
Changed in designate:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

Reviewed: https://review.openstack.org/155627
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=c4666a8cca42fd067e9c86933206cc13f71bdb19
Submitter: Jenkins
Branch: master

commit c4666a8cca42fd067e9c86933206cc13f71bdb19
Author: Vinod Mangalpally <email address hidden>
Date: Tue Feb 17 10:42:36 2015 -0600

    Get on an abandon zone returns 405

    Only a POST is valid on an abandon zone endpoint
    (v2/zones/<zone_id>/tasks/abandon). All the other
    operations including a get return 405

    Change-Id: I0a812ad96b3c0da133dc506d2c4df7557bc3d5fd
    Closes-Bug: 1421416

Changed in designate:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in designate:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in designate:
milestone: kilo-3 → 2015.1.0
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.