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

Ewan Mellor updated CTAKES-505:
-------------------------------
    Description: 
{{o.a.ctakes.dictionary.lookup2.util.JdbcConnectionFactory}} includes code to 
resolve the reference to the hsqldb file by appending the {{.script}} extension 
and searching for the file using {{FileLocator}}.  This fails if the JDBC URL 
has properties on the end (e.g. {{.../sno_rx_16ab/sno_rx_16ab;readonly=true}}) 
because JdbcConnectionFactory doesn't handle the properties and so it searches 
for an invalid file.

Patch attached.  This patch is based on CTAKES-501 because of merge conflicts.



  was:
{{o.a.ctakes.dictionary.lookup2.util.JdbcConnectionFactory}} includes code to 
resolve the reference to the hsqldb file by appending the {{.script}} extension 
and searching for the file using {{FileLocator}}.  This fails if the JDBC URL 
has properties on the end (e.g. {{.../sno_rx_16ab/sno_rx_16ab;readonly=true}}) 
because JdbcConnectionFactory doesn't handle the properties and so it searches 
for an invalid file.

Patch attached.



> JdbcConnectionFactory does not handle URLs with properties
> ----------------------------------------------------------
>
>                 Key: CTAKES-505
>                 URL: https://issues.apache.org/jira/browse/CTAKES-505
>             Project: cTAKES
>          Issue Type: Bug
>          Components: ctakes-dictionary-lookup-fast
>    Affects Versions: 4.0.0
>            Reporter: Ewan Mellor
>            Priority: Minor
>         Attachments: CTAKES-505.patch
>
>
> {{o.a.ctakes.dictionary.lookup2.util.JdbcConnectionFactory}} includes code to 
> resolve the reference to the hsqldb file by appending the {{.script}} 
> extension and searching for the file using {{FileLocator}}.  This fails if 
> the JDBC URL has properties on the end (e.g. 
> {{.../sno_rx_16ab/sno_rx_16ab;readonly=true}}) because JdbcConnectionFactory 
> doesn't handle the properties and so it searches for an invalid file.
> Patch attached.  This patch is based on CTAKES-501 because of merge conflicts.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to