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 Liu
February 22, 2017, 9:16 PM
Ali Anwar
July 23, 2016, 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

Assignee

Denton Liu

Reporter

Ali Anwar