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

Krzysztof Sobolewski (JIRA) jira-events at lists.jboss.org
Wed Jan 7 09:05:14 EST 2009


    [ https://jira.jboss.org/jira/browse/JBCACHE-1461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12445222#action_12445222 ] 

Krzysztof Sobolewski commented on JBCACHE-1461:
-----------------------------------------------

Should be "cache loader is empty", of course :)

> 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: Manik Surtani
>             Fix For: 3.1.0.GA
>
>
> 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