Closed abedwardsw closed 10 years ago
If you have a subscription for fuse, then use that to log a ticket to get faster help with this.
just for curiosity debugged the case and noticed "getPassword" method from "EncryptedPropertyResolver.java" class returning something like "ZKENC dshkw2893" instead of returning ensemble password. Thats why jasypt throwing exception.
looking further I noticed that zookeeper.password.encode system property default to "true" at the time of fabric creation. This means EncryptedPropertyResolver should decode the password before setting it on jasypt encryptor, which it does not. Thats why jasypt throws the exception simply because decryption password is not the one that property value encrypted with :)
to prove the theory, I simply added this line to setenv before creating the fabric export KARAF_OPTS="-Dzookeeper.password.encode=false"
after creating the fabric; I noticed that property decryption is working fine. simply because the correct ensemble password passes on jasypt encryptor. I believe turning off encoding is not a good idea and I hope somebody take a look at EncryptedPropertyResolver.java and somehow decode it before setting password on jasypt encryptor, or may be the solution resides in curator.
Committers know better :)
HTH, SM
Thanks for reporting and sharing your findings.
Got it fixed now, there is a PR on the way
Thank you Claus, much appreciated.
Using Fuse6.1GA I am getting an exception following the section: "Setting encrypted PID property values" in the Fuse6.1 Fabric documentation. Would you be able to confirm if I missed something.