NuGet restore should log redirects #9590
Labels
Category:Quality Week
Issues that should be considered for quality week
Functionality:Restore
Partner:AzureDevOps
Priority:2
Issues for the current backlog.
Type:DCR
Design Change Request
To aid HTTP request error debugging, particularly for teams implementing the NuGet servers, it would be helpful to log the URL that generated the error, when the original request results in an HTTP redirect.
Currently:
Proposed:
Notes:
This longer log line should not happen unless the final response URL is different to the original requested URL. This means that HTTP responses where there is no redirect should remain the same as today's log output.
NuGet should remove secrets from the URL, where possible. If the URL contains HTTP Basic auth, in the form of
https://user:pass@server.test/
, theuser:pass
should be stripped from the log. Also consider masking query parameters (not removing, because it's important when debugging to know the parameter was there or not), such assig(nature)?$|tok(en)?$|ticket$|auth
The text was updated successfully, but these errors were encountered: