[jboss-jira] [JBoss JIRA] Created: (JBRULES-1811) syntax errors caused by use of special characters in decision table cells

Frank Langelage (JIRA) jira-events at lists.jboss.org
Mon Oct 20 17:45:21 EDT 2008


syntax errors caused by use of special characters in decision table cells
-------------------------------------------------------------------------

                 Key: JBRULES-1811
                 URL: https://jira.jboss.org/jira/browse/JBRULES-1811
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-decisiontables
    Affects Versions: 4.0.7
         Environment: JBoss-4.24GA with Drools 4.0.7 on Solaris Sparc 10, Sun JDK 1.6.0_07
            Reporter: Frank Langelage
            Assignee: Mark Proctor


A customer entered item codes with special characters into an decision table. This caused syntax errors on the generated code.
The item codes contained dimension in inches and they used a double quote for the unit (e.g. '... 24"....').
As this double quotes terminate a string, the generated code out of the decision table is invalid.

If a double quote sign is in the cell content this double quote must be masked by inserting a backslash character automatically.
So we would get "....24\"...." as the string literal in generated code.

>From our opinion it's not acceptable to force the user who fills in the data cells into the spreadsheet to learn java and masquerade problematic characters by inserting the backslash in front of them.


-- 
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 jboss-jira mailing list