-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update alreadyReplaced
to replaces
or similar
#74
Comments
Sorry, I don't understand what you're proposing. It sounds like you want to rename |
I'm not wed to any particular solution. I'm just trying to raise a potential issue for clients. The scenario is there is an error with the Perhaps an error |
Ah thank you, now I understand. I guess my question is:
Why? The rest of the ACME protocol does not make such distinctions -- today there are a dozen different reasons why a newOrder request might be rejected with reason The reason we have a new |
Continuing the discussion from: #56
Tl'dr: If a client doesn't understand why the order is malformed, it would have to send a guess after removing the
replaces
field to see if that was the problem.Other issues with the
replaces
field are currently ambiguous. Instead of definingalreadyReplaced
define a single error such asreplaces
orreplacesField
. If the server returns 409 with this error, it is clear the certificate was already replaced. If the server returns any other error code with this error, it is clear thereplaces
field is the problem, but the certificate has not already been replaced.This is helpful for telling clients that they MAY (or maybe even SHOULD) drop the
replaces
field and try again. If this doesn't exist and a client receives a generic error (e.g.,malformed
) the client would need to send the order again withoutreplaces
to find out if that was the malformed field or if there was a different issue.This in turn will likely lead clients to perform the order again without the
replaces
field regardless of error, which will unncessarily double the new order request if the error was caused by something other than thereplaces
field.The text was updated successfully, but these errors were encountered: