
The RPS decodes URL encoded characters, leading to 404 responses when querying the Gitlab Project API

RPS Service Release: R12
Actual Behavior
The Gitlab Project API has endpoints including the project path (namespace and name) as an URL encoded path segment:
/api/v4/projects/foo%2Fbar%2Fbaz
/api/v4/projects/foo%2Fbar%2Fbaz/archive
- ...
However, NGINX decodes those URLs when it should not:
/api/v4/projects/foo/bar/baz
/api/v4/projects/foo/bar/baz/archive
Which leads to 404 when trying to reach those API endpoints.
On another note, the WAF Layer (powered by Apache2 + ModSecurity2) also reject such URLs.
Desired Behavior
The URLs should not be decoded.
Relevant Logs
N/A