Affects Version/s: 3.22.0
Fix Version/s: None
Component/s: Proxy Repository
There is a known difference in the response codes one may receive depending on if the original request was made to a group repo or proxy repo.
1. Create a proxy repo pointing at an https remote where NXRM does not trust the remote cert.
2. Make a request directly at the proxy repo URL for an artifact that does exist in the remote - the NXRM response is 502 error code to requesting client to indicate a server problem (PKIX).
3. Invalidate cache of proxy repo.
4. Make the same artifact request to a group repository containing proxy repo as a member. The NXRM request will return 404, instead of 502.
A gradle build can be configured with multiple source repositories.
If gradle receives a 502 status code from a request it makes, then the build fails instead of trying the rest of its configured sources.
It may not be desirable to configure gradle with a group repo URL. It may not be desirable to be forced to create a NXRM group repository containing a single proxy repo, just to alter the response code in such circumstances.
Provide some level of configurability in NXRM to report 404 not found responses ( or other non-fatal status similar to group responses ) for internal NXRM errors that would otherwise return 5xx status codes that could fail builds.