Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11656

Prevent AbstractMethodError in SlingHttpServletRequestImpl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Engine 2.12.0
    • Engine 2.12.2
    • Engine
    • None

    Description

      The recent refactoring of Sling's engine can lead to AbstractMethodErrors in SlingHttpServletRequestImpl due to old/buggy code. The problem is that the updated engine code is counting on a proper servlet 3.0 request implementation, returning a proper ServletContext (via getServletContext()) and that one properly implementing getMimeType().
      It turns out that this is not the case in the wild which then leads to the error.

      In addition, even if the request implementations are complete, it is a change in implementation - as the mime type service is most likely not used anymore

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: