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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.10
    • Fix Version/s: 1.0.11
    • Component/s: logback-access
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: