This repository has been archived by the owner on Mar 1, 2019. It is now read-only.
Misleading error message when using wrong spendingPassword to perform various operations on the API #284
Labels
BUG
Something isn't working
Context
Currently spending password (set when creating/restoring a wallet) is used for several operations in the wallet. These are:
estimating fees-> Remove spendingPassword from /api/v1/transactions/fees #271The error message for all those operations when the
spendingPassword
is incorrect (i.e. valid 64 char long hex string but does not match the actual wallet's password) is:The message is not quite meaningful and informative what the actual issue is and even somewhat misleading as it indicates that there is a problem with creating an address (
CannotCreateAddress
)That makes sense for the first operation when we actually attempt to create an address, it does not for the others though. The error message here should actually state that the spendingPassword provided is wrong.
Additionally when the
spendingPassword
is a valid hex string but NOT 64-char long the error messages are faulty (as described already in #193)Steps to Reproduce
spendingPassword
(however valid 64-char length hex encoded string)e.g. generating address:
or
put shorter or longer than 64 chars strings as
spendingPassword
(but valid hex) as in #193Expected behavior
The error message returned by the API should state that password is incorrect. The message should not be misleading.
Actual behavior
See above and in #193
Resolution Plan
PR
develop
QA
The text was updated successfully, but these errors were encountered: