core
core copied to clipboard
fix(hosts) : retrieve live version if a host has live and working versions
#Closes #28362
Proposed Changes
- For the sites portlet, if a site has live and working versions, the live version is shown.
- When resolving a site by name, id or alias, the live version of the site is retrieved for front-end users.
Checklist
- [x] Tests
Semgrep found 11 CUSTOM_INJECTION-2 findings:
- dotCMS/src/main/java/com/dotmarketing/portlets/contentlet/business/HostFactoryImpl.java
The method identified is susceptible to injection. The input should be validated and properly escaped.
Ignore this finding from CUSTOM_INJECTION-2.
Quality Gate passed
Issues
24 New issues
11 Fixed issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code