[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-689) Seam framework Query too sensitive about keyword case

Leo Baschy (JIRA) jira-events at jboss.com
Wed Jan 24 03:00:52 EST 2007


     [ http://jira.jboss.com/jira/browse/JBSEAM-689?page=all ]

Leo Baschy updated JBSEAM-689:
------------------------------

    Attachment: Query.java.patch

This patch fixes the problem.

The regular expression could use some checking on their exact logic matching EJBQL.

The actual patch may have wacky line breaks due to CVS issues.

> 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
>         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

        



More information about the seam-issues mailing list