Listing programs of a particular type in a nonexistent namespace returns 200

Description

Make an HTTP request to get the services in a nonexistent namespace:
http://HOST:PORT/v3/namespaces/foo/services
It will return 200, with an empty list.
Same issue is there for other program types.

Instead, it should return with a 404, because the namespace doesn't exist.

Release Notes

Listing the programs in a non-existent namespace now returns 404 instead of the 200 it was returning previously.

Activity

Show:

Denton LiuFebruary 22, 2017 at 9:16 PM

Ali AnwarJuly 23, 2016 at 8:35 AM

I think the issue is similar to https://issues.cask.co/browse/CDAP-3131
and the fix will be similar to the fix for CDAP-3131.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Affects versions

Components

Fix versions

Priority

Created July 23, 2016 at 8:35 AM
Updated February 22, 2017 at 9:16 PM
Resolved February 17, 2017 at 8:45 PM