[jbosscache-issues] [JBoss JIRA] Resolved: (JBCACHE-1461) Possible problems with SQL metacharacters in JDBCCacheLoader

Manik Surtani (JIRA) jira-events at lists.jboss.org
Tue Aug 25 04:53:23 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBCACHE-1461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manik Surtani resolved JBCACHE-1461.
------------------------------------

    Fix Version/s:     (was: 3.3.0.GA)
       Resolution: Duplicate Issue


See JBCACHE-1534


> Possible problems with SQL metacharacters in JDBCCacheLoader
> ------------------------------------------------------------
>
>                 Key: JBCACHE-1461
>                 URL: https://jira.jboss.org/jira/browse/JBCACHE-1461
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Cache loaders
>    Affects Versions: 2.2.1.CR1, 3.0.2.CR1
>            Reporter: Krzysztof Sobolewski
>            Assignee: Mircea Markus
>
> JDBCCacheLoader uses queries with LIKE operator, but passes search patterns constructed from query parameters without concern for metacharacters like '%' and '_'. A quick test can show the problem:
> add /a/b/c
> add /a/d/c
> remove /a/_/c
> find the cache is empty.
> Fortunately the problem is apparently limited to deleteNodeSql and recursiveChildrenSql, both in JDBCCacheLoaderConfig (and not in AdjListJDBCCacheLoaderConfig).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosscache-issues mailing list