Bug 1480758 - 404 error in the console logs
Summary: 404 error in the console logs
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: GA
: cfme-future
Assignee: Gregg Tanzillo
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-11 20:01 UTC by Chris Kacerguis
Modified: 2019-08-06 20:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-11 16:54:19 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chris Kacerguis 2017-08-11 20:01:08 UTC
Description of problem:

Seeing a 404 appear in the console logs (seeing this with multiple versions / instances).  This is the URL that I'm seeing:

https://DOMAIN/api/service_orders/cart/service_requests/ 404 (Not Found)


Version-Release number of selected component (if applicable):


How reproducible:  Always


Steps to Reproduce:
1. Go to any page in the SUI
2. Look at the console.
3.

Actual results:


Expected results:

There should not be any 404 calls.


Additional info:

Comment 2 Chris Hale 2017-08-14 16:54:39 UTC
In our codebase the request Chris K listed above produces a 404 when you try to get on service requests when a cart doesn't exist.  We should talk about changing this to a different more appropriate status code or a different payload for status code 200 to indicate no car exists.  For reference here is the snippet of code from our codebase that accomplishes this https://github.com/ManageIQ/manageiq-ui-service/blob/master/client/app/core/shopping-cart.service.js#L23-L36


Note You need to log in before you can comment on or make changes to this bug.