Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
7.0.0
-
7
-
5
-
Severity 3 - Minor
-
Description
Reproduction steps:
1. Set jira text character limit in advanced settings to some value, for example 150.
2. Open an issue
3. Click middle-click on 'Edit' button to trigger the old-style edit form
4. Enter a comment at bottom with length exceeding the limit set in step 1.
5. Click 'Update'
Following exception is logged in console
2015-08-07 18:20:56,464 http-bio-8090-exec-20 ERROR admin 1097x3082x1 jvvbj6 0:0:0:0:0:0:0:1 /secure/EditIssue.jspa [webwork.util.ValueStack] query="/tabsWithErrors" {[id="null" type="5" values=""]} {[id="tabsWithErrors" type="8" values=""]} java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.util.ValueStack.findValue(ValueStack.java:417) at webwork.util.ValueStack.findValue(ValueStack.java:216) at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:62) at webwork.view.taglib.ParamTag.doEndTag(ParamTag.java:59) at org.apache.jsp.secure.views.issue.editissue_jsp._jspx_meth_ww_005fparam_005f3(editissue_jsp.java:1140) at org.apache.jsp.secure.views.issue.editissue_jsp._jspx_meth_ww_005fcomponent_005f0(editissue_jsp.java:1032) at org.apache.jsp.secure.views.issue.editissue_jsp._jspx_meth_ww_005fif_005f1(editissue_jsp.java:953) at org.apache.jsp.secure.views.issue.editissue_jsp._jspx_meth_page_005fapplyDecorator_005f0(editissue_jsp.java:576) at org.apache.jsp.secure.views.issue.editissue_jsp._jspx_meth_ww_005fif_005f0(editissue_jsp.java:510) at org.apache.jsp.secure.views.issue.editissue_jsp._jspService(editissue_jsp.java:160) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) ... 125 filtered at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) ... 198 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.util.NoSuchElementException at java.util.TreeMap.key(TreeMap.java:1323) at java.util.TreeMap.firstKey(TreeMap.java:290) at java.util.TreeSet.first(TreeSet.java:394) at com.atlassian.jira.web.action.issue.util.ScreenTabErrorHelper.initialiseTabsWithErrors(ScreenTabErrorHelper.java:68) at com.atlassian.jira.web.action.issue.EditIssue.initTabsWithErrors(EditIssue.java:162) ... 350 more
No other side effects noted. The edit screen correctly displays error "The entered text is too long. It exceeds the allowed limit of 150 characters." below the comment field and the comment is not added. Still this could be investigated and fixed.
This is likely to start showing up since the fix for JRA-28519 but from my investigation this bug was there even before it's just that it didn't manifest itself yet.
See here: https://stash.atlassian.com/projects/JIRA/repos/jira/browse/jira-components/jira-core/src/main/java/com/atlassian/jira/web/action/issue/util/ScreenTabErrorHelper.java#68
Attachments
Issue Links
- clones
-
JDEV-34017 Loading...