-
Bug
-
Resolution: Fixed
-
Medium
-
5.0.6, 6.1-OD-05, 6.1
-
None
-
5
-
NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.
Since JIRA 5.0.3 comment length can be limited by using the jira.text.field.character.limit property (see ). However, it is still possible to crash JIRA by adding many comments to an issue (or when the limit is disabled, which is the default).JRA-27668
Steps to reproduce:
- Create a huge issue by adding lots of large comments or a large number of comments
- open the issue in the browser, clicking "Refresh" a few times so that it's being loaded in several parallel requests
- JIRA will crash with OutOfMemoryException
We need to be able to handle large issues like this. Some options for fixing that come to mind:
- only rendering the first N comments (where N may vary depending on the comment limit)
- calculate the size of the comments before loading them into memory, and do something different depending on whether they are above or below a certain threshold
Those are just 2 of many possible options. The important thing is that JIRA doesn't crash, and that we handle both dimensions (comment size and number of comments).
Resolution - JIRA 6.4 and above
For JIRA 6.4.x customers
All the code changes to support the limit throughout JIRA will be included in JIRA 6.4.1.
However, the limit is still off by default, customers wishing to enforce the limit can manually set the jira.text.field.character.limit advanced setting. We recommend to set the value to 32767 which will be new default from JIRA 7.0 and onwards.
For JIRA 7.0 and Cloud customers
All the code changes to support the limit throughout JIRA will be included in the next Cloud release and JIRA 7.0
jira.text.field.character.limit will be set to 32767 by default unless you have explicitly changed this setting to a different value.
Workaround
Extract large comments and set jira.text.field.character.limit.
Please see our OutOfMemoryError Caused by Large Comments or Descriptions in an Issue KB for further information on this.
- causes
-
JRASERVER-59561 Users are not allow to edit issue due to the fix on JRA-28519
- Gathering Impact
-
JRASERVER-64351 Provide a full solution for long comments breaching the character limit
- Gathering Interest
- is caused by
-
JRASERVER-38357 Text field size limit ignored by incoming mail handlers
- Closed
- is duplicated by
-
JRASERVER-40057 "Communications Breakdown" and "XSRF Security Token Missing" error when edit description field
- Closed
-
JRASERVER-40767 Large comment errors should provide a descriptive error message
- Closed
- is related to
-
JRASERVER-27743 Make the new limit for text fields limitable, by default OFF and configurable on the advanced config page
- Closed
-
JRASERVER-43631 Default custom field values can be stripped when issues are created via email
- Closed
-
JRACLOUD-65805 JIRA dies with OutOfMemoryException when rendering issues with numerous comments
- Closed
-
JRASERVER-27803 Implement default sane limits for text fields for OnDemand and make the limits not configurable in this environment
- Closed
-
JRASERVER-34917 New renderer that decides text or wiki rendering based on content size
- Closed
- relates to
-
JRACLOUD-28519 JIRA dies with OutOfMemoryException when rendering issues with numerous and/or large comments
- Closed
-
JRASERVER-27668 The text length of a comment should be limited
- Closed
-
JRASERVER-16318 Issue Panels (Comments, Logworks, Change History, etc) Paging & Truncating
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
- was cloned as
-
JDEV-29780 Loading...