[JBoss JIRA] Created: (JBRULES-1231) Functions do not get added to new BRMS package when package imported from drl file
by Shahad Ahmed (JIRA)
Functions do not get added to new BRMS package when package imported from drl file
----------------------------------------------------------------------------------
Key: JBRULES-1231
URL: http://jira.jboss.com/jira/browse/JBRULES-1231
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-brms
Affects Versions: 4.0.1
Environment: BRMS running on Windows XP SP2, with JBoss 4.2GA
Reporter: Shahad Ahmed
Assigned To: Mark Proctor
When you create a new package in the BRMS by importing an existing DRL file then any functions in the DRL file do not get added to the list of functions for the newly created package. Instead, the functions appear along with the import statements in the "header" text box found when you click on "Edit Package configuration" for the new package!
To recreate:
Put the example rules below into a .drl file and import it into the BRMS by creating a new package and choosng the option to load it from a .drl file.
Click on the newly created package com.acme.example in the package browser. Click on the Functions tab for the package. No functions are present.
Click on com.acme.example in the package browser and then select "Edit Package configuration". In the Header text box you should see the two functions defined in the example DRL file given below.
package com.acme.example
import java.util.Set;
function int firstFunction ()
{
return 1;
}
function int secondFunction ()
{
return 2;
}
rule "Rule 1"
when
eval(firstFunction() == 1)
then
System.out.println("Function 1");
end
rule "Rule 2"
when
eval(secondFunction() == 2)
then
System.out.println("Function 2");
End
--
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
17 years, 3 months
[JBoss JIRA] Created: (JBRULES-1206) ParserException on misplaced parenthesis
by Matija Kejzar (JIRA)
ParserException on misplaced parenthesis
----------------------------------------
Key: JBRULES-1206
URL: http://jira.jboss.com/jira/browse/JBRULES-1206
Project: JBoss Rules
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 4.0.1
Environment: Windows XP SP2
Reporter: Matija Kejzar
Assigned To: Mark Proctor
The following exception is thrown on parsing of the attached rules (see attached file). Take note of the incorrect parenthesis in the eval statement on the WorkerPerformanceContext condition lines. Also, please note these rules were generated by the spreadsheet compiler from an .xls decision table.
Here is the exception:
Caused by: org.drools.compiler.DroolsParserException: Unknown error while parsing. This is a bug. Please contact the Development team.
at org.drools.compiler.DrlParser.compile(DrlParser.java:180)
at org.drools.compiler.DrlParser.parse(DrlParser.java:61)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:156)
... application code
--
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
17 years, 3 months
[JBoss JIRA] Created: (JBAS-4747) WebAuthentication programmatic login prevents the user from ever logging out
by Matt Cristantello (JIRA)
WebAuthentication programmatic login prevents the user from ever logging out
----------------------------------------------------------------------------
Key: JBAS-4747
URL: http://jira.jboss.com/jira/browse/JBAS-4747
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Security
Affects Versions: JBossAS-4.2.1.GA
Environment: CentOS 3, JDK 1.5.0_12, JBoss Portal 2.6.1.GA with JBoss AS 4.2.1.GA, set up in ClusteredSingleSignOn mode
Reporter: Matt Cristantello
Assigned To: Scott M Stark
When using the WebAuthentication login(String,String) method, it is not possible to log out even if the logoff() method of the WebAuthentication is called.
Code:
auto_login.jsp
<%@page import="org.jboss.web.tomcat.security.login.WebAuthentication"%>
<%
WebAuthentication pwl = new WebAuthentication();
pwl.login("user", "user");
response.sendRedirect("test.jsp");
%>
logout.jsp
<%@page import="org.jboss.web.tomcat.security.login.WebAuthentication"%>
<%
WebAuthentication pwl = new WebAuthentication();
pwl.logout();
%>
<p>Successfully logged out</p>
test.jsp
<html>
<head>
<title>Test Page</title>
</head>
<body>
<p>Username: <%=request.getRemoteUser() %></p>
<p><a href="logout.jsp">Log Out</a></p>
</body>
</html>
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>test</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<security-constraint>
<web-resource-collection>
<web-resource-name>test</web-resource-name>
<url-pattern>/test.jsp</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<description>Authentication required</description>
<role-name>Authenticated</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>JBoss Portal</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/error.jsp</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>Authenticated</role-name>
</security-role>
</web-app>
jboss-web.xml
<?xml version="1.0"?>
<!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">
<jboss-web>
<security-domain>java:jaas/portal</security-domain>
</jboss-web>
Steps:
1. Log in by navigating to auto_login.jsp
2. Click the log out link, or otherwise navigate to the logout.jsp page.
3. Navigate back to the test.jsp page.
You will still be logged in.
This problem also occurs with the JBoss Portal 2.6.1, where I am automatically logged into the JBoss portal after running auto_login.jsp, but I cannot log out of the Portal using its logout button or the logout.jsp provided as an example above.
I am not seeing any entries in my server.log files when the logout methods are called, even with debug messages being logged.
--
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
17 years, 3 months