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

CVS module timeout is stored incorrectly as an integer multiplied by 1000 and can lead to integer overflow problems

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 4.1
    • 3.13.5
    • None

    Description

      Steps to reproduce:

      1. Create a new CVS module with a timeout of 3,600,000 seconds (3600000)
      2. View the resultant details on the list of CVS Modules: module displays timeout as "-694967 seconds"
      3. Go back to edit and the same value is displayed in the input box
      4. View the record in the database and it is being stored as -694967296

      There's a whole bunch of messy conversion code in the CVS Modules. Integers multiplied by 1000 and then stored as Strings, only to be retrieved out as Integers again by dividing by 1000. This needs to be cleaned up, and Longs need to be used instead of Integers.

      Attachments

        Activity

          People

            bbain bain
            mtokar Michael Tokar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: