After upgrading our CQ5.3 publish instance to CRX2.1, it is now returning a 200 response for non-existent pages.
Case 1: If you don't have a custom 404 handler installed
If you don't have a custom 404 handler (under /apps/sling/servlet/errorhandler/404.jsp
), then please upload and install attached package using CQ5 package manager.
http://<host>:<port>/bin/login.html?resource=/etc/packages.list.html
and login as adminCase 2: If you have a custom 404 handler installed
If you have custom 404.jsp under /apps/sling/servlet/errorhandler/404.jsp
then please update your code as follows:
... if (!WCMMode.fromRequest(request).equals(WCMMode.DISABLED)) { if (isAnonymousUser(request) && isBrowserRequest(request)) { ... } } response.setStatus(404); ...
CQ5.3 with CRX2.1
Download
Sign in to your account