[api] environments GET returns 500 if supplied with a non-existant session_id

Bug #1481099 reported by Kirill Zaitsev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Medium
Kirill Zaitsev

Bug Description

No session check is made during show API call, therefore supplying a non-existant id results in a 500 error.

Expected result a 404 error.

Tags: api
description: updated
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/208671

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

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

commit b2b224ce481721d6dd0ef22b6841c719ec758cd2
Author: Kirill Zaitsev <email address hidden>
Date: Tue Aug 4 01:25:26 2015 +0300

    Check session validity during env show api call

    Moves the session check to utils file, together with check_env and
    applies the check during environment show API call, thus raising correct
    errors in case supplied session id is invalid or belongs to a different
    environment

    Change-Id: Ic10956b604cfc7243f07774e9da11caaf18794cd
    Closes-Bug: #1481099

Changed in murano:
status: In Progress → Fix Committed
Changed in murano:
milestone: none → liberty-3
Changed in murano:
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.

Other bug subscribers

Remote bug watches

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