[api] Murano API returns the blank list instead of error(404 or 403)

Bug #1295573 reported by Sergey Murashov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Invalid
Undecided
Unassigned

Bug Description

When user attempts to get the non-deployed application without the session-id Murano API returns the empty list instead of error response.

Steps to reproduce:
1. Install murano from master branch
2. Create environment
3. Create session
4. Create service
5. Send GET request on http://172.18.124.228:8082/v1/environments/<environment_id>/services/<service-id> without X-Configuration-Session: <session_id> in Headers

Actual result:
Murano API returns empty list, but should return 403 status code

description: updated
Changed in murano:
assignee: nobody → Serg Melikyan (smelikyan)
milestone: none → 0.6
importance: Undecided → Low
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote : Re: Murano API returns the blank list instead of error(404 or 403)

Sergey, need to verify that it is bug and if it is, need to fix :)

summary: - Murano Api returns blank list instead error(404 or 403)
+ Murano API returns the blank list instead of error(404 or 403)
Changed in murano:
status: New → Incomplete
Changed in murano:
status: Incomplete → Confirmed
description: updated
ruhe (ruhe)
Changed in murano:
milestone: 0.6 → juno-1
Timur Sufiev (tsufiev-x)
summary: - Murano API returns the blank list instead of error(404 or 403)
+ [api] Murano API returns the blank list instead of error(404 or 403)
Revision history for this message
Serg Melikyan (smelikyan) wrote :

2. Create environment
    - Created empty environment without any applications
5. Send .. without X-Configuration-Session
    - Without X-Configuration-Session requesting list of apps from actual env state, which is empty list

Changed in murano:
status: Confirmed → Won't Fix
status: Won't Fix → Invalid
ruhe (ruhe)
Changed in murano:
importance: Low → Undecided
assignee: Serg Melikyan (smelikyan) → nobody
milestone: juno-1 → none
Revision history for this message
Ekaterina Chernova (efedorova) wrote :

Expected behavior, since without session-id list of deployed applications is provided. And if there are not deployed apps - empty list will be returned

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.