Closed turnbullerin closed 1 month ago
Thanks for this. I made a new branch with the change and created a pull request: https://github.com/ERDDAP/erddap/pull/174
Your repo seems to be disconnected according to GitHub so I wasn't able to make a pull directly from your repo.
As for the pre-commit hook. Yeah, that is new and I did also consider formatting the entire code base at once, but opted to start with the approach of getting files updated as they are touched.
Hmm, ok I'll have to fix that! Thanks Chris!
Erin
Describe the bug The SMTP connection information requires the SMTP username to be an email address, but some (typically mail relay services, notably the one required by the Government of Canada for applications) don't use an email address as the username.
To Reproduce
Expected behavior The email service should be active and work when a non-email username is entered.
Server JDK 21, ERDDAP 2.24, using jetty development server.
Desktop (please complete the following information): Windows
Additional context Note that the issue steps from line 1844-1849 in EDStatic.java
There appear to be no issues with making this change when I performed it on my local build.
Here's a patch for review: https://github.com/turnbullerin/erddap/tree/email_fix3
Of note, I ran the commit with --no-verify because the pre-commit hook was making significant formatting changes to the file and I didn't want to include these in the review :)