[
http://jira.jboss.com/jira/browse/JBSEAM-689?page=all ]
Gavin King closed JBSEAM-689.
-----------------------------
Resolution: Done
Thanks, applied this with minor changes.
Seam framework Query too sensitive about keyword case
-----------------------------------------------------
Key: JBSEAM-689
URL:
http://jira.jboss.com/jira/browse/JBSEAM-689
Project: JBoss Seam
Issue Type: Bug
Components: Framework
Affects Versions: 1.1.1.GA
Reporter: Leo Baschy
Assigned To: Gavin King
Fix For: 1.1.5.GA
Attachments: Query.java.patch
When the org.jboss.seam.framework.Query uses anything but lower case "from" and
"order" then in Query method getCountEjbql calls to indexOf return -1, which
then causes an exception when calling substring.
Further, indexOf("from") and indexOf("order") also would match e.g.
fromAddress or orderNumber, which would be wrong.
Upper case or any case "FROM" and "ORDER" should be tolerated. Names
that happen to contain letter sequences "from" or "order" should be
ignored.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira