Custom servlets not working anymore

Problem

After upgrading to CQ5.4, custom servlets registered at virtual paths stop working and requests fall back to the Sling Default GET Servlet.

Resolution

This behavior is actually by design and subject of a security-hardening measure introduced with SLING-1512: the Sling Servlet Resolver has been enhanced to make execution paths of servlets configurable.

Per default, CQ5.4 ships with the following execution paths and servlets enabled:

  • /bin/
  • /libs/
  • /apps/
  • /system/
  • /index.servlet
  • /login.servlet

Please note that individual servlets need to be suffixed with '.servlet' . It is recommended to overlay the existing default configuration at /libs/sling/config/org.apache.sling.servlets.resolver.SlingServletResolver in /apps and add custom servlet-paths.

Applies to

CQ 5.4

 Adobe

Dapatkan bantuan lebih cepat dan lebih mudah

Pengguna baru?

Adobe MAX 2024

Adobe MAX
Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX

Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX 2024

Adobe MAX
Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX

Konferensi Kreativitas

14–16 Oktober Miami Beach dan online