Details
-
Bug
-
Resolution: Fixed
-
Low
-
7.1.0, 7.1.1, 7.1.2, 7.2.3, 7.3.6, 7.2.12, 7.8.0, 7.9.2, 7.10.2, 7.11.2, 7.12.3, 8.0.2, 7.13.3, 8.1.1, 7.6.14, 8.2.1, 8.4.0, 8.3.3
-
7.01
-
56
-
Severity 3 - Minor
-
16
-
Description
Summary
Many parts of Jira put excessive log messages into the log files regarding form parameters, and servlets. Most prominently, this can be seen when logging in through the login gadget on the dashboard.
Steps to Reproduce
- Log out of Jira
- Visit the System Dashboard
- Log in to Jira
Expected Results
The log in completes with no warnings.
Actual Results
The below exception is thrown in the catalina.out file:
12-Jun-2019 14:41:02.918 WARNING [http-nio-8821-exec-11] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI http://localhost:8821/j821/rest/gadget/1.0/login, 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 wildly depending on the specific usage - this is but one example.
Notes
There is an entry in log4j.properties to address this logging, however the WebComponent class uses java.util.logging - which means it doesn't respect the settings in log4j.properties - and why those settings do not have the desired effect (despite being uncommented in Jira by default).
Workaround
- Shut down Jira
- Edit $jira-install/conf/logging.properties, and add the following at the bottom:
# Suppress log spam about the request body - https://jira.atlassian.com/browse/JRASERVER-30406 com.sun.jersey.spi.container.servlet.WebComponent.level = SEVERE com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters.level = SEVERE
- Restart Jira for the changes to take effect
Attachments
Issue Links
- is related to
-
JRASERVER-59898 Change default log level for com.sun.jersey.spi.container.servlet.WebComponent classes
- Closed
- copied to
-
JRADEV-18234 Loading...
- relates to
-
MNSTR-3203 Loading...