[jboss-jira] [JBoss JIRA] (JBRULES-2870) Option to bypass the package authentication in rule agent

Toni Rikkola (JIRA) jira-events at lists.jboss.org
Mon Nov 18 06:01:08 EST 2013


     [ https://issues.jboss.org/browse/JBRULES-2870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Toni Rikkola updated JBRULES-2870:
----------------------------------

    Assignee:     (was: Jervis Liu)

    
> Option to bypass the package authentication in rule agent
> ---------------------------------------------------------
>
>                 Key: JBRULES-2870
>                 URL: https://issues.jboss.org/browse/JBRULES-2870
>             Project: JBRULES
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: drools-core
>    Affects Versions: 5.1.1.FINAL
>            Reporter: Jian Zhi
>
> 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/LATEST
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list