Skip to content
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

[Rippled do not return error for malformed inputs to optional parameters] (Version: [1.11.0-rc2]) #4543

Closed
mounikakun opened this issue May 26, 2023 · 2 comments
Labels

Comments

@mounikakun
Copy link
Collaborator

Issue Description

In most of the APIs, rippled do not validate inputs for optional parameters like binary, forward, strict etc.

Steps to Reproduce

Expected Result

invalidParamserror

Actual Result

No error

Environment

Supporting Files

@mounikakun
Copy link
Collaborator Author

Issue exists in account_tx

@mounikakun
Copy link
Collaborator Author

mounikakun commented May 30, 2023

Issue exists for transactions in noripple_check, binary in tx.

ckeshava pushed a commit to ckeshava/rippled that referenced this issue Sep 22, 2023
…LF#4620)

For the `account_tx` and `noripple_check` methods, perform input
validation for optional parameters such as "binary", "forward",
"strict", "transactions". Previously, when these parameters had invalid
values (e.g. not a bool), no error would be returned. Now, it returns an
`invalidParams` error.

* This updates the behavior to match Clio
  (https://github.com/XRPLF/clio).
* Since this is potentially a breaking change, it only applies to
  requests specifying api_version: 2.
* Fix XRPLF#4543.
ckeshava pushed a commit to ckeshava/rippled that referenced this issue Sep 25, 2023
…LF#4620)

For the `account_tx` and `noripple_check` methods, perform input
validation for optional parameters such as "binary", "forward",
"strict", "transactions". Previously, when these parameters had invalid
values (e.g. not a bool), no error would be returned. Now, it returns an
`invalidParams` error.

* This updates the behavior to match Clio
  (https://github.com/XRPLF/clio).
* Since this is potentially a breaking change, it only applies to
  requests specifying api_version: 2.
* Fix XRPLF#4543.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants