Uploaded image for project: 'Lucee Development'
  1. LDEV-1085

Mail attachment file not unique using content attribute

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.1.42
    • Labels:
      None

      Description

      When specifying a binary variable for the 'content' attribute, Lucee will try to write the binary to a temporary file. The file will be saved with the 'file' attribute as it's filename.

      When multiple emails are send with the same filename as an attachment it will overwrite the file of the previous email en delete the file after the mail has been send.
      The next email that has been queued will throw an exception since the file (with the same name) has already been deleted.

      I have attached a code example to reproduce the problem.

      this When specifying a binary variable for the 'content' attribute, Lucee will try to write the binary to a temporary file. The file will be saved with the 'file' attribute as it's filename.

      When multiple emails are send with the same filename as an attachment it will overwrite the file of the previous email en delete the file after the mail has been send.
      The next email that has been queued will throw an exception since the file (with the same name) has already been deleted.

      I have attached a code example to reproduce the problem.

      This has been tested in Lucee 4.5. I've checked the Lucee code and it seems that this has not been fixed in 5.1 yet.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              bjvollebregt Bart Vollebregt
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: