Status: Closed (View Workflow)
Affects Version/s: 4.0.4
Rules Package is stored in SVN, accessed through Apache 2.0.52
Rules Agent is running within WAR on Jboss 4.0.5, Java 1.6
Both Servers are running on Cent-OS 4
We were hoping to deploy our rules packages in SVN fronted by Apache 2.0.52. The rule agent fails when trying to load the URI that resolves into the repository..
Exception is as follows:
2008-03-14 11:46:08,270 ERROR [STDERR] RuleAgent(MyConfig) INFO (Fri Mar 14 11:46:08 PDT 2008): Configuring package provider : URLScanner monitoring URLs: http://vconfig.dev.alea.ca/alea/eco/rules/eco.pkg with local cache dir of /tmp
2008-03-14 11:46:08,583 ERROR [STDERR] RuleAgent(MyConfig) WARNING (Fri Mar 14 11:46:08 PDT 2008): Was an error contacting http://vconfig.dev.alea.ca/alea/eco/rules/eco.pkg. Reponse header:
2008-03-14 11:46:08,583 ERROR [STDERR] RuleAgent(MyConfig) WARNING (Fri Mar 14 11:46:08 PDT 2008): Falling back to local cache.
I believe the problem resides in "org.droos.agent.HttpClientImpl". It is looking for a http header field "lastModified", instead of the HTTP standard header field "last-modified". Thus it never updates the lastUpdated field in "LastUpdatedPing", which means the server will never load the file.
It seems to me to be an easy fix, to check for both headers.. ?