Invalid response code in case no data provided while adding apps to the session

Bug #1491785 reported by Ekaterina Chernova
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Medium
Ekaterina Chernova

Bug Description

Steps to reproduce:

1) Create environment
2) Create new session for this environment
3) Perfom;

curl -i http://localhost:8082/v1/environments/a45ac09dbed849d29fa6e08586f68194/services -X POST -H 'Content-Type:appl/json' -H 'X-Auth-Token: 3ac71e0c939344819764eb9e1b7ffea4'
HTTP/1.1 403 Forbidden
Content-Length: 157
Content-Type: text/html; charset=UTF-8
X-Openstack-Request-Id: req-a7f77acd-28bb-408f-b847-227d12183677
Date: Thu, 03 Sep 2015 09:54:22 GMT

<html>
 <head>
  <title>403 Forbidden</title>
 </head>
 <body>
  <h1>403 Forbidden</h1>
  Access was denied to this resource.<br /><br />

 </body>

403 is raised, but the token is valid.

After adding json data (-d '{app json}'), everything is fine

One more trace with all the steps: http://paste.openstack.org/show/443905/

Tags: api
description: updated
Changed in murano:
assignee: nobody → Ekaterina Chernova (efedorova)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (master)

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

Changed in murano:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

Reviewed: https://review.openstack.org/220944
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=9702e9914ae8d2383f7f0cd265315f8981284f0f
Submitter: Jenkins
Branch: master

commit 9702e9914ae8d2383f7f0cd265315f8981284f0f
Author: Ekaterina Chernova <email address hidden>
Date: Mon Sep 7 13:19:04 2015 +0300

    Update response codes to expected ones

    When session id or body were not provided - forbidden code was raised.
    That may lead to confusion and make debuggind difficult.

    This commit fixes error codes and provides explanation is responses.

    API specification is updated.

    Closes-Bug #1491785

    Change-Id: I87d60a1a7d049ee7d482dd76ceeb9f446b452fca

Changed in murano:
status: In Progress → Fix Committed
Revision history for this message
Ekaterina Chernova (efedorova) wrote :

bug is fixed in l-3

Changed in murano:
milestone: 2015.1.1 → liberty-rc2
Changed in murano:
milestone: liberty-rc2 → liberty-3
status: Fix Committed → Fix Released
Changed in murano:
milestone: liberty-3 → 1.0.0
Changed in murano:
milestone: 1.0.0 → 1.0.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.