Performing "Search <End-Entity-->click on "View" next to Certificates-->Download PEM file-->click on either the < View Older or View Newer >" is not showing the expected result but an error "XML Parsing Error: no root element found".
Here are the steps to reproduce:
1. Perform a search for an End Entity.
2. Click on the View button to view certificates for an End Entity that has more than one certificate (the one I found this on has 5 certificates, 3 revoked and 2 valid).
3.When viewing a certificate, scroll to the bottom and click on any of the following
Download binary/to IE
Download to Firefox
Download PEM file
4. Save the file or Cancel (doesn't matter) and then in the same window, click on either the < View Older or View Newer > buttons.
5. The page reloads that says: "XML Parsing Error: no root element found" (screenshot is attached
Expected outcome: It should load the next certificate.
Reproduced on EJBCA EE 7.0.1 and on 188.8.131.52 for end entity with at least 2 certs.