Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-10713

Exception: Uncaught TypeError: Cannot read property 'charAt' of undefined

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 6.5.0
    • 6.3.13.1
    • None

    Description

      When sorting the estimate statistics for an agile board in Plan mode, the JS falls apart when confronted with a value that exceeds the register (in this case 4,000,000,000 Story Points). In turn, this causes an unhandled type exception that kills the board dead. These values should be caught further up the food chain and not passed to the JS to begin with. In the User Interface, a red An Error Occurred flag is seen. Unfortunately, as this value is part of the issue history, it can be changed but not removed from the GUI.

      Reproduce:

      To reproduce this issue, make an agile board, add an issue to it, and set that issue's estimation statistic to some number bigger than 2147483438. Then try to load Plan mode.

      Workaround:

      1. Run the following query in JIRA's database to identify the offending entries:
        SELECT p.pkey||'-'||ji.issuenum AS "issue key", cfv.numbervalue FROM customfieldvalue cfv 
        	JOIN customfield cf on cfv.customfield = cf.id  
        	JOIN jiraissue ji ON cfv.issue = ji.id
        	JOIN project p ON ji.project = p.id
        	WHERE cf.cfname = 'Story Points' AND cfv.numbervalue > 2147483438;
        

        This will show which issues have the offending entries for Story Points. Please note that this query was built using PostrgreSQL, and may differ on other DBMSs.

      2. In JIRA, open the issues returned;
      3. Edit the Story Points to a number lower than 2147483438;
      4. Save the issues and open the board again.

      Note:

      This same error is displayed differently on Firefox:

      Exception: TypeError: f[1] is undefined
      

      or

      Exception: TypeError: parts[1] is undefined
      

      Attachments

        Activity

          People

            melias MichaelA (Inactive)
            jgarcia John Garcia (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: