Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3666

DSNBounce exception when no Date header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • master
    • None
    • None

    Description

      When the DSNBounce mailet processes a mail without a Date header, it fails with the exception

      java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: OffsetSeconds

      because the LocalDateTime used to construct the new date does not include timezone information required by the date formatter.

      The fix is to construct the new date via ZonedDateTime instead.

      There is actually a unit test for this, but the MimeMessageBuilder adds a Date header by default if not specified. The test fix is to explicitly remove the Date header after building.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kotto Karsten Otto
              Votes:
              1 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 - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m