Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-814

Logback-access doesn't work if request is POST and content-type has encoding

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.11
    • 1.0.10
    • logback-access
    • None

    Description

      If HTTP request has content-type of "application/x-www-form-urlencoded" but with specified encoding (like "application/x-www-form-urlencoded; charset=UTF-8" then the POST parameters are not accessible using ServletRequest.getParameterNames/getParameter/etc. In other words, POST requests cannot be used in standard way in such a situation.

      The bug is caused by implementation of ch.qos.logback.access.servlet.Util.isFormUrlEncoded. I attach a patch that solves the problem.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            gkuligowski Grzegorz Kuligowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: