-
Bug
-
Resolution: Fixed
-
Neutral
-
2.2.1
-
Empty show more show less
-
Global Maintenance 3
-
5
Steps to reproduce
- Download the httpd.zip file.
- Unzip it
- Run in the unzipped directory:
$ docker build -t httpd-proxyenabled . $ docker container run \ --publish 90:80 \ -d --name apacheserver \ httpd-proxyenabled
- First command will build the image and second will start the apache httpd proxy and will forward it to the port 90 to the host machine.
- Edit /etc/hosts and add 127.0.0.1 example.com
- Start up Magnolia DX Core
- Open admincentral at http://example.com:90/magnoliaAuthor
- Publish /travel few times
- Compare versions in the Pages app
Expected results
The Diff module shows changes between versions
Actual results
An empty screen is shown with apache httpd error.
Workaround
N/A
Development notes
The VersionDiffHtmlServlet.java forces the html ending (hardcoded), it should be taken dynamically from config (e.g, from defaultExtension attribute)
VersionDiffHtmlServlet.java
private String getSourceUrl(HttpServletRequest request, String contentHandle) { String baseUrl = StringUtils.substringBefore(request.getRequestURL().toString(), SERVICE_PATH); return baseUrl + contentHandle + ".html"; }
Acceptance criteria