[
https://issues.apache.org/jira/browse/METRON-1011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16072222#comment-16072222
]
Jasper Knulst commented on METRON-1011:
---------------------------------------
Steps to reproduce (old behaviour):
first do a valid Stellar enrichment_get:
ENRICHMENT_GET('mlkp','POST','enrichment','t')
now issue:
ENRICHMENT_GET('mlkp')
You'll get "java.lang.IllegalStateException: Requires at least an enrichment
type and indicator" which makes one believe only 2 parameters are mandatory
But in fact all 4 parameters are mandatory, as anything less then 4 will get
you:
ENRICHMENT_GET(null,null,null)
[!] Index: 3, Size: 3
java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
--------------
New behaviour:
Anything but exactly 4 parameters will get you:
java.lang.IllegalStateException: All parameters are mandatory, submit
'enrichment type', 'indicator', 'nosql_table' and 'column_family'
A much clearer problem statement..
> Stellar ENRICHMENT functions should enforce submission of 4 parameters
> ----------------------------------------------------------------------
>
> Key: METRON-1011
> URL: https://issues.apache.org/jira/browse/METRON-1011
> Project: Metron
> Issue Type: Bug
> Affects Versions: 0.4.0
> Reporter: Jasper Knulst
> Fix For: 0.4.0
>
>
> Currently the Stellar functions ENRICHMENT_EXISTS and ENRICHMENT_GET only
> check for params 'enrichment_type' and 'indicator' to be submitted by the
> user. In reality all 4 params are mandatory as
> ArrayIndexOutOfBoundsExceptions are thrown at anything less than 4
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)