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/03 11:39:42 UTC

[GitHub] [shardingsphere] dkisser opened a new issue, #21937: Druid connectProperties reflect error

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

   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response anymore and we cannot reproduce it on current information, we will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   shardingsphere-jdbc-core-spring-boot-starter 5.1.2
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   
   ### Expected behavior
   when use Druid to encript password,I use connec-properties,there are two method both named "setConnectProperties"
   \
   ![image](https://user-images.githubusercontent.com/24600271/199710434-73f6d186-cc3c-47e1-83c1-ae742a5e3151.png)
   ![image](https://user-images.githubusercontent.com/24600271/199711412-66adb988-d70e-4b6d-abd0-84ca59232853.png)
   
   so when yaml use string to config connecProperties,it will throw "java.lang.String can't cast to java.util.Map",i think setter method should check fieldName and type,not only fieldName, in `org.apache.shardingsphere.infra.datasource.pool.creator.DataSourceReflection`
   ![image](https://user-images.githubusercontent.com/24600271/199711183-9b66cf9b-cc2a-46b8-9c9e-5eec2212547e.png)
   
   
   ### Actual behavior
   
   ### Reason analyze (If you can)
   org.apache.shardingsphere.infra.datasource.pool.creator.DataSourceReflection
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
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] linghengqian commented on issue #21937: Druid connectProperties reflect error

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

   - Your issue is essentially the same as https://github.com/apache/shardingsphere/issues/21211#issuecomment-1268667396.  If you have an idea, give 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] dkisser commented on issue #21937: Druid connectProperties reflect error

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

   > * Your issue is essentially the same as [v5.2, If a druid datasource has some filters, then create a ShardingSphereDataSource will occur exception #21211 (comment)](https://github.com/apache/shardingsphere/issues/21211#issuecomment-1268667396).  If you have a PR, give it?
   
   i think "whilte list" mybe a temporary way , add Druid filter in it. But the best way, shardingsphere should provide a extension way that user can deal with it in a custom way. 


-- 
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] RaigorJiang closed issue #21937: Druid connectProperties reflect error

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang closed issue #21937: Druid connectProperties reflect error
URL: https://github.com/apache/shardingsphere/issues/21937


-- 
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] dkisser commented on issue #21937: Druid connectProperties reflect error

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

   There is the same question in the latest version .


-- 
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] RaigorJiang commented on issue #21937: Druid connectProperties reflect error

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #21937:
URL: https://github.com/apache/shardingsphere/issues/21937#issuecomment-1407551289

   Closed for duplicate of #21211.


-- 
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