Details
-
Improvement
-
Status: Review
-
Normal
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
-
0.2
-
Quasar
-
Puma Sprint 234, Puma Sprint 235, Puma Sprint 236, Puma Sprint 237
Description
It might happen that different host groups contain the same host path hierarchy. On this configuration mistake, there's no warning logged and the hst will match and use one of the entries. Reproduction path using pagemodelapi:
- Create a project from latest archetype and run it
- using the console, create a copy of the virtualhostgroup node dev-localhost, name it dev-localhost-2
- enable pagemodelapi on /hst:hosts/dev-localhost/localhost/hst:root and name it resourceapi
- enable pagemodelapi on hst:hosts/dev-localhost-2/localhost/hst:root and name it resourceapi2
- access the rest api from the site http://localhost:8080/site/resourceapi => 404 Not found
- access the rest api from the site http://localhost:8080/site/resourceapi2 => 200 Ok
The behaviour for steps 5 and 6 can randomly generate 404/200 depending on which of the virtualhosts will be matched first.
Attachments
Issue Links
- relates to
-
HSTTWO-1486 In different hostgroups, the exact same host can be configured. The HST does not even give a warning.
- Closed