Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2440

Regression: HST Container Reloading on configuration file change doesn't work properly (for static resources) in TRUNK (2.26.xx)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 2.26.00
    • 2.26.01
    • None
    • None

    Description

      As provided by HSTTWO-1611, if 'hst-config-refresh-delay' init parameter is greater than zero for HstSiteConfigServlet configuration in web.xml, the spring component manager is reloaded on the configuration file change.
      I tested this feature for some reason with testsuite like the following steps:

      • Check out, build and run the testsuite-TRUNK by `mvn -P cargo.run`.
      • Visit the site homepage.
      • Add a property in /site/WEB-INF/hst-config.properties (e.g., a=1) to trigger configuration file change.
      • Wait for 3 seconds at least; you will notice two log lines about the reloading in the console.
      • Reload the site homepage. Then you will notice all the static resources such as images, css and javascript are missing.

      I've just briefly looked into the HstFilter code, and HstFilter seems to fail to check the prefix/suffix exclusion after the reloading.
      By the way, I noticed that it is still working fine with testsuite-1.02.xx branch.

      It looks like caused by some hst config loading changes in the trunk...

      Attachments

        Activity

          People

            svoortman Simon Voortman (Inactive)
            wko Woonsan Ko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: