-
Notifications
You must be signed in to change notification settings - Fork 649
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
Optional API parameter bug #1898
Comments
And something which I don't know if it's the same bug: The first argument of the API is
Unable to reproduce stably. |
Unable to reproduce in unit tests... I'll attempt to reproduce in an actual BitShares API tomorrow... In the meantime, my first guess from looking at the code is that this is caused by this line which has an |
To reproduce, build the |
Crash reproduced and fixed. I was unable to reproduce the empty string error. |
Resolves issue bitshares/bitshares-core#1898: Fix crash in API
Fixed by bitshares/bitshares-fc#146 but need to bump FC to close. |
Done. Bumped FC in #1912. |
Bug Description
If all parameters of an API are
optional
, calling the API with no parameter will crash the node. Fortunately we don't have such API in production.A sample API:
bitshares-core/libraries/app/include/graphene/app/database_api.hpp
Lines 407 to 409 in c5e8585
Stack back trace:
Impacts
Describe which portion(s) of BitShares Core may be impacted by this bug. Please tick at least one box.
Steps To Reproduce
Steps to reproduce the behavior (example outlined below):
Expected Behavior
A clear and concise description of what you expected to happen.
Screenshots (optional)
If applicable, add screenshots to help explain process flow and behavior.
Host Environment
Please provide details about the host environment. Much of this information can be found running:
witness_node --version
.Additional Context (optional)
Add any other context about the problem here.
CORE TEAM TASK LIST
The text was updated successfully, but these errors were encountered: