You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate a password from your Hop root directory. For e.g.: ./hop-encrypt.sh -hop ThisIsAPassword
Generate one row which contains, among other params required to send an email via authenticated SMTP, the password already encrypted at the previous step. For e.g., in our case: smtp_password --> Encrypted 2beccc7a119ee81a59b18bd63c99dbdde
Add and connect a Mail to the previous transform, by specifying the right attribute from the stream.
Expected outcome:
the mail message is sent (if the SMTP server is up)
Actual result:
Authentication failure due to wrong password
Hint:
You can reproduce even if you don't have any SMTP server available to test against: Just by debugging remotely your Hop instance you'll be able to find out that the password sent to the decryption method is not the Encrypted 2beccc7a119ee81a59b18bd63c99dbdde, rather it's the label of the password from the stream (in our case, it's smtp_password); to go straight to the point, put a breakpoint on Encr.java:92 and climb up the stack.
Issue Priority
Priority: 3
Issue Component
Component: Transforms
The text was updated successfully, but these errors were encountered:
sramazzina
changed the title
[Bug]: Mail transform doesn't decrypt the password, rather the metadata
[Bug]: Mail transform doesn't decrypt the password
Mar 18, 2024
xdelox
pushed a commit
to xdelox/hop
that referenced
this issue
Mar 18, 2024
Apache Hop version?
2.9.0-SNAPSHOT
Java version?
openjdk 11
Operating system
macOS
What happened?
Steps to reproduce:
./hop-encrypt.sh -hop ThisIsAPassword
smtp_password --> Encrypted 2beccc7a119ee81a59b18bd63c99dbdde
The attached pipeline does what described above.
Expected outcome:
the mail message is sent (if the SMTP server is up)
Actual result:
Authentication failure due to wrong password
Hint:
You can reproduce even if you don't have any SMTP server available to test against: Just by debugging remotely your Hop instance you'll be able to find out that the password sent to the decryption method is not the
Encrypted 2beccc7a119ee81a59b18bd63c99dbdde
, rather it's the label of the password from the stream (in our case, it'ssmtp_password
); to go straight to the point, put a breakpoint on Encr.java:92 and climb up the stack.Issue Priority
Priority: 3
Issue Component
Component: Transforms
The text was updated successfully, but these errors were encountered: