Confluence logs excessive warnings regarding form parameters and servlets

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Macros - 3rd Party
    • None
    • 8
    • 33

      Problem Definition

      The below exception is thrown in the catalina.out file:

      20-Aug-2020 14:31:26.113 WARNUNG https-jsse-nio2-443-exec-1854 url:/rest/talk/1.0/comments/updates username:S1114394 com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://confluence.dkb.ag/rest/talk/1.0/comments/updates, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
      

       Note that the URL will vary - this is but one example.

      These warning messages should not interfere with the functionality of the application.

      Workaround

      The message can be suppressed from the logs with the following steps

      1. Edit <confluence-install>/conf/logging.properties
        Note: This is a different file to that found at <confluence-install>/confluence/WEB-INF/classes/logging.properties. Please ensure you edit the correct file.
      2. Add the following line
        com.sun.jersey.spi.container.servlet.WebComponent.level = SEVERE
        
      3. Restart Confluence

            Assignee:
            Unassigned
            Reporter:
            Shilpa R (Inactive)
            Votes:
            39 Vote for this issue
            Watchers:
            32 Start watching this issue

              Created:
              Updated: