question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CRaSH shell does not allow user to specify param types, preventing use of certain commands

See original GitHub issue

You cannot use certain commands from the CRaSH shell because you cannot specify the concrete types of abstract classes.

For example, run vaultQueryByCriteria contractStateType: com.example.state.IOUState, criteria: { Vault.StateStatus.CONSUMED } won’t work because the criteria parameter is of type QueryCriteria, which is an abstract class. There is no way currently in the shell to specify which concrete subclass of QueryCriteria you wish to use.

See https://stackoverflow.com/questions/48195934/corda-view-consumed-states-in-terminal.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
illya-havsiyevychcommented, Dec 4, 2019

just interested - do we have any update here ?

0reactions
nargas-ritucommented, Apr 26, 2022

Internal ticket - CORDA-4252

Read more comments on GitHub >

github_iconTop Results From Across the Web

CRaSH reference guide
The basic CRaSH usage is like any shell, you just type a command with its options and arguments. However it is possible to...
Read more >
Node shell - R3 Documentation
Node shell. The Corda shell is an embedded or standalone command line that allows an administrator to control and monitor a node. It...
Read more >
Chapter 3: Dealing with basic shell syntax - Z shell
In the parameter expansion, $param is given the value value if it was empty before, and left alone otherwise. Since that was the...
Read more >
Spring Shell Reference Documentation
But completion does not stop at command keys. It also works for parameter keys ( --arg ) and even parameter values, if the...
Read more >
CWE-78: Improper Neutralization of Special Elements used in ...
Alternately, if the weakness occurs in a privileged program, it could allow the attacker to specify commands that normally would not be accessible, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found