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

Resource Bundle query can fail if live/preview credentials are configured to the same.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.28.05
    • None
    • None

    Description

      HippoRepositoryResourceBundleFamilyFactory#createBundleFamily() executes the following query statement twice (one with live credentials and the other with preview credentials):

      String statement = "//element(*, resourcebundle:resourcebundle)[@resourcebundle:id='" + basename + "'] order by @resourcebundle:id";

      And, it just fails if there are more than one node in the result.
      This is problematic if administrator (mis-)configured the live/preview credentials in hst-config.properties for some reason (e.g, testing).

      I think it should be much safer to change the query statement per preview/live in order to avoid this situation.

      Attachments

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              wko Woonsan Ko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: