Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-16038

Need to catch fieldvalidationexception when getting the custom field value via custom field params

    XMLWordPrintable

Details

    • 3.13
    • 1
    • Severity 3 - Minor
    • Hide
      Atlassian Update – 16 November 2017

      Hi everyone,

      The issue has not collected enough votes, watches, comments or support cases during it's lifetime. In this sense overal interest in the reported problem is low.
      Jira team is focusing on bigger and more impactful issues at the moment and we are not likely to look at the current bug soon. Therefore I'm resolving the issue as Timed Out.

      Atlassian will continue to watch issue for the further updates, so please don't hesitate to share your feedback in the issue comments.

      Cheers,
      Ignat Alexeyenko
      Jira bugmaster.

      Show
      Atlassian Update – 16 November 2017 Hi everyone, The issue has not collected enough votes, watches, comments or support cases during it's lifetime. In this sense overal interest in the reported problem is low. Jira team is focusing on bigger and more impactful issues at the moment and we are not likely to look at the current bug soon. Therefore I'm resolving the issue as Timed Out . Atlassian will continue to watch issue for the further updates, so please don't hesitate to share your feedback in the issue comments. Cheers, Ignat Alexeyenko Jira bugmaster.

    Description

      This is a problem if you add a URL custom field and navigate to the printable view of the issuenavigator with an invalid URL. For example the following URL:
      http://localhost:8090/jira/sr/jira.issueviews:searchrequest-printable/temp/SearchRequest.html?&pid=10000&customfield_10000=blargh&sorter/field=issuekey&sorter/order=DESC&tempMax=1000

      Will result in:

      System Error
      
      A system error has occurred.
      
      If this problem persists - please notify your JIRA administrator of this problem.
      
      If you are an administrator, please try submitting this problem via the Support Request Page
      
      Else, please create a support issue on our support system at http://support.atlassian.com with the following information:
      
         1. a description of your problem
         2. cut & paste the error and system information found below
         3. attach the application server log file ( /Users/andreask/projects/atlassian/jira-3.9.2/atlassian-jira.log ) 
      
      Cause:
      com.atlassian.jira.issue.customfields.impl.FieldValidationException: Not a valid URL
      
      Stack Trace: [hide]
      
      com.atlassian.jira.issue.customfields.impl.FieldValidationException: Not a valid URL
      	at com.atlassian.jira.issue.customfields.impl.URLCFType.getSingularObjectFromString(URLCFType.java:25)
      	at com.atlassian.jira.issue.customfields.impl.AbstractSingleFieldType.getValueFromCustomFieldParams(AbstractSingleFieldType.java:180)
      	at com.atlassian.jira.issue.customfields.searchers.BaseCustomFieldSearcher.getValue(BaseCustomFieldSearcher.java:62)
      	at com.atlassian.jira.plugin.customfield.CustomFieldSearcherModuleDescriptor.getViewHtml(CustomFieldSearcherModuleDescriptor.java:109)
      	at com.atlassian.jira.issue.customfields.searchers.AbstractCustomFieldSearcher.getViewHtml(AbstractCustomFieldSearcher.java:108)
      	at com.atlassian.jira.issue.views.util.SearchRequestHeader.getSearcherViewHtml(SearchRequestHeader.java:141)
      	at com.atlassian.jira.issue.views.util.SearchRequestHeader.getSearcherViewHtmlDescriptions(SearchRequestHeader.java:127)
      	at com.atlassian.jira.issue.views.util.SearchRequestHeader.getHeader(SearchRequestHeader.java:56)
      	at com.atlassian.jira.issue.views.SearchRequestPrintableView.writeSearchResults(SearchRequestPrintableView.java:53)
      	at com.atlassian.jira.plugin.searchrequestview.SearchRequestURLHandler.handleRequest(SearchRequestURLHandler.java:219)
      	at com.atlassian.jira.web.servlet.SearchRequestViewServlet.doGet(SearchRequestViewServlet.java:27)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      	at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:73)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      	at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      ...
      

      This is because the AbstractSingleFieldType.getValueFromCustomFieldParams() doesn't catch the FieldValidationException the same way that AbstractSingleFieldType.getValueFromIssue() does.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andreask@atlassian.com Andreas Knecht (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: