You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "xdelox (via GitHub)" <gi...@apache.org> on 2024/03/18 11:30:36 UTC
[I] [Bug]: Mail transform doesn't decrypt the password, rather the metadata (hop)
xdelox opened a new issue, #3728:
URL: https://github.com/apache/hop/issues/3728
### Apache Hop version?
2.9.0-SNAPSHOT
### Java version?
openjdk 11
### Operating system
macOS
### What happened?
Steps to reproduce:
1. Generate a password from your Hop root directory. For e.g.: `./hop-encrypt.sh -hop ThisIsAPassword`
2. 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`
3. Add and connect a Mail to the previous transform, by specifying the right attribute from the stream.
[The attached pipeline does what described above.](https://github.com/apache/hop/files/14635321/mail-encrypt-password.zip)
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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: Mail transform doesn't decrypt the password (hop)
Posted by "usbrandon (via GitHub)" <gi...@apache.org>.
usbrandon closed issue #3728: [Bug]: Mail transform doesn't decrypt the password
URL: https://github.com/apache/hop/issues/3728
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org