HomePhorge

(PUP-3644) Return 404 for v3 endpoints if indirection is not found
27dbc7921120Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-3644) Return 404 for v3 endpoints if indirection is not found

For v3 endpoints, the indirection is the first part of the url (after
the version), and the environment is a parameter. This commit makes it so
that an invalid indirection returns a 404 (matching what is done for v2), but
a missing environment returns a 400.

The url2indirection method for v3 now handles all checking of
validity of both the indirection and the environment. url2indirection now
returns the indirection, rather than just the indirection name.

Details

Provenance
Ruth Linehan <ruth@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUfb63fc2b4a2e: (PUP-3644) Add environments endpoint to v3
Branches
Unknown
Tags
Unknown

Event Timeline

Ruth Linehan <ruth@puppetlabs.com> committed rPU27dbc7921120: (PUP-3644) Return 404 for v3 endpoints if indirection is not found (authored by Ruth Linehan <ruth@puppetlabs.com>).Dec 30 2014, 8:59 PM