[
http://jira.jboss.com/jira/browse/JBRULES-1290?page=comments#action_12412430 ]
Michael Neale commented on JBRULES-1290:
----------------------------------------
OK - in that case, I am happy to disallow the apostraphe in the rule name as long as the
message is clear.
Note that rule name is really like a "file" name - so similar constraints apply.
If we want, we can store it in URLEncoded form - URLEncoder.encode() etc, and then decode
it for display - that would be perfectly fine actually.
In fact, perhaps the URL encoding/decoding is the way to go? (except need to deal with
existing data that is not already encoded).
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