[ 
https://issues.apache.org/jira/browse/CALCITE-7908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ruben Q L resolved CALCITE-7908.
--------------------------------
    Resolution: Fixed

Done via 
[{{c989bfb}}|https://github.com/apache/calcite/commit/c989bfb0a5c28d03975089f207e4aaa98e730a0d]
 

> ModelHandler should apply the model class-name filter to the JDBC driver 
> auto-detected from jdbcUrl
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-7908
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7908
>             Project: Calcite
>          Issue Type: Task
>          Components: core
>            Reporter: Ruben Q L
>            Assignee: Ruben Q L
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.43.0
>
>
> When a JDBC schema in a model file omits {{jdbcDriver}}, the driver class is 
> chosen automatically from {{jdbcUrl}} at connection time. 
> {{ModelHandler.visit(JsonJdbcSchema)}} calls 
> {{classNameFilter.check(jsonSchema.jdbcDriver)}}, which is a no-op when 
> {{jdbcDriver}} is null, so the auto-detected driver class is never validated 
> against the filter configured by {{calcite.model.classes.allowed}} / 
> {{calcite.model.classes.denied}} (CALCITE-7713).
> As a result, the filter only governs schemas whose model explicitly names a 
> driver class. A schema that relies on driver auto-detection is loaded without 
> any class-name check, which is inconsistent with the explicit-driver path and 
> with the other entry points that the filter covers.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to