Hi everyone,
I have a issue on Nifi 1.15.3 InvokeScriptedProcessor (Groovy), I set a custom property in sensitive in my processor, put for value a context parameter which is sensitive too, but when i'm trying to context.getProperty, it return the expression #{blahblah} instead of the value.
This problem is "new", the flow was working, and one day, the token from sensitive value was not evaluated anymore...
My property declaration :
def externalRequestTokenDescriptor = new PropertyDescriptor.Builder().name("External request token")
.description("External request token")
.required(true)
.sensitive(true)
.addValidator(Validator.VALID)
.expressionLanguageSupported(true)
.build();
Context param setup :
![NRU_0-1671095101551.png NRU_0-1671095101551.png](https://community.cloudera.com/t5/image/serverpage/image-id/36460i6387F63931166CAD/image-size/medium?v=v2&px=400)
Sensitive property setup :
![NRU_1-1671095166459.png NRU_1-1671095166459.png](https://community.cloudera.com/t5/image/serverpage/image-id/36461iA0C2793A8272454C/image-size/medium?v=v2&px=400)
![NRU_2-1671095194794.png NRU_2-1671095194794.png](https://community.cloudera.com/t5/image/serverpage/image-id/36462i891EBA23A980E77E/image-size/medium?v=v2&px=400)
How i get the property :
context.getProperty("External request token").getValue();
(Add .evaluateAttributeExpressions(flowFile) do nothing)
And when i want to use (or put in attribute for debug only) the value, it's not "Bonjour", but #{env.genm006.api.externalRequestToken}, not evaluated.
![NRU_3-1671095369423.png NRU_3-1671095369423.png](https://community.cloudera.com/t5/image/serverpage/image-id/36463i2E25D209611AA4FB/image-size/medium?v=v2&px=400)
It's not the first time I have trouble with sensitive property (It block reboot of Nifi 1.12 for example) but right now I'm stuck...
Thanks by advance