[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1290) BRMS does not allow rule names to contain an apostrophe character ( ' )

Michael Neale (JIRA) jira-events at lists.jboss.org
Tue May 20 06:45:00 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBRULES-1290?page=comments#action_12413326 ] 
            
Michael Neale commented on JBRULES-1290:
----------------------------------------

one extra trick is the "find" method which takes a wildcard - we will need to know this is a wildcard, not the part of a filename, and kind of double escape it.

> BRMS does not allow rule names to contain an apostrophe character ( ' )
> -----------------------------------------------------------------------
>
>                 Key: JBRULES-1290
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-1290
>             Project: JBoss Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-brms
>    Affects Versions: 4.0.2
>            Reporter: Phil Verghese
>         Assigned To: Jervis Liu
>             Fix For: 4.0.8
>
>
> Rules with apostrophe characters are rejected by the BRMS. For example the rule name "Set employee's wage" works outside BRMS, but does not work in BRMS.
> If you attempt to enter a rule through the BRMS containing an apostrophe,the error stack trace says "An error occurred executing the action.
> Details
> com.google.gwt.user.client.rpc.SerializableException:
> javax.jcr.RepositoryException: failed to resolve path Set employee's relative to /drools:repository/drools:package_area/com.example/assets: Invalid name: Set employee's wage: Invalid name: Set employee's wage at
> org.drools.brms.server.ServiceImplementation.createNewRule(ServiceImplementation.java:166)..."
> If you attempt to import a .drl file with a rule that has an apostrophe in the title, you'll get this error message
> (including the <pre> tags): "Unable to import into the package. [<pre>Unable to process import: javax.jcr.RepositoryException: failed
> to resolve path Set employee's wage relative to /drools:repository/drools:package_area/com.soi/assets: Invalid name: Set employee's  wage: Invalid name: Set employee's wage</pre>]".

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