[
https://issues.redhat.com/browse/ELY-1968?page=com.atlassian.jira.plugin....
]
Farah Juma updated ELY-1968:
----------------------------
Description: The {{AcmeClientSpi#getLocation}} method returns the value of the
"Location" header field if non-null. Otherwise, an exception is thrown.
Currently, the error message is specific to accounts, i.e., the error message "No
account location URL provided by ACME server" is returned. However, the
{{AcmeClientSpi#getLocation}} method is actually called to retrieve the
"Location" header field in other cases as well, like when obtaining the URL for
orders and authorizations. This should be updated so that the exception that is thrown has
an appropriate error message depending on the location URL that could not be retrieved
(i.e., the error message should reference the "account location URL", the
"order location URL", or the "authorization location URL" as
appropriate). (was: The `AcmeClientSpi#getLocation` method returns the value of the
"Location" header field if non-null. Otherwise, an exception is thrown.
Currently, the error message is specific to accounts, i.e., the error message "No
account location URL provided by ACME server" is returned. However, the
`AcmeClientSpi#getLocation` method is actually called to retrieve the "Location"
header field in other cases as well, like when obtaining the URL for orders and
authorizations. This should be updated so that the exception that is thrown has an
appropriate error message depending on the location URL that could not be retrieved (i.e.,
the error message should reference the "account location URL", the "order
location URL", or the "authorization location URL" as appropriate).)
Update error message returned by AcmeClientSpi#getLocation
----------------------------------------------------------
Key: ELY-1968
URL:
https://issues.redhat.com/browse/ELY-1968
Project: WildFly Elytron
Issue Type: Bug
Components: API / SPI
Reporter: Farah Juma
Assignee: Sonia Zaldana
Priority: Minor
The {{AcmeClientSpi#getLocation}} method returns the value of the "Location"
header field if non-null. Otherwise, an exception is thrown. Currently, the error message
is specific to accounts, i.e., the error message "No account location URL provided by
ACME server" is returned. However, the {{AcmeClientSpi#getLocation}} method is
actually called to retrieve the "Location" header field in other cases as well,
like when obtaining the URL for orders and authorizations. This should be updated so that
the exception that is thrown has an appropriate error message depending on the location
URL that could not be retrieved (i.e., the error message should reference the
"account location URL", the "order location URL", or the
"authorization location URL" as appropriate).
--
This message was sent by Atlassian Jira
(v7.13.8#713008)