-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup error message for auth challenge #1007
Comments
It should the latest version I suppose, but I'll check that the next Monday |
The version info:
The config info:
The file hierarchy:
N.B. I've added the auth part for the config of notary-server |
Steps for reproducing the problem:
And with #1008 , the error message turn out as:
|
I think it was because we put the URL Encoded error message into a format of a printf. see and |
We can fix this by refactoring the
|
@HuKeping: could you please try running the list command with the |
@riyazdf @HuKeping The error seems to be coming from here (I replicated this error by pointing auth at google.com): https://github.com/docker/notary/blob/master/vendor/github.com/docker/distribution/registry/client/auth/session.go#L381. It seems like it's a golang (The debug output is:)
The question is whether we want to unescape the informational URL parameter in the error that comes back from the golang http library. If we did, then rather than blanket unescape all network errors, we might want to specifically specifically check for Although at some point, we should definitely fix the |
I am +1 for fixing the I supposed we may leave the |
Since this is related to #1008 though I'll just leave a non-blocking comment there. Apologies, not sure what you mean - I think maybe "or sth" was meant to be "or not"? I'll just assume so for now, in which case - yep, I don't feel that strongly about it, so I'm happy to discuss it later/elsewhere :) |
There's some
MISSING
in the output error message when we failed the challenge for authenticationSeems it was caused by the error message we get from roundtripper contains some URL code like
%3A
, and when the whole string be used as an format output, the warning we mentioned above will show up.The text was updated successfully, but these errors were encountered: