Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
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
- relates to
-
HSTTWO-3028 Backport: Resource Bundle query can fail if live/preview credentials are configured to the same.
- Closed