CRaSH shell does not allow user to specify param types, preventing use of certain commands
See original GitHub issueYou 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:
- Created 6 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
just interested - do we have any update here ?
Internal ticket - CORDA-4252