List Info

Thread: Created: (JBRULES-1290) BRMS does not allow rule names to contain an apost




Created: (JBRULES-1290) BRMS does not allow rule names to contain an apost
country flaguser name
United States
2007-10-20 09:42:03
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: Mark Proctor


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(S
erviceImplementation.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.atl
assian.com/software/jira

        
_______________________________________________
jboss-jira mailing list
jboss-jiralists.jboss.org
h
ttps://lists.jboss.org/mailman/listinfo/jboss-jira

Assigned: (JBRULES-1290) BRMS does not allow rule names to contain an apos
country flaguser name
United States
2007-10-22 12:06:22
     [ http://jira.jboss.com/jira/browse/JBRULES-1290?page=all ]

Fernando Meyer reassigned JBRULES-1290:
---------------------------------------

    Assignee: Fernando Meyer  (was: Mark Proctor)

> 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: Fernando Meyer
>
> 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(S
erviceImplementation.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.atl
assian.com/software/jira

        
_______________________________________________
jboss-jira mailing list
jboss-jiralists.jboss.org
h
ttps://lists.jboss.org/mailman/listinfo/jboss-jira

Assigned: (JBRULES-1290) BRMS does not allow rule names to contain an apos
country flaguser name
United States
2008-04-24 00:30:09
     [ http://jira.jboss.com/jira/browse/JBRULES-1290?page=all ]

Michael Neale reassigned JBRULES-1290:
--------------------------------------

    Assignee: Michael Neale  (was: Fernando Meyer)

> 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: Michael Neale
>
> 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(S
erviceImplementation.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.atl
assian.com/software/jira

        
_______________________________________________
jboss-jira mailing list
jboss-jiralists.jboss.org
h
ttps://lists.jboss.org/mailman/listinfo/jboss-jira

Updated: (JBRULES-1290) BRMS does not allow rule names to contain an apost
country flaguser name
United States
2008-05-03 13:53:18
     [ http://jira.jboss.com/jira/browse/JBRULES-1290?page=all ]

Mark Proctor updated JBRULES-1290:
----------------------------------

    Fix Version/s: 4.0.7

> 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: Michael Neale
>             Fix For: 4.0.7
>
>
> 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(S
erviceImplementation.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.atl
assian.com/software/jira

        
_______________________________________________
jboss-jira mailing list
jboss-jiralists.jboss.org
h
ttps://lists.jboss.org/mailman/listinfo/jboss-jira

Assigned: (JBRULES-1290) BRMS does not allow rule names to contain an apos
country flaguser name
United States
2008-05-07 01:45:20
     [ http://jira.jboss.com/jira/browse/JBRULES-1290?page=all ]

Jervis Liu reassigned JBRULES-1290:
-----------------------------------

    Assignee: Jervis Liu  (was: Michael Neale)

> 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.7
>
>
> 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(S
erviceImplementation.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.atl
assian.com/software/jira

        
_______________________________________________
jboss-jira mailing list
jboss-jiralists.jboss.org
h
ttps://lists.jboss.org/mailman/listinfo/jboss-jira

Updated: (JBRULES-1290) BRMS does not allow rule names to contain an apost
country flaguser name
United States
2008-05-08 11:46:00
     [ http://jira.jboss.com/jira/browse/JBRULES-1290?page=all ]

Edson Tirelli updated JBRULES-1290:
-----------------------------------

    Fix Version/s: 4.0.8
                       (was: 4.0.7)

> 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(S
erviceImplementation.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.atl
assian.com/software/jira

        
_______________________________________________
jboss-jira mailing list
jboss-jiralists.jboss.org
h
ttps://lists.jboss.org/mailman/listinfo/jboss-jira

Commented: (JBRULES-1290) BRMS does not allow rule names to contain an apo
country flaguser name
United States
2008-05-12 01:19:22
    [ http://jira.jboss.com/jira/browse/JB
RULES-1290?page=comments#action_12412429 ] 
            
Michael Neale commented on JBRULES-1290:
----------------------------------------

Jervis wrote: 

Hi team,

I am currently working on JIRA
http:/
/jira.jboss.com/jira/browse/JBRULES-1290 (BRMS does not
allow rule
names to contain an apostrophe character ( ' )). The problem
is caused by using rule name inputted by users as the name
to add a node, see below (in PackageItem.java):

Node rulesFolder = this.node.getNode( ASSET_FOLDER_NAME );
ruleNode = rulesFolder.addNode( assetName,
AssetItem.RULE_NODE_TYPE_NAME);

The javax.jcr.Node.addNode(String relPath, String
primaryNodeTypeName) method will through RepositoryException
if the relPath parameter contains apostrophe character ( '
). Had a quick check with JSR-170, it is true that
apostrophe character ( ' ) is not allowed in a path name. 
Section 4.6:

char ::= nonspace | ' '
nonspace ::= (* Any Unicode character except: '/', ':', '[',
']', '*', ''', '"', '|' or any whitespace
character *)

There are two possible ways I can think of to have this
fixed, none of them are ideal though.

a. We valid the rule name inputted by users, the validation
rule is in line with JSR-170. This approach is not ideal
because a rule named "Jervis' rule" is perfect
valid in my opinion.

b. Somehow we transform the rule name to sth else if it is
not a valid relative path according to JSR-170. This
approach may require a data structure somewhere to store the
original rule name and transformed relative path name. As I
am pretty new to Drools, I am not sure how to best get this
done.

Any thoughts or suggestions are highly welcome.

> 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(S
erviceImplementation.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.atl
assian.com/software/jira

        
_______________________________________________
jboss-jira mailing list
jboss-jiralists.jboss.org
h
ttps://lists.jboss.org/mailman/listinfo/jboss-jira

Commented: (JBRULES-1290) BRMS does not allow rule names to contain an apo
country flaguser name
United States
2008-05-12 01:26:22
    [ http://jira.jboss.com/jira/browse/JB
RULES-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(S
erviceImplementation.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.atl
assian.com/software/jira

        
_______________________________________________
jboss-jira mailing list
jboss-jiralists.jboss.org
h
ttps://lists.jboss.org/mailman/listinfo/jboss-jira

Commented: (JBRULES-1290) BRMS does not allow rule names to contain an apo
country flaguser name
United States
2008-05-20 05:45:00
    [ http://jira.jboss.com/jira/browse/JB
RULES-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(S
erviceImplementation.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.atl
assian.com/software/jira

        
_______________________________________________
jboss-jira mailing list
jboss-jiralists.jboss.org
h
ttps://lists.jboss.org/mailman/listinfo/jboss-jira

Resolved: (JBRULES-1290) BRMS does not allow rule names to contain an apos
country flaguser name
United States
2008-05-27 19:30:50
     [ http://jira.jboss.com/jira/browse/JBRULES-1290?page=all ]

Jervis Liu resolved JBRULES-1290.
---------------------------------

    Resolution: Done

> 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(S
erviceImplementation.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.atl
assian.com/software/jira

        
_______________________________________________
jboss-jira mailing list
jboss-jiralists.jboss.org
h
ttps://lists.jboss.org/mailman/listinfo/jboss-jira

[1-10]

about | contact  Other archives ( Real Estate discussion Medical topics )