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/04 04:52:07 UTC

[GitHub] [shardingsphere] dbin0123 opened a new issue, #21948: The encryption field is empty, causing abnormal data encryption

dbin0123 opened a new issue, #21948:
URL: https://github.com/apache/shardingsphere/issues/21948

   
    the encryption field is empty, causing abnormal data encryption, version 5.2.1
   
   Exception information
   `java.lang.NullPointerException
   	at java.util.Objects.requireNonNull(Objects.java:203)
   	at java.util.Optional.<init>(Optional.java:96)
   	at java.util.Optional.of(Optional.java:108)
   	at org.apache.shardingsphere.infra.binder.segment.insert.values.InsertValueContext.getLiteralValue(InsertValueContext.java:80)
   	at org.apache.shardingsphere.encrypt.rewrite.parameter.rewriter.EncryptInsertValueParameterRewriter.encryptInsertValues(EncryptInsertValueParameterRewriter.java:86)
   	at org.apache.shardingsphere.encrypt.rewrite.parameter.rewriter.EncryptInsertValueParameterRewriter.lambda$rewrite$1(EncryptInsertValueParameterRewriter.java:71)
   	at java.util.Optional.ifPresent(Optional.java:159)
   	at org.apache.shardingsphere.encrypt.rewrite.parameter.rewriter.EncryptInsertValueParameterRewriter.rewrite(EncryptInsertValueParameterRewriter.java:71)
   	at org.apache.shardingsphere.encrypt.rewrite.parameter.rewriter.EncryptInsertValueParameterRewriter.rewrite(EncryptInsertValueParameterRewriter.java:50)
   	at org.apache.shardingsphere.encrypt.rewrite.context.EncryptSQLRewriteContextDecorator.rewriteParameters(EncryptSQLRewriteContextDecorator.java:89)
   	at org.apache.shardingsphere.encrypt.rewrite.context.EncryptSQLRewriteContextDecorator.decorate(EncryptSQLRewriteContextDecorator.java:58)
   	at org.apache.shardingsphere.encrypt.rewrite.context.EncryptSQLRewriteContextDecorator.decorate(EncryptSQLRewriteContextDecorator.java:44)`
   
   
   Get the encrypted field literal method to save
   `org.apache.shardingsphere.infra.binder.segment.insert.values.InsertValueContext.getLiteralValue`
   ![Uploading image.png…]()
   
   Using the `of' method of the 'Optional' class causes a null pointer exception


-- 
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 #21948: The encryption field is empty, causing abnormal data encryption

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

   Hi @dbin0123, thank you for your feedback. Does you mean insert encrypt field with null?


-- 
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] dbin0123 closed issue #21948: The encryption field is empty, causing abnormal data encryption

Posted by GitBox <gi...@apache.org>.
dbin0123 closed issue #21948: The encryption field is empty, causing abnormal data encryption
URL: https://github.com/apache/shardingsphere/issues/21948


-- 
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] dbin0123 commented on issue #21948: The encryption field is empty, causing abnormal data encryption

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

   @strongduanmu yes


-- 
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 #21948: The encryption field is empty, causing abnormal data encryption

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

   This bug has been fixed in master branch, please 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