tianshuainan opened a new issue, #22049:
URL: https://github.com/apache/shardingsphere/issues/22049
In ShardingSphere-JDBC 4.1.1, I implemented SPI QueryAssistedEncryptor. If
multiple parameters contain null values, queryAssistedEncrypt() method is not
executed, causing internal error.
configuration as below:
`spring.shardingsphere.encrypt.tables.dsr_request.columns.requester_email.plainColumn=requester_email
spring.shardingsphere.encrypt.tables.dsr_request.columns.requester_email.cipherColumn=requester_email_cipher
spring.shardingsphere.encrypt.tables.dsr_request.columns.requester_email.assistedQueryColumn=requester_email_assisted
spring.shardingsphere.encrypt.tables.dsr_request.columns.requester_email.encryptor=queryassistedencryptor
spring.shardingsphere.encrypt.tables.dsr_request.columns.requester_name.plainColumn=requester_name
spring.shardingsphere.encrypt.tables.dsr_request.columns.requester_name.cipherColumn=requester_name_cipher
spring.shardingsphere.encrypt.tables.dsr_request.columns.requester_name.assistedQueryColumn=requester_name_assisted
spring.shardingsphere.encrypt.tables.dsr_request.columns.requester_name.encryptor=queryassistedencryptor
`
when requestName is null, it will report bug,and queryAssistedEncrypt()
method not execute , and cause error
`{
"requesterEmail": "[email protected]"
}`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]