hop icon indicating copy to clipboard operation
hop copied to clipboard

[Bug]: Problems with Mail Attachments After Upgrading

Open mocoxk opened this issue 7 months ago • 1 comments

Apache Hop version?

2.14

Java version?

openjdk 21.0.7 2025-04-15 LTS

Operating system

Windows

What happened?

Issue: Problems with Mail Attachments After Upgrading from Apache Hop 2.13 to 2.14

Description

After upgrading from Apache Hop 2.13 to 2.14, I experienced issues with sending emails that have attachments in my workflow. Specifically:

  • The attachments are not being sent with the email.
  • In the "Mail" action, under the "Attached Files" tab, the file type selection is not saved or displayed in the UI, even though it is specified in the XML configuration.

Technical Details

Upon reviewing the XML configuration files between versions 2.13 and 2.14, I noticed a change in the structure for specifying file types:

In 2.13:

<filetypes>
    <filetype>GENERAL</filetype>
</filetypes>

In 2.14:

<fileTypes>
    <fileType>General</fileType>
</fileTypes>

It seems that the change in the XML tags and the case sensitivity of the values might be causing the issue.

Additionally, I had to manually edit the workflow .hwf files using VS Code to update the tag to the new format. Only after making this change did the email sending with attachments start working again.

Steps to Reproduce

  1. Upgrade a workflow from Apache Hop 2.13 to 2.14.
  2. Configure a "Mail" action with attached files.
  3. Save and reopen the workflow.
  4. Check the "Attached Files" tab and attempt to send emails with attachments.

2.13

Image

2.14

Image

Issue Priority

Priority: 2

Issue Component

Component: Actions

mocoxk avatar May 20 '25 15:05 mocoxk

.take-issue

bamaer avatar May 20 '25 16:05 bamaer

In case this helps: This bug was introduced in 2.14. Version 2.13 works fine.

fhossfel avatar Sep 02 '25 10:09 fhossfel

should be fixed with https://github.com/apache/hop/issues/5544

hansva avatar Sep 02 '25 11:09 hansva