Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1506

RuleAgent will not read binary packages from Apache HTTP Server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.4
    • Fix Version/s: 4.0.5, 5.0.0.M1
    • Component/s: All
    • Labels:
      None
    • Environment:

      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

      Description

      Hi,

      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:

      {null=[HTTP/1.1 200 OK], ETag=["360//alea/eco/rules/eco.pkg"], Date=[Fri, 14 Mar 2008 18:46:08 GMT], Last-Modified=[Fri, 14 Mar 2008 17:06:15 GMT], Keep-Alive=[timeout=15, max=100], Accept-Ranges=[bytes], Connection=[Keep-Alive], Content-Type=[application/octet-stream], Server=[Apache]}

      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.. ?

      Thanks,
      David.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michaelneale Michael Neale
                Reporter:
                stringaling David Stringer
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: