[Bug]: Problems with Mail Attachments After Upgrading
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
- Upgrade a workflow from Apache Hop 2.13 to 2.14.
- Configure a "Mail" action with attached files.
- Save and reopen the workflow.
- Check the "Attached Files" tab and attempt to send emails with attachments.
2.13
2.14
Issue Priority
Priority: 2
Issue Component
Component: Actions
.take-issue
In case this helps: This bug was introduced in 2.14. Version 2.13 works fine.
should be fixed with https://github.com/apache/hop/issues/5544