You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/11/10 03:33:40 UTC

[GitHub] [shardingsphere] tianshuainan opened a new issue, #22049: when encrypt data is null ,queryAssistedEncrypt method of QueryAssistedEncryptor not execute cause error

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": "550736273@qq.com"
   }`


-- 
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] strongduanmu commented on issue #22049: when encrypt data is null ,queryAssistedEncrypt method of QueryAssistedEncryptor not execute cause error

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #22049:
URL: https://github.com/apache/shardingsphere/issues/22049#issuecomment-1309737987

   Hi @tianshuainan, thank you for your feedback. We have fixed this bug in master branch, can you try to test it?


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] tianshuainan commented on issue #22049: when encrypt data is null ,queryAssistedEncrypt method of QueryAssistedEncryptor not execute cause error

Posted by GitBox <gi...@apache.org>.
tianshuainan commented on issue #22049:
URL: https://github.com/apache/shardingsphere/issues/22049#issuecomment-1309768667

   非常感谢!可以提供更多细节吗?在哪个包、类下面?有具体的例子吗?再次感谢,这对我帮忙很大,也非常重要


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] strongduanmu closed issue #22049: when encrypt data is null ,queryAssistedEncrypt method of QueryAssistedEncryptor not execute cause error

Posted by GitBox <gi...@apache.org>.
strongduanmu closed issue #22049: when encrypt data is null ,queryAssistedEncrypt method of QueryAssistedEncryptor  not execute cause error
URL: https://github.com/apache/shardingsphere/issues/22049


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] strongduanmu commented on issue #22049: when encrypt data is null ,queryAssistedEncrypt method of QueryAssistedEncryptor not execute cause error

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #22049:
URL: https://github.com/apache/shardingsphere/issues/22049#issuecomment-1312342019

   Fixed by #21864.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] tianshuainan commented on issue #22049: when encrypt data is null ,queryAssistedEncrypt method of QueryAssistedEncryptor not execute cause error

Posted by GitBox <gi...@apache.org>.
tianshuainan commented on issue #22049:
URL: https://github.com/apache/shardingsphere/issues/22049#issuecomment-1309769359

   Thank you very much! Can you provide more details? Under which package, class? Are there any specific examples? Thank you again. This has been very helpful and important


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org