Uploaded image for project: 'Enterprise Mail Queue for JIRA'
  1. EMQ-136

Attachment size validating on storage to not exceed maxint

    Details

    • Type: Bug
    • Status: Resolved (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.22, 1.2.2, 1.3.3
    • Labels:
      None

      Description

      EMQ attachment max size is stored in KB, it appears there is an issue storing values that could exceed maxint.

      2016-05-02 13:30:55,727 Thread-3355 ERROR ServiceRunner c.t.j.emq.queue.OutgoingQueueManager
      java.lang.NumberFormatException: For input string: "10737418240"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:583)
      at java.lang.Integer.parseInt(Integer.java:615)
      at com.thepluginpeople.jira.emq.utils.ParamManager.getQueuesMaxAttachmentTotalSize(ParamManager.java:496)
      at com.thepluginpeople.jira.emq.queue.OutgoingQueueProcessor.processItems(OutgoingQueueProcessor.java:264)
      at com.thepluginpeople.jira.emq.queue.OutgoingQueueManager.flushAllQueues(OutgoingQueueManager.java:79)
      at com.thepluginpeople.jira.emq.queue.job.FlushQueueThread.run(FlushQueueThread.java:39)
      

      Note: setting large values here makes no sense. The value is interpreted as KB, eg 1024 is 1MB, 10240 is 10MB etc.

      The related bug had 10240 present, 10MB, should not result in 10737418240 being calculated, seems to have been mulitplied incorrectly, in fact, by 1024*1024 (should only be *1024, to get MB)

        Attachments

          Activity

            People

            • Assignee:
              abrook abrook
              Reporter:
              abrook abrook
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 15 minutes
                1h 15m

                  Who's Looking?