-
Notifications
You must be signed in to change notification settings - Fork 1k
Error when query/invoke other chaincode with security enabled #905
Comments
@muralisrini Test done. It works with security enabled and privacy disabled. |
thanks @rilaaax |
@rilaaax i tried disabling privacy, security enabled, i got a lot of garbled state output. |
@wwendy - once privacy is on data is encrypted on the ledger. One cannot switch back and forth between privacy and no privacy (@adecaro to confirm/correct please). To switch - in test or development phase of course - you could maintain different /var/hyperledger databases or simply rm -rf /var/hyperledger/* (keep /var/hyperledger but delete everything under it). |
@muralisrini is it the directory /var/openchain/production/db for openblockchain dev env setup? |
@wwendy : I assumed you are in hyperledger project.... (though the issue was opened under OBC). Further I assumed you are in vagrant environment. You should adjust the path based on your env. |
@rilaaax @muralisrini @wwendy is this still opened? Shall I check what's going on in the crypto layer? |
@adecaro yeah still opened, you do well asking because I just tested again and now it does not work with security enabled not only privacy |
@rilaaax @adecaro - I'm not sure about the recent problem with just security enabled. However the original problem is that we are not dealing with context for encryption/decrytion on the called chaincode correctly when invoking chaincode from a chaincode, So that part @adecaro is a chaincode issue. Think we know where the problem is but looking for the right solution. @rilaaax ax: I didn't expect just security enabled (with privacy disabled) to fail. One possibility is you might be using the old ledger which had privacy enabled ? Wonder if you could try it after "rm -rf /var/hyperledger/*" (if not already tried of course) |
@muralisrini i did the Tested with all disabled and it is working fine. |
@rilaaax @muralisrini is this still an issue? If not, let's close it. Thanks |
@christo4ferris Its a known limitation. C-C with privacy is being looked in detail for the New arch. This can be closed, I think. Agree, @rilaaax ? |
@muralisrini I didn't test it recently but if you say it will be fixed soon we can close it. @christo4ferris |
closing per discussion |
When trying to query/invoke another chaincode as shown in
chaincode_example04
andchaincode_example05
, it returns an error when security enabled and CA running.Some logs (test with
chaincode_example05
)@muralisrini
The text was updated successfully, but these errors were encountered: