I am working on upgrading mysql-connector-java to version 8.0.28 - PR. This is needed to resolve security vulnerabilities. I creating this issue to discuss the obstacles that I am facing during the process. Please let me know if this is not the right place.
With the upgrade the com.mysql.jdbc.NonRegisteringDriver#parseURL method used in org.apache.druid.utils.ConnectionUriUtils is no longer available. So, I have resorted to instantiating com.mysql.cj.conf.ConnectionUrlParser with the connection string and then used the "getProperties" method to fetch the properties. This method is still not a like-to-like replacement as we do not get the response back in the earlier format.
Is com.mysql.cj.conf.ConnectionUrlParser the right way to proceed or should I write a custom parser based on the logic previous used or is there something else I should look at? Appreciate your help!
I am working on upgrading mysql-connector-java to version 8.0.28 - PR. This is needed to resolve security vulnerabilities. I creating this issue to discuss the obstacles that I am facing during the process. Please let me know if this is not the right place.
With the upgrade the
com.mysql.jdbc.NonRegisteringDriver#parseURLmethod used inorg.apache.druid.utils.ConnectionUriUtilsis no longer available. So, I have resorted to instantiatingcom.mysql.cj.conf.ConnectionUrlParserwith the connection string and then used the "getProperties" method to fetch the properties. This method is still not a like-to-like replacement as we do not get the response back in the earlier format.Is
com.mysql.cj.conf.ConnectionUrlParserthe right way to proceed or should I write a custom parser based on the logic previous used or is there something else I should look at? Appreciate your help!