Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[management] Invalid Path mappings cause management API returns 500 #2424
When an invalid path mapping is entered, such as
The invalid path mapping should not be written to the database, nor causing any other API to fail.
Every management API calls after that path mapping entered returns HTTP 500, which disallow users to revert the error.
Validate the path mapping before write to DB.
Steps to Reproduce (for bugs)
This issue just kill the management API with no return. Direct mongoDB is required to recover from the error.