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

imeta rm uncaught exception if too few arguments #18

Closed
kellerb opened this issue Jun 14, 2017 · 1 comment
Closed

imeta rm uncaught exception if too few arguments #18

kellerb opened this issue Jun 14, 2017 · 1 comment
Labels

Comments

@kellerb
Copy link
Contributor

kellerb commented Jun 14, 2017

$ iput VERSION.json
$ imeta rm -d VERSION.json a

Error: Not enough arguments provided to rm

terminating with uncaught exception of type boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_any_cast> >: boost::bad_any_cast: failed conversion using boost::any_cast
Aborted (core dumped)

The existence of the "value" argument is checked for here, but it is then unconditionally used here.

After brief inspection, should probably return early with something like SYS_INVALID_INPUT_PARAM.

This error is repeated throughout the file.

@trel
Copy link
Member

trel commented Sep 3, 2018

Fixed by commits against #27 - shipped with 4.2.3.

@trel trel closed this as completed Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants