Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22013

'org.glassfish.jersey.servlet.WebComponent.filterFormParameters' Warning in logs when adding an annotation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 16.2.0-rc-1
    • REST
    • None
    • Windows 11 Pro, Edge 122, using a local instance of XWiki 16.2.0 RC1 on Tomcat 9.0.87, Oracle 19c, reproducible also on Jetty/HSQLDB
    • Unknown

    Description

      Steps to reproduce

      1. Login
      2. Go to a page, select a word
      3. Press CTRL+M and add an annotation
      4. Observe the XWiki console

      Expected results

      No warnings are displayed.

      Actual results

      The following Warning is displayed each time an annotation is added:

      21-Mar-2024 16:10:49.412 WARNING [http-nio-1115-exec-10 - http://localhost:1115/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome/annotations?media=json] org.glassfish.jersey.servlet.WebComponent.filterFormParameters A servlet request to the URI http://localhost:1115/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome/annotations?media=json 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.

      This warning was not displayed when adding an annotation on XWiki 16.1.0, however, the annotations are added.

      Attachments

        Activity

          People

            Unassigned Unassigned
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: