Option to bypass the package authentication in rule agent
---------------------------------------------------------
Key: JBRULES-2870
URL:
https://issues.jboss.org/browse/JBRULES-2870
Project: Drools
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.1.1.FINAL
Reporter: Jian Zhi
Assignee: Mark Proctor
GUVNOR-133 (Rules Agent provides access to all users' rules without authentication)
added a new feature to authenticate the user in Rule agent. We would like to have this
function as an optional feature. When we evaluate the rule in the application we would
like to turn off the authentication, so at the runtime the user authentication is bypassed
when the package is fetched through URL.
In 5.1.1 release we got IO Exception when RuleAgent.ENABLE_BASIC_AUTHENTICATION is set to
false.
java.io.IOException: Server returned HTTP response code: 401 for URL:
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/XXX/...
14:23:04,941 ERROR [STDERR] at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
14:23:04,941 ERROR [STDERR] at
org.drools.agent.HttpClientImpl.fetchPackage(HttpClientImpl.java:77)
14:23:04,941 ERROR [STDERR] at
org.drools.agent.URLScanner.readPackage(URLScanner.java:171)
14:23:04,942 ERROR [STDERR] at
org.drools.agent.URLScanner.getChangeSet(URLScanner.java:143)
14:23:04,942 ERROR [STDERR] at
org.drools.agent.URLScanner.loadPackageChanges(URLScanner.java:119)
14:23:04,942 ERROR [STDERR] at
org.drools.agent.RuleAgent.checkForChanges(RuleAgent.java:429)
14:23:04,942 ERROR [STDERR] at
org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java:381)
14:23:04,942 ERROR [STDERR] at org.drools.agent.RuleAgent.configure(RuleAgent.java:366)
14:23:04,942 ERROR [STDERR] at org.drools.agent.RuleAgent.init(RuleAgent.java:266)
14:23:04,942 ERROR [STDERR] at
org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:206)
14:23:04,942 ERROR [STDERR] at
org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:166)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira