[Bug 22343] New: Add SMTP settings
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Bug ID: 22343 Summary: Add SMTP settings Change sponsored?: --- Product: Koha Version: 18.11 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: fv@spots.school QA Contact: testopia@bugs.koha-community.org Target Milestone: --- I would like to add fields to Koha>Administration for SMTP settings to make it easy to use external mail servers without having to edit files on the server. I am thinking that we could edit koha/C4/Letters.pm adding $mail{smtp} = 'my.mail.server'; I am not sure how the settings are passed to Letters.pm however. What does everyone else think? Is this the right way to do it? Thank you! FV -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |josef.moravec@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Add SMTP settings |Add SMTP configuration | |options to Administration CC| |katrin.fischer@bsz-bw.de Version|18.11 |master -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I have updated the bug description in hope to make this a bit more visible. I am not sure if what you suggest is an option, maybe someone else will comment. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |new feature Assignee|koha-bugs@lists.koha-commun |tomascohen@gmail.com |ity.org | CC| |tomascohen@gmail.com -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #2 from David Cook <dcook@prosentient.com.au> --- I'd have to review the code, which I'm probably not going to do myself, but overall I think that this is a great idea. Keycloak, for instance, provides a very nice web UI for specifying an external mail server to use (as well as configuring email headers to use). Keep in mind that you should probably provide both the hostname and the port. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #3 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107598 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107598&action=edit Bug 22343: Add a new table to store SMTP servers configs Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #4 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107599 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107599&action=edit Bug 22343: Add new table schema file Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #5 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107600 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107600&action=edit Bug 22343: DBIx::Class schema updates [DO NOT PUSH] Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #6 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107601 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107601&action=edit Bug 22343: Add classes for handling SMTP servers This patch introduces classes to handle SMTP servers. It is done in a way that a default server can be set, and then per-library ones can be set. All should be done with Koha::SMTP::Servers methods, that take care of overwriting library-specific configs, and handle the defaults retrieval and setting correctly. To test: 1. Apply this patches 2. Run: $ kshell $ perl installer/data/mysql/updatedatabase.pl => SUCCESS: Atomic update is ok, smtp_servers table created 3. Run: k$ prove t/db_dependent/Koha/SMTP/ => SUCCESS: Tests pass! 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #7 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107602 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107602&action=edit Bug 22343: API routes for SMTP servers CRUD -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #8 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107603 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107603&action=edit Bug 22343: Add CRUD page for SMTP servers This patch introduces a way to define SMTP servers either globally or per-library. To test: 1. Apply this patch 2. Find the SMTP servers entry in the admin page 3. Play with adding/removing SMTP servers => SUCCESS: All works as expected 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107603|0 |1 is obsolete| | --- Comment #9 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107604 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107604&action=edit Bug 22343: Add CRUD page for SMTP servers This patch introduces a way to define SMTP servers either globally or per-library. To test: 1. Apply this patch 2. Find the SMTP servers entry in the admin page 3. Play with adding/removing SMTP servers => SUCCESS: All works as expected 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107604|0 |1 is obsolete| | --- Comment #10 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107605 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107605&action=edit Bug 22343: Add CRUD page for SMTP servers This patch introduces a way to define SMTP servers either globally or per-library. To test: 1. Apply this patch 2. Find the SMTP servers entry in the admin page 3. Play with adding/removing SMTP servers => SUCCESS: All works as expected 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #11 from Tomás Cohen Arazi <tomascohen@gmail.com> --- This is not yet used. I'm working on integrating this configurations so they are used instead of the hardcoded localhost:25 Mail::SendMail uses. I'm almost done! PS tests for the introduced API are missing -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #12 from Tomás Cohen Arazi <tomascohen@gmail.com> --- The plan is to use this: https://metacpan.org/pod/Email::Sender::Transport::SMTP so the conversion should be straight-forward. Email::Sender provides the same ::sendmail method we use, we just need to instantiate the transport object based on the effective library config. Almost there! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |agustinmoyano@theke.io, | |kyle@bywatersolutions.com, | |nick@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Liz Rea <wizzyrea@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wizzyrea@gmail.com --- Comment #13 from Liz Rea <wizzyrea@gmail.com> --- I am 100% for this patch, anything that puts the control in the hands of the libraries and doesn't make linux knowledge a gatekeeping factor in configuring the system is a vast improvement over how it is now. We need this, freedom to the libraries and less-technical users. Liz -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #14 from David Cook <dcook@prosentient.com.au> --- (In reply to Liz Rea from comment #13)
I am 100% for this patch, anything that puts the control in the hands of the libraries and doesn't make linux knowledge a gatekeeping factor in configuring the system is a vast improvement over how it is now.
We need this, freedom to the libraries and less-technical users.
Agreed. Plus, I think it makes it easier to deploy and scale Koha even for technical users when we have this information in the app database rather than having to mess around with third-party MTA apps and what not (or anything else on the file system). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #15 from David Cook <dcook@prosentient.com.au> --- (In reply to David Cook from comment #14)
Plus, I think it makes it easier to deploy and scale Koha even for technical users when we have this information in the app database rather than having to mess around with third-party MTA apps and what not (or anything else on the file system).
Well maybe not easier to initially deploy... but easier to later scale and maintain... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #16 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to David Cook from comment #15)
(In reply to David Cook from comment #14)
Plus, I think it makes it easier to deploy and scale Koha even for technical users when we have this information in the app database rather than having to mess around with third-party MTA apps and what not (or anything else on the file system).
Well maybe not easier to initially deploy... but easier to later scale and maintain...
The idea is to allow configuring it so we don't need an SMTP Server running in localhost. Think of a dockered deployment. Plus, give flexibility to the end users (non tech) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #17 from David Cook <dcook@prosentient.com.au> --- (In reply to Tomás Cohen Arazi from comment #16)
The idea is to allow configuring it so we don't need an SMTP Server running in localhost. Think of a dockered deployment.
That's exactly the scenario I was thinking of heh.
Plus, give flexibility to the end users (non tech)
Very handy -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #18 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Is the use of these configuration options optional? Wondering if existing setups will still keep working on update. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #19 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Katrin Fischer from comment #18)
Is the use of these configuration options optional? Wondering if existing setups will still keep working on update.
If you don't set anything, it defaults to the current localhost:25. It is hardcoded as it is now. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #20 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- So if nothing is set, the MTA settings will be used. Thx! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #21 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Katrin Fischer from comment #20)
So if nothing is set, the MTA settings will be used. Thx!
Technically, we currently use Mail::Sendmail which has a hardcoded value (localhost, port 25, no auth, no SSL, etc). The plan is to be able to set it, and obviously keep the current behaviour by default. I wouldn't dare to change that :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107598|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107599|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107600|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107601|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107602|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107605|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #22 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107987 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107987&action=edit Bug 22343: Add a new table to store SMTP servers configs Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #23 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107988 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107988&action=edit Bug 22343: Add new table schema file Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #24 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107989 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107989&action=edit Bug 22343: DBIx::Class schema updates [DO NOT PUSH] Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #25 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107990 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107990&action=edit Bug 22343: Add classes for handling SMTP servers This patch introduces classes to handle SMTP servers. It is done in a way that a default server can be set, and then per-library ones can be set. All should be done with Koha::SMTP::Servers methods, that take care of overwriting library-specific configs, and handle the defaults retrieval and setting correctly. To test: 1. Apply this patches 2. Run: $ kshell $ perl installer/data/mysql/updatedatabase.pl => SUCCESS: Atomic update is ok, smtp_servers table created 3. Run: k$ prove t/db_dependent/Koha/SMTP/ => SUCCESS: Tests pass! 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #26 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107991 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107991&action=edit Bug 22343: API routes for SMTP servers CRUD -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #27 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107992 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107992&action=edit Bug 22343: Add CRUD page for SMTP servers This patch introduces a way to define SMTP servers either globally or per-library. To test: 1. Apply this patch 2. Find the SMTP servers entry in the admin page 3. Play with adding/removing SMTP servers => SUCCESS: All works as expected 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #28 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107993 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107993&action=edit Bug 22343: Add ->transport method This patch adds a Koha::SMTP::Server->transport method that returns an Email::Sender::Transport::SMTP object generated with the current object's settings. Special case is handled for disabled SSL. This is all covered by the introduced tests. 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Koha/SMTP/Server.t => SUCCESS: Tests pass! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #29 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107994 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107994&action=edit Bug 22343: Revamped Koha::Email class This patch completely rewrites the Koha::Email class, inheriting from Email::Stuffer. The latter suits well the use by Email::Sender, which is to replace Mail::Sendmail on this patchset. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/Koha/Email.t => SUCCESS: Tests pass! 3. Verify all conditional codepaths are covered 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #30 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107995 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107995&action=edit Bug 22343: Make C4::Letters use the new SMTP server config This patch makes the different methods in C4::Letters use: - Koha::SMTP::Servers: to get the effective SMTP server for the library or the fallback default if no library in context. - New Koha::Email->create method for crafting the email envelope for sending. The tests are adapted so they behave the same way, but the trapped (in the mock) $email object has the right type and its attributes are accessed correctly. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Letters.t => SUCCESS: Tests pass. YAY! 3. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #31 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107996 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107996&action=edit Bug 22343: Adapt Koha::Illrequest -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #32 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107997 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107997&action=edit Bug 22343: Adapt controller scripts This patch adapts controller scripts that used sendmail. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #33 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107998 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107998&action=edit Bug 22343: Adapt runreport.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107994|0 |1 is obsolete| | --- Comment #34 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 107999 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107999&action=edit Bug 22343: Revamped Koha::Email class This patch completely rewrites the Koha::Email class, inheriting from Email::Stuffer. The latter suits well the use by Email::Sender, which is to replace Mail::Sendmail on this patchset. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/Koha/Email.t => SUCCESS: Tests pass! 3. Verify all conditional codepaths are covered 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #35 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Ok, this is now complete (i.e. all places that send emails use the new feature). Go test! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dependency --- Comment #36 from Tomás Cohen Arazi <tomascohen@gmail.com> --- You need to install Email::Stuffer: $ sudo apt install libemail-stuffer-perl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #37 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108009 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108009&action=edit Bug 22343: Prevent passing password to the UI Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26188 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26188 [Bug 26188] Allow disabling SMTP configuration in koha-conf.xml -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108009|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107987|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107988|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107989|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107990|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107991|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107992|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107993|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107995|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107996|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107997|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107998|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107999|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #38 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108107 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108107&action=edit Bug 22343: Add a new table to store SMTP servers configs Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #39 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108108 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108108&action=edit Bug 22343: Add new table schema file Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #40 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108109 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108109&action=edit Bug 22343: DBIx::Class schema updates [DO NOT PUSH] Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #41 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108110 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108110&action=edit Bug 22343: Add classes for handling SMTP servers This patch introduces classes to handle SMTP servers. It is done in a way that a default server can be set, and then per-library ones can be set. All should be done with Koha::SMTP::Servers methods, that take care of overwriting library-specific configs, and handle the defaults retrieval and setting correctly. To test: 1. Apply this patches 2. Run: $ kshell $ perl installer/data/mysql/updatedatabase.pl => SUCCESS: Atomic update is ok, smtp_servers table created 3. Run: k$ prove t/db_dependent/Koha/SMTP/ => SUCCESS: Tests pass! 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #42 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108111 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108111&action=edit Bug 22343: API routes for SMTP servers CRUD -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #43 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108112 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108112&action=edit Bug 22343: Add CRUD page for SMTP servers This patch introduces a way to define SMTP servers either globally or per-library. To test: 1. Apply this patch 2. Find the SMTP servers entry in the admin page 3. Play with adding/removing SMTP servers => SUCCESS: All works as expected 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #44 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108113 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108113&action=edit Bug 22343: Add ->transport method This patch adds a Koha::SMTP::Server->transport method that returns an Email::Sender::Transport::SMTP object generated with the current object's settings. Special case is handled for disabled SSL. This is all covered by the introduced tests. 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Koha/SMTP/Server.t => SUCCESS: Tests pass! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #45 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108114 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108114&action=edit Bug 22343: Revamped Koha::Email class This patch completely rewrites the Koha::Email class, inheriting from Email::Stuffer. The latter suits well the use by Email::Sender, which is to replace Mail::Sendmail on this patchset. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/Koha/Email.t => SUCCESS: Tests pass! 3. Verify all conditional codepaths are covered 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #46 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108115 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108115&action=edit Bug 22343: Make C4::Letters use the new SMTP server config This patch makes the different methods in C4::Letters use: - Koha::SMTP::Servers: to get the effective SMTP server for the library or the fallback default if no library in context. - New Koha::Email->create method for crafting the email envelope for sending. The tests are adapted so they behave the same way, but the trapped (in the mock) $email object has the right type and its attributes are accessed correctly. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Letters.t => SUCCESS: Tests pass. YAY! 3. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #47 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108116 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108116&action=edit Bug 22343: Adapt Koha::Illrequest -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #48 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108117 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108117&action=edit Bug 22343: Adapt controller scripts This patch adapts controller scripts that used sendmail. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #49 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108118 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108118&action=edit Bug 22343: Adapt runreport.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #50 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108119 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108119&action=edit Bug 22343: Prevent passing password to the UI Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108107|0 |1 is obsolete| | --- Comment #51 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 108131 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108131&action=edit Bug 22343: Add a new table to store SMTP servers configs Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108108|0 |1 is obsolete| | --- Comment #52 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 108132 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108132&action=edit Bug 22343: Add new table schema file Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108109|0 |1 is obsolete| | --- Comment #53 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 108133 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108133&action=edit Bug 22343: DBIx::Class schema updates [DO NOT PUSH] Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108110|0 |1 is obsolete| | --- Comment #54 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 108134 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108134&action=edit Bug 22343: Add classes for handling SMTP servers This patch introduces classes to handle SMTP servers. It is done in a way that a default server can be set, and then per-library ones can be set. All should be done with Koha::SMTP::Servers methods, that take care of overwriting library-specific configs, and handle the defaults retrieval and setting correctly. To test: 1. Apply this patches 2. Run: $ kshell $ perl installer/data/mysql/updatedatabase.pl => SUCCESS: Atomic update is ok, smtp_servers table created 3. Run: k$ prove t/db_dependent/Koha/SMTP/ => SUCCESS: Tests pass! 4. Sign off :-D Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108111|0 |1 is obsolete| | --- Comment #55 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 108135 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108135&action=edit Bug 22343: API routes for SMTP servers CRUD Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108112|0 |1 is obsolete| | --- Comment #56 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 108136 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108136&action=edit Bug 22343: Add CRUD page for SMTP servers This patch introduces a way to define SMTP servers either globally or per-library. To test: 1. Apply this patch 2. Find the SMTP servers entry in the admin page 3. Play with adding/removing SMTP servers => SUCCESS: All works as expected 4. Sign off :-D Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108113|0 |1 is obsolete| | --- Comment #57 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 108137 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108137&action=edit Bug 22343: Add ->transport method This patch adds a Koha::SMTP::Server->transport method that returns an Email::Sender::Transport::SMTP object generated with the current object's settings. Special case is handled for disabled SSL. This is all covered by the introduced tests. 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Koha/SMTP/Server.t => SUCCESS: Tests pass! Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108114|0 |1 is obsolete| | --- Comment #58 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 108138 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108138&action=edit Bug 22343: Revamped Koha::Email class This patch completely rewrites the Koha::Email class, inheriting from Email::Stuffer. The latter suits well the use by Email::Sender, which is to replace Mail::Sendmail on this patchset. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/Koha/Email.t => SUCCESS: Tests pass! 3. Verify all conditional codepaths are covered 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108115|0 |1 is obsolete| | --- Comment #59 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 108139 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108139&action=edit Bug 22343: Make C4::Letters use the new SMTP server config This patch makes the different methods in C4::Letters use: - Koha::SMTP::Servers: to get the effective SMTP server for the library or the fallback default if no library in context. - New Koha::Email->create method for crafting the email envelope for sending. The tests are adapted so they behave the same way, but the trapped (in the mock) $email object has the right type and its attributes are accessed correctly. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Letters.t => SUCCESS: Tests pass. YAY! 3. Sign off :-D Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108116|0 |1 is obsolete| | --- Comment #60 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 108140 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108140&action=edit Bug 22343: Adapt Koha::Illrequest Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108117|0 |1 is obsolete| | --- Comment #61 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 108141 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108141&action=edit Bug 22343: Adapt controller scripts This patch adapts controller scripts that used sendmail. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108118|0 |1 is obsolete| | --- Comment #62 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 108142 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108142&action=edit Bug 22343: Adapt runreport.pl Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108119|0 |1 is obsolete| | --- Comment #63 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 108143 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108143&action=edit Bug 22343: Prevent passing password to the UI Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |martin.renvoize@ptfs-europe | |.com --- Comment #64 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Code reads well and is a big improvement. Tested various mail triggers with various configurations and all worked as expected. Signing off. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #65 from Father Vlasie <fv@spots.school> --- I just want to say thank you for this much needed feature with especial thanks to Tomás for doing the hard work! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #66 from David Cook <dcook@prosentient.com.au> --- Kudos to Tomas! I'm glad that my comment from last month was able to re-awaken this bug report! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |kyle@bywatersolutions.com |y.org | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #67 from Kyle M Hall <kyle@bywatersolutions.com> --- Seems like a simple failure to fix, but I'm not sure what the fix should be. Is this a difference in response that will crop up from server differences? Or does it fail on your system as well now? root@e9e637b7f066:koha(bug22343-qa)$ prove t/Koha/Email.t t/Koha/Email.t .. 1/2 # Failed test 'Content type set correctly' # at t/Koha/Email.t line 59. # got: 'text/html; charset=utf-8' # expected: 'text/html; charset="utf-8"' # Failed test 'Content type set correctly' # at t/Koha/Email.t line 84. # got: 'text/plain; charset=utf-8' # expected: 'text/plain; charset="utf-8"; format="flowed"' # Looks like you failed 2 tests of 21. t/Koha/Email.t .. 2/2 # Failed test 'create() tests' # at t/Koha/Email.t line 85. # Looks like you failed 1 test of 2. t/Koha/Email.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests Test Summary Report ------------------- t/Koha/Email.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 2 Non-zero exit status: 1 Files=1, Tests=2, 2 wallclock secs ( 0.02 usr 0.01 sys + 1.15 cusr 0.19 csys = 1.37 CPU) Result: FAIL -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #68 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108529 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108529&action=edit Bug 22343: Explicit testing of charset This patch tests content type and charset separatedly. This is done to avoid assuming the underlying library will always return the data structured in the same way, which is not to be guaranteed on the spec. This way the tests don't fail if things are ordered in another way, or if some more attributes are passed in the content type header (respecting the RFC for the format). Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108131|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108132|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108133|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108134|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108135|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108136|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108137|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108138|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108139|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108140|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108141|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108142|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108143|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108529|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #69 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108537 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108537&action=edit Bug 22343: Add a new table to store SMTP servers configs Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #70 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108538 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108538&action=edit Bug 22343: Add new table schema file Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #71 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108539 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108539&action=edit Bug 22343: DBIx::Class schema updates [DO NOT PUSH] Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #72 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108540 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108540&action=edit Bug 22343: Add classes for handling SMTP servers This patch introduces classes to handle SMTP servers. It is done in a way that a default server can be set, and then per-library ones can be set. All should be done with Koha::SMTP::Servers methods, that take care of overwriting library-specific configs, and handle the defaults retrieval and setting correctly. To test: 1. Apply this patches 2. Run: $ kshell $ perl installer/data/mysql/updatedatabase.pl => SUCCESS: Atomic update is ok, smtp_servers table created 3. Run: k$ prove t/db_dependent/Koha/SMTP/ => SUCCESS: Tests pass! 4. Sign off :-D Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #73 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108541 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108541&action=edit Bug 22343: API routes for SMTP servers CRUD Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #74 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108542 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108542&action=edit Bug 22343: Add CRUD page for SMTP servers This patch introduces a way to define SMTP servers either globally or per-library. To test: 1. Apply this patch 2. Find the SMTP servers entry in the admin page 3. Play with adding/removing SMTP servers => SUCCESS: All works as expected 4. Sign off :-D Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #75 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108543 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108543&action=edit Bug 22343: Add ->transport method This patch adds a Koha::SMTP::Server->transport method that returns an Email::Sender::Transport::SMTP object generated with the current object's settings. Special case is handled for disabled SSL. This is all covered by the introduced tests. 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Koha/SMTP/Server.t => SUCCESS: Tests pass! Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #76 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108544 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108544&action=edit Bug 22343: Revamped Koha::Email class This patch completely rewrites the Koha::Email class, inheriting from Email::Stuffer. The latter suits well the use by Email::Sender, which is to replace Mail::Sendmail on this patchset. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/Koha/Email.t => SUCCESS: Tests pass! 3. Verify all conditional codepaths are covered 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #77 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108545 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108545&action=edit Bug 22343: Make C4::Letters use the new SMTP server config This patch makes the different methods in C4::Letters use: - Koha::SMTP::Servers: to get the effective SMTP server for the library or the fallback default if no library in context. - New Koha::Email->create method for crafting the email envelope for sending. The tests are adapted so they behave the same way, but the trapped (in the mock) $email object has the right type and its attributes are accessed correctly. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Letters.t => SUCCESS: Tests pass. YAY! 3. Sign off :-D Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #78 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108546 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108546&action=edit Bug 22343: Adapt Koha::Illrequest Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #79 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108547 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108547&action=edit Bug 22343: Adapt controller scripts This patch adapts controller scripts that used sendmail. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #80 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108548 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108548&action=edit Bug 22343: Adapt runreport.pl Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #81 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108549 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108549&action=edit Bug 22343: Prevent passing password to the UI Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #82 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Kyle M Hall from comment #67)
Seems like a simple failure to fix, but I'm not sure what the fix should be. Is this a difference in response that will crop up from server differences? Or does it fail on your system as well now?
The test relied too much on a specific way the header was built. It actually highlighted bad design because the tests were showing the charset was being set as 'utf8' regardless. So I tweaked it a little bit so it actually sets the charset, following the design on Email::MIME and Email::Stuffer. No place in the codebase is setting it with this rewrite, though. As we return UTF-8 email body. But worth leaving room for passing it, just in case, in the right way. The tests now check iso-8859-1 is being set if requested. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #83 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 108609 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108609&action=edit Bug 22343: (QA follow-up) Do not use input type=number Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #84 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108638 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108638&action=edit Bug 22343: (QA follow-up) Fix unit tests -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108537|0 |1 is obsolete| | Attachment #108538|0 |1 is obsolete| | Attachment #108539|0 |1 is obsolete| | Attachment #108540|0 |1 is obsolete| | Attachment #108541|0 |1 is obsolete| | Attachment #108542|0 |1 is obsolete| | Attachment #108543|0 |1 is obsolete| | Attachment #108544|0 |1 is obsolete| | Attachment #108545|0 |1 is obsolete| | Attachment #108546|0 |1 is obsolete| | Attachment #108547|0 |1 is obsolete| | Attachment #108548|0 |1 is obsolete| | Attachment #108549|0 |1 is obsolete| | Attachment #108609|0 |1 is obsolete| | Attachment #108638|0 |1 is obsolete| | --- Comment #85 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108642 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108642&action=edit Bug 22343: Add a new table to store SMTP servers configs Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #86 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108643 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108643&action=edit Bug 22343: Add new table schema file Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #87 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108644 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108644&action=edit Bug 22343: DBIx::Class schema updates [DO NOT PUSH] Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #88 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108645 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108645&action=edit Bug 22343: Add classes for handling SMTP servers This patch introduces classes to handle SMTP servers. It is done in a way that a default server can be set, and then per-library ones can be set. All should be done with Koha::SMTP::Servers methods, that take care of overwriting library-specific configs, and handle the defaults retrieval and setting correctly. To test: 1. Apply this patches 2. Run: $ kshell $ perl installer/data/mysql/updatedatabase.pl => SUCCESS: Atomic update is ok, smtp_servers table created 3. Run: k$ prove t/db_dependent/Koha/SMTP/ => SUCCESS: Tests pass! 4. Sign off :-D Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #89 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108646 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108646&action=edit Bug 22343: API routes for SMTP servers CRUD Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #90 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108647 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108647&action=edit Bug 22343: Add CRUD page for SMTP servers This patch introduces a way to define SMTP servers either globally or per-library. To test: 1. Apply this patch 2. Find the SMTP servers entry in the admin page 3. Play with adding/removing SMTP servers => SUCCESS: All works as expected 4. Sign off :-D Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #91 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108648 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108648&action=edit Bug 22343: Add ->transport method This patch adds a Koha::SMTP::Server->transport method that returns an Email::Sender::Transport::SMTP object generated with the current object's settings. Special case is handled for disabled SSL. This is all covered by the introduced tests. 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Koha/SMTP/Server.t => SUCCESS: Tests pass! Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #92 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108649 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108649&action=edit Bug 22343: Revamped Koha::Email class This patch completely rewrites the Koha::Email class, inheriting from Email::Stuffer. The latter suits well the use by Email::Sender, which is to replace Mail::Sendmail on this patchset. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/Koha/Email.t => SUCCESS: Tests pass! 3. Verify all conditional codepaths are covered 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #93 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108650 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108650&action=edit Bug 22343: Make C4::Letters use the new SMTP server config This patch makes the different methods in C4::Letters use: - Koha::SMTP::Servers: to get the effective SMTP server for the library or the fallback default if no library in context. - New Koha::Email->create method for crafting the email envelope for sending. The tests are adapted so they behave the same way, but the trapped (in the mock) $email object has the right type and its attributes are accessed correctly. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Letters.t => SUCCESS: Tests pass. YAY! 3. Sign off :-D Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #94 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108651 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108651&action=edit Bug 22343: Adapt Koha::Illrequest Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #95 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108652 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108652&action=edit Bug 22343: Adapt controller scripts This patch adapts controller scripts that used sendmail. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #96 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108653 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108653&action=edit Bug 22343: Adapt runreport.pl Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #97 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108654 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108654&action=edit Bug 22343: Prevent passing password to the UI Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #98 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108655 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108655&action=edit Bug 22343: (QA follow-up) Do not use input type=number Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #99 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 108656 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108656&action=edit Bug 22343: (QA follow-up) Fix unit tests Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #100 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Thanks for your time, and the follow-up, Kyle! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA --- Comment #101 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- 1. If you edit a server without password, there is "****" anyway I tried to fix it, and only display '****' if the password is defined. But then found another bug, you cannot remove the password field once it has been filled already. 2. Escaping/unescaping issues. Fixed in a follow-up patch. 3. Deletion - Why are not you using the DELETE route? Here you are cheating, I don't think we should GET with "op=delete", the parameters stay in the url 4. flagsrequired => { parameters => 1 }, Are you sure it's what we want? Not a dedicated subperm? 5. "SMTP servers Define which SMTP servers to use." is displayed on the admin home page regardless the logged in user has enough permission (click then get "Error: You do not have permission to access this page.") 6. - $params->{from} ||= C4::Context->preference('KohaAdminEmailAddress'); + my $from = $params->{from} // C4::Context->preference('KohaAdminEmailAddress'); Any good reasons? I'd stick with || to catch "" 7. I have tried to cheat and insert twice a default server, on the form edit the dropdown and select value "" (create it) I don't get any errors and see in the log "Cannot add or update a child row: a foreign key constraint fails" for the branch fk I then noticed you used "*" In admin/smtp_servers.pl: 77 catch { 78 if ( blessed $_ and $_->isa('Koha::Exceptions::Object::DuplicateID') ) { else? We are hiding a potential error/exception. We must log it anyway and make the interface display "something wrong happened" 8. Should not we display the "default config" if no default server is defined? 9. And, finally, is this working? I don't think so. kohadev-koha@kohadevbox:/kohadevbox/koha$ perl misc/cronjobs/process_message_queue.pl Use of uninitialized value for string at /usr/share/perl5/Email/MIME/Encode.pm line 66. Undefined subroutine &Email::Sender::Simple::sendmail called at /kohadevbox/koha/C4/Letters.pm line 1386. at /kohadevbox/koha/C4/Letters.pm line 1405. % pmvers Email::Sender::Simple 1.300034 If I replace Email::Sender::Simple::sendmail with sendmail (following the POD of the module), I get: sending email message to patron: 51 at /kohadevbox/koha/C4/Letters.pm line 1007. Use of uninitialized value for string at /usr/share/perl5/Email/MIME/Encode.pm line 66. Don't know how to handle Koha::Email at /usr/share/perl5/Email/Sender/Role/CommonSending.pm line 78. at /kohadevbox/koha/C4/Letters.pm line 1405. Proving tests is not a sufficient test plan. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #102 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 108715 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108715&action=edit Bug 22343: having fun with uri components Test with name=<script>alert("❤");</script> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #103 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 108716 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=108716&action=edit Bug 22343: Trivial code simplification -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |ASSIGNED --- Comment #104 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Jonathan Druart from comment #101)
1. If you edit a server without password, there is "****" anyway I tried to fix it, and only display '****' if the password is defined. But then found another bug, you cannot remove the password field once it has been filled already.
I didn't think about deleting the password, good catch.
2. Escaping/unescaping issues. Fixed in a follow-up patch.
Thanks
3. Deletion - Why are not you using the DELETE route? Here you are cheating, I don't think we should GET with "op=delete", the parameters stay in the url
That's because I based it on branches.pl and didn't want to make this bug dependent on an open discussion on how to use the API. I can anyway make the modal call the DELETE route and refresh the datatable.
4. flagsrequired => { parameters => 1 }, Are you sure it's what we want? Not a dedicated subperm?
That's actually a good idea, I will probably add it here. Kyle suggested something along the same lines. parameters => smtp_servers?
5. "SMTP servers Define which SMTP servers to use." is displayed on the admin home page regardless the logged in user has enough permission (click then get "Error: You do not have permission to access this page.")
Oops.
6. - $params->{from} ||= C4::Context->preference('KohaAdminEmailAddress'); + my $from = $params->{from} // C4::Context->preference('KohaAdminEmailAddress');
Any good reasons? I'd stick with || to catch ""
I'll fix it. My opinion is we should (on a separate bug) use Email::Valid against all passed email addresses. But I'd do it on a separate bug because we need to revisit all controller scripts to verify the exception is caught correctly (you guessed, it is not, and there's no eval/try generally).
7. I have tried to cheat and insert twice a default server, on the form edit the dropdown and select value "" (create it) I don't get any errors and see in the log "Cannot add or update a child row: a foreign key constraint fails" for the branch fk I then noticed you used "*" In admin/smtp_servers.pl: 77 catch { 78 if ( blessed $_ and $_->isa('Koha::Exceptions::Object::DuplicateID') ) {
else? We are hiding a potential error/exception. We must log it anyway and make the interface display "something wrong happened"
I'll see what you're talking about and provide a fix.
8. Should not we display the "default config" if no default server is defined?
Would you display above the datatable? Or just as another row?
9. And, finally, is this working? I don't think so.
kohadev-koha@kohadevbox:/kohadevbox/koha$ perl misc/cronjobs/process_message_queue.pl Use of uninitialized value for string at /usr/share/perl5/Email/MIME/Encode.pm line 66. Undefined subroutine &Email::Sender::Simple::sendmail called at /kohadevbox/koha/C4/Letters.pm line 1386. at /kohadevbox/koha/C4/Letters.pm line 1405.
% pmvers Email::Sender::Simple 1.300034
If I replace Email::Sender::Simple::sendmail with sendmail (following the POD of the module), I get: sending email message to patron: 51 at /kohadevbox/koha/C4/Letters.pm line 1007. Use of uninitialized value for string at /usr/share/perl5/Email/MIME/Encode.pm line 66. Don't know how to handle Koha::Email at /usr/share/perl5/Email/Sender/Role/CommonSending.pm line 78. at /kohadevbox/koha/C4/Letters.pm line 1405.
I'll check this. This is probably due to an unadvertised change I made.
Proving tests is not a sufficient test plan.
-- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #105 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Tomás Cohen Arazi from comment #104)
(In reply to Jonathan Druart from comment #101) That's because I based it on branches.pl and didn't want to make this bug dependent on an open discussion on how to use the API. I can anyway make the modal call the DELETE route and refresh the datatable.
4. flagsrequired => { parameters => 1 }, Are you sure it's what we want? Not a dedicated subperm?
That's actually a good idea, I will probably add it here. Kyle suggested something along the same lines. parameters => smtp_servers?
Yes
8. Should not we display the "default config" if no default server is defined?
Would you display above the datatable? Or just as another row?
Above the table sounds good. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108642|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108643|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108644|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108645|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108646|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108647|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108648|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108649|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108650|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108651|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108652|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108653|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108654|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108655|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108656|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108716|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #108715|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #106 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109003 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109003&action=edit Bug 22343: Add a new table to store SMTP servers configs This patch adds a new table to store SMTP servers configs. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #107 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109004 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109004&action=edit Bug 22343: Add parameters => manage_smtp_servers subpermission This patch introduces a new subpermission for managing SMTP servers, for granularity. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #108 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109005 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109005&action=edit Bug 22343: Add new tables schema file -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #109 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109006 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109006&action=edit Bug 22343: DBIx::Class schema updates [DO NOT PUSH] -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #110 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109007 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109007&action=edit Bug 22343: Add classes for handling SMTP servers This patch introduces classes to handle SMTP servers. It is done in a way that a default server can be set, and then per-library ones can be set. All should be done with Koha::SMTP::Servers methods, that take care of overwriting library-specific configs, and handle the defaults retrieval and setting correctly. To test: 1. Apply this patches 2. Run: $ kshell $ perl installer/data/mysql/updatedatabase.pl => SUCCESS: Atomic update is ok, smtp_servers table created 3. Run: k$ prove t/db_dependent/Koha/SMTP/ => SUCCESS: Tests pass! 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #111 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109008 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109008&action=edit Bug 22343: Add Koha::Library->smtp_server -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #112 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109009 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109009&action=edit Bug 22343: Update cpanfile -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #113 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109010 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109010&action=edit Bug 22343: API routes for SMTP servers CRUD This patch introduces API routes for handling SMTP servers. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #114 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109011 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109011&action=edit Bug 22343: Add CRUD page for SMTP servers This patch introduces a way to define SMTP servers either globally or per-library. To test: 1. Apply this patch 2. Find the SMTP servers entry in the admin page 3. Play with adding/removing SMTP servers => SUCCESS: All works as expected 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #115 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109012 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109012&action=edit Bug 22343: Revamped Koha::Email class This patch completely rewrites the Koha::Email class, inheriting from Email::Stuffer. The latter suits well the use by Email::Sender, which is to replace Mail::Sendmail on this patchset. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/Koha/Email.t => SUCCESS: Tests pass! 3. Verify all conditional codepaths are covered 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #116 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109013 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109013&action=edit Bug 22343: Make C4::Letters use the new SMTP server config This patch makes the different methods in C4::Letters use: - Koha::SMTP::Servers: to get the effective SMTP server for the library or the fallback default if no library in context. - New Koha::Email->create method for crafting the email envelope for sending. The tests are adapted so they behave the same way, but the trapped (in the mock) $email object has the right type and its attributes are accessed correctly. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Letters.t => SUCCESS: Tests pass. YAY! 3. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #117 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109014 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109014&action=edit Bug 22343: Adapt Koha::Illrequest This patch makes Koha::Illrequest use the new syntax for Koha::Email and sending the email. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #118 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109015 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109015&action=edit Bug 22343: Adapt controller scripts This patch adapts controller scripts that used sendmail. Also the syntax for Koha::Email has changed and this patch adapts it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #119 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109016 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109016&action=edit Bug 22343: Adapt runreport.pl This script gets adapted to use the new Koha::Email syntax and SMTP transport. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #120 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109017 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109017&action=edit Bug 22343: Prevent passing password to the UI -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #121 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109018 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109018&action=edit Bug 22343: Allow choosing an SMTP server in branches.pl The missing piece on this patchset is choosing the desired SMTP server for each library. This patch adds the option on editing the library. The default one is picked for existing libraries, and you can pick the one you want. To test: 1. Apply the patchset 2. Run: $ updatedatabase => SUCCESS: Things go smooth 3. Notice the new permission for managing SMTP servers 4. Notice the entry in the admin page 5. Add/have a few SMTP servers defined. 6. Edit a library => SUCCESS: The 'Default' SMTP server is picked 7. Choose any server and save => SUCCESS: Saving doesn't explode 8. Edit the server => SUCCESS: Your selection is kept (this can also be checked on the DB, the library_smtp_server table) 9. Try (7) with many different options => SUCCESS: It works 10. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|kyle@bywatersolutions.com |testopia@bugs.koha-communit | |y.org --- Comment #122 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Ok, I almost started over with this one. I separated the information about SMTP server from the libraries themselves, which are now linked using a separate table. Added an accessor to Koha::Library so we don't need to search for SMTP servers and things got cleaner. Any gentle QA feedback is welcome. This has taken too long already. TODO (separate bugs): - Ability to set a default other than the hardcoded one, in koha-conf.xml - (Maybe, if someone takes the time to ask for it) display information about the libraries that use the server, on the SMTP servers table. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Medium patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26290 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26290 [Bug 26290] Allow setting default SMTP parameters in koha-conf.xml -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #123 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Tomás Cohen Arazi from comment #122) Please provide a full test plan. There is still no reference to testing process_message queue and other ways to send email. Which seems to be the core changes here.
This has taken too long already.
Well, first patchset attached less than 1 month ago, I would not say "too long"... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #124 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Jonathan Druart from comment #123)
(In reply to Tomás Cohen Arazi from comment #122)
This has taken too long already.
Well, first patchset attached less than 1 month ago, I would not say "too long"...
I meant the time I spent on rewriting it all after QA feedback, no mean to complain. Just saying there's room for improvement that can be done by me or someone else on another report. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #125 from Tomás Cohen Arazi <tomascohen@gmail.com> --- The test plan was spread between different commits and some steps were missing. I'll try to sumarize Test plan: 0. Install a new dependency: $ apt install libemail-stuffer-perl 1. Apply this patchset 2. Run: $ updatedatabase 3. Run all the tests: $ kshell k$ git diff origin/master --name-only | grep -e '\.t$' | xargs prove => SUCCESS: All tests pass 4. Add a privileged user, notice there's a 'manage_smtp_servers' subpermission in 'parameters' 5. Play with adding/removing the permission and reloading the admin page => SUCCESS: the admin page displays/doesn't display the entry for SMTP servers management correctly. 6. Enter the SMTP servers page => SUCCESS: the left column displays an entry for the SMTP admin page 7. Have a known working SMTP configuration (I used an app-specific password on my Gmail account), enable debug mode if you want deeper knowledge on what's happening, on the logs 8. Add the SMTP server => SUCCESS: The table displays the server 9. Add/Edit/Remove dummy servers => SUCCESS: Things work as expected 10. Go to the libraries admin page 11. Edit all libraries, choosing the known working SMTP server 12. Try sending a cart or list from the admin interface and the OPAC => SUCCESS: It works! Or otherwise the logs show why it failed, YAY! 13. Generate some notices (fulfilled holds, checkin notices, etc) 14. Run: k$ perl misc/cronjobs/process_message_queue.pl => SUCCESS: Email goes out! 15. Sign off :-D A note about 'runreport.pl'. 'runreport.pl' is THE script that doesn't have an obvious 'library' associated to it. At least not without a change in behaviour. As this patches allow you to set an SMTP server for a library, but keep a hardcoded default that replicates the current behaviour (localhost:25, no auth, no ssl/tls) the only way to test this is by having an SMTP server (postfix?) running locally. Or with bug 26290, by setting the default in koha-conf.xml. On my tests, what I did was putting my SMTP config in Koha/SMTP/Servers.pm in the default hashref. That's another option -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #126 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Why using warnings_exist instead of warning_is in the tests? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109003|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109004|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109005|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109006|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109007|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109008|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109009|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109010|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109011|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109012|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109013|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109014|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109015|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109016|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109017|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109018|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #127 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109155 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109155&action=edit Bug 22343: Add a new table to store SMTP servers configs This patch adds a new table to store SMTP servers configs. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #128 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109156 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109156&action=edit Bug 22343: Add parameters => manage_smtp_servers subpermission This patch introduces a new subpermission for managing SMTP servers, for granularity. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #129 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109157 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109157&action=edit Bug 22343: Add new tables schema file -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #130 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109158 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109158&action=edit Bug 22343: DBIx::Class schema updates [DO NOT PUSH] -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #131 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109159 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109159&action=edit Bug 22343: Add classes for handling SMTP servers This patch introduces classes to handle SMTP servers. It is done in a way that a default server can be set, and then per-library ones can be set. All should be done with Koha::SMTP::Servers methods, that take care of overwriting library-specific configs, and handle the defaults retrieval and setting correctly. To test: 1. Apply this patches 2. Run: $ kshell $ perl installer/data/mysql/updatedatabase.pl => SUCCESS: Atomic update is ok, smtp_servers table created 3. Run: k$ prove t/db_dependent/Koha/SMTP/ => SUCCESS: Tests pass! 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #132 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109160 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109160&action=edit Bug 22343: Add Koha::Library->smtp_server -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #133 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109161 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109161&action=edit Bug 22343: Update cpanfile -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #134 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109162 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109162&action=edit Bug 22343: API routes for SMTP servers CRUD This patch introduces API routes for handling SMTP servers. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #135 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109163 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109163&action=edit Bug 22343: Add CRUD page for SMTP servers This patch introduces a way to define SMTP servers either globally or per-library. To test: 1. Apply this patch 2. Find the SMTP servers entry in the admin page 3. Play with adding/removing SMTP servers => SUCCESS: All works as expected 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #136 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109164 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109164&action=edit Bug 22343: Revamped Koha::Email class This patch completely rewrites the Koha::Email class, inheriting from Email::Stuffer. The latter suits well the use by Email::Sender, which is to replace Mail::Sendmail on this patchset. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/Koha/Email.t => SUCCESS: Tests pass! 3. Verify all conditional codepaths are covered 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #137 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109165 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109165&action=edit Bug 22343: Make C4::Letters use the new SMTP server config This patch makes the different methods in C4::Letters use: - Koha::SMTP::Servers: to get the effective SMTP server for the library or the fallback default if no library in context. - New Koha::Email->create method for crafting the email envelope for sending. The tests are adapted so they behave the same way, but the trapped (in the mock) $email object has the right type and its attributes are accessed correctly. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Letters.t => SUCCESS: Tests pass. YAY! 3. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #138 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109166 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109166&action=edit Bug 22343: Adapt Koha::Illrequest This patch makes Koha::Illrequest use the new syntax for Koha::Email and sending the email. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #139 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109167 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109167&action=edit Bug 22343: Adapt controller scripts This patch adapts controller scripts that used sendmail. Also the syntax for Koha::Email has changed and this patch adapts it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #140 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109168 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109168&action=edit Bug 22343: Adapt runreport.pl This script gets adapted to use the new Koha::Email syntax and SMTP transport. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #141 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109169 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109169&action=edit Bug 22343: Prevent passing password to the UI -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #142 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 109170 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109170&action=edit Bug 22343: Allow choosing an SMTP server in branches.pl The missing piece on this patchset is choosing the desired SMTP server for each library. This patch adds the option on editing the library. The default one is picked for existing libraries, and you can pick the one you want. To test: 1. Apply the patchset 2. Run: $ updatedatabase => SUCCESS: Things go smooth 3. Notice the new permission for managing SMTP servers 4. Notice the entry in the admin page 5. Add/have a few SMTP servers defined. 6. Edit a library => SUCCESS: The 'Default' SMTP server is picked 7. Choose any server and save => SUCCESS: Saving doesn't explode 8. Edit the server => SUCCESS: Your selection is kept (this can also be checked on the DB, the library_smtp_server table) 9. Try (7) with many different options => SUCCESS: It works 10. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #143 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Jonathan Druart from comment #126)
Why using warnings_exist instead of warning_is in the tests?
That's a left over from a previous iteration. Fixed! And thanks for pointing it out -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #144 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Tomás Cohen Arazi from comment #122)
TODO (separate bugs): - Ability to set a default other than the hardcoded one, in koha-conf.xml
Submitted to bug 26290. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109155|0 |1 is obsolete| | Attachment #109156|0 |1 is obsolete| | Attachment #109157|0 |1 is obsolete| | Attachment #109158|0 |1 is obsolete| | Attachment #109159|0 |1 is obsolete| | Attachment #109160|0 |1 is obsolete| | Attachment #109161|0 |1 is obsolete| | Attachment #109162|0 |1 is obsolete| | Attachment #109163|0 |1 is obsolete| | Attachment #109164|0 |1 is obsolete| | Attachment #109165|0 |1 is obsolete| | Attachment #109166|0 |1 is obsolete| | Attachment #109167|0 |1 is obsolete| | Attachment #109168|0 |1 is obsolete| | Attachment #109169|0 |1 is obsolete| | Attachment #109170|0 |1 is obsolete| | --- Comment #145 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109601 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109601&action=edit Bug 22343: Add a new table to store SMTP servers configs This patch adds a new table to store SMTP servers configs. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #146 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109602 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109602&action=edit Bug 22343: Add parameters => manage_smtp_servers subpermission This patch introduces a new subpermission for managing SMTP servers, for granularity. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #147 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109603 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109603&action=edit Bug 22343: Add new tables schema file Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #148 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109604 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109604&action=edit Bug 22343: DBIx::Class schema updates [DO NOT PUSH] Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #149 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109605 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109605&action=edit Bug 22343: Add classes for handling SMTP servers This patch introduces classes to handle SMTP servers. It is done in a way that a default server can be set, and then per-library ones can be set. All should be done with Koha::SMTP::Servers methods, that take care of overwriting library-specific configs, and handle the defaults retrieval and setting correctly. To test: 1. Apply this patches 2. Run: $ kshell $ perl installer/data/mysql/updatedatabase.pl => SUCCESS: Atomic update is ok, smtp_servers table created 3. Run: k$ prove t/db_dependent/Koha/SMTP/ => SUCCESS: Tests pass! 4. Sign off :-D Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #150 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109606 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109606&action=edit Bug 22343: Add Koha::Library->smtp_server Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #151 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109607 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109607&action=edit Bug 22343: Update cpanfile Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #152 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109608 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109608&action=edit Bug 22343: API routes for SMTP servers CRUD This patch introduces API routes for handling SMTP servers. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #153 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109609 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109609&action=edit Bug 22343: Add CRUD page for SMTP servers This patch introduces a way to define SMTP servers either globally or per-library. To test: 1. Apply this patch 2. Find the SMTP servers entry in the admin page 3. Play with adding/removing SMTP servers => SUCCESS: All works as expected 4. Sign off :-D Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #154 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109610 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109610&action=edit Bug 22343: Revamped Koha::Email class This patch completely rewrites the Koha::Email class, inheriting from Email::Stuffer. The latter suits well the use by Email::Sender, which is to replace Mail::Sendmail on this patchset. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/Koha/Email.t => SUCCESS: Tests pass! 3. Verify all conditional codepaths are covered 4. Sign off :-D Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #155 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109611 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109611&action=edit Bug 22343: Make C4::Letters use the new SMTP server config This patch makes the different methods in C4::Letters use: - Koha::SMTP::Servers: to get the effective SMTP server for the library or the fallback default if no library in context. - New Koha::Email->create method for crafting the email envelope for sending. The tests are adapted so they behave the same way, but the trapped (in the mock) $email object has the right type and its attributes are accessed correctly. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Letters.t => SUCCESS: Tests pass. YAY! 3. Sign off :-D Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #156 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109612 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109612&action=edit Bug 22343: Adapt Koha::Illrequest This patch makes Koha::Illrequest use the new syntax for Koha::Email and sending the email. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #157 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109613 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109613&action=edit Bug 22343: Adapt controller scripts This patch adapts controller scripts that used sendmail. Also the syntax for Koha::Email has changed and this patch adapts it. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #158 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109614 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109614&action=edit Bug 22343: Adapt runreport.pl This script gets adapted to use the new Koha::Email syntax and SMTP transport. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #159 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109615 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109615&action=edit Bug 22343: Prevent passing password to the UI Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #160 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 109616 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109616&action=edit Bug 22343: Allow choosing an SMTP server in branches.pl The missing piece on this patchset is choosing the desired SMTP server for each library. This patch adds the option on editing the library. The default one is picked for existing libraries, and you can pick the one you want. To test: 1. Apply the patchset 2. Run: $ updatedatabase => SUCCESS: Things go smooth 3. Notice the new permission for managing SMTP servers 4. Notice the entry in the admin page 5. Add/have a few SMTP servers defined. 6. Edit a library => SUCCESS: The 'Default' SMTP server is picked 7. Choose any server and save => SUCCESS: Saving doesn't explode 8. Edit the server => SUCCESS: Your selection is kept (this can also be checked on the DB, the library_smtp_server table) 9. Try (7) with many different options => SUCCESS: It works 10. Sign off :-D Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109601|0 |1 is obsolete| | --- Comment #161 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109723 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109723&action=edit Bug 22343: Add a new table to store SMTP servers configs This patch adds a new table to store SMTP servers configs. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109602|0 |1 is obsolete| | --- Comment #162 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109724 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109724&action=edit Bug 22343: Add parameters => manage_smtp_servers subpermission This patch introduces a new subpermission for managing SMTP servers, for granularity. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109603|0 |1 is obsolete| | --- Comment #163 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109725 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109725&action=edit Bug 22343: Add new tables schema file Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109604|0 |1 is obsolete| | --- Comment #164 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109726 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109726&action=edit Bug 22343: DBIx::Class schema updates [DO NOT PUSH] Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109605|0 |1 is obsolete| | --- Comment #165 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109727 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109727&action=edit Bug 22343: Add classes for handling SMTP servers This patch introduces classes to handle SMTP servers. It is done in a way that a default server can be set, and then per-library ones can be set. All should be done with Koha::SMTP::Servers methods, that take care of overwriting library-specific configs, and handle the defaults retrieval and setting correctly. To test: 1. Apply this patches 2. Run: $ kshell $ perl installer/data/mysql/updatedatabase.pl => SUCCESS: Atomic update is ok, smtp_servers table created 3. Run: k$ prove t/db_dependent/Koha/SMTP/ => SUCCESS: Tests pass! 4. Sign off :-D Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109606|0 |1 is obsolete| | --- Comment #166 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109728 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109728&action=edit Bug 22343: Add Koha::Library->smtp_server Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109607|0 |1 is obsolete| | --- Comment #167 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109729 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109729&action=edit Bug 22343: Update cpanfile Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109608|0 |1 is obsolete| | --- Comment #168 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109730 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109730&action=edit Bug 22343: API routes for SMTP servers CRUD This patch introduces API routes for handling SMTP servers. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109609|0 |1 is obsolete| | --- Comment #169 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109731 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109731&action=edit Bug 22343: Add CRUD page for SMTP servers This patch introduces a way to define SMTP servers either globally or per-library. To test: 1. Apply this patch 2. Find the SMTP servers entry in the admin page 3. Play with adding/removing SMTP servers => SUCCESS: All works as expected 4. Sign off :-D Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109610|0 |1 is obsolete| | --- Comment #170 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109732 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109732&action=edit Bug 22343: Revamped Koha::Email class This patch completely rewrites the Koha::Email class, inheriting from Email::Stuffer. The latter suits well the use by Email::Sender, which is to replace Mail::Sendmail on this patchset. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/Koha/Email.t => SUCCESS: Tests pass! 3. Verify all conditional codepaths are covered 4. Sign off :-D Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109611|0 |1 is obsolete| | --- Comment #171 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109733 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109733&action=edit Bug 22343: Make C4::Letters use the new SMTP server config This patch makes the different methods in C4::Letters use: - Koha::SMTP::Servers: to get the effective SMTP server for the library or the fallback default if no library in context. - New Koha::Email->create method for crafting the email envelope for sending. The tests are adapted so they behave the same way, but the trapped (in the mock) $email object has the right type and its attributes are accessed correctly. To test: 1. Apply this patch 2. Run: $ kshell k$ prove t/db_dependent/Letters.t => SUCCESS: Tests pass. YAY! 3. Sign off :-D Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109612|0 |1 is obsolete| | --- Comment #172 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109734 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109734&action=edit Bug 22343: Adapt Koha::Illrequest This patch makes Koha::Illrequest use the new syntax for Koha::Email and sending the email. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109613|0 |1 is obsolete| | --- Comment #173 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109735 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109735&action=edit Bug 22343: Adapt controller scripts This patch adapts controller scripts that used sendmail. Also the syntax for Koha::Email has changed and this patch adapts it. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109614|0 |1 is obsolete| | --- Comment #174 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109736 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109736&action=edit Bug 22343: Adapt runreport.pl This script gets adapted to use the new Koha::Email syntax and SMTP transport. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109615|0 |1 is obsolete| | --- Comment #175 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109737 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109737&action=edit Bug 22343: Prevent passing password to the UI Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #109616|0 |1 is obsolete| | --- Comment #176 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109738 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109738&action=edit Bug 22343: Allow choosing an SMTP server in branches.pl The missing piece on this patchset is choosing the desired SMTP server for each library. This patch adds the option on editing the library. The default one is picked for existing libraries, and you can pick the one you want. To test: 1. Apply the patchset 2. Run: $ updatedatabase => SUCCESS: Things go smooth 3. Notice the new permission for managing SMTP servers 4. Notice the entry in the admin page 5. Add/have a few SMTP servers defined. 6. Edit a library => SUCCESS: The 'Default' SMTP server is picked 7. Choose any server and save => SUCCESS: Saving doesn't explode 8. Edit the server => SUCCESS: Your selection is kept (this can also be checked on the DB, the library_smtp_server table) 9. Try (7) with many different options => SUCCESS: It works 10. Sign off :-D Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #177 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109739 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109739&action=edit Bug 22343: (QA follow-up) Ensure FK names don't conflict Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #178 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109740 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109740&action=edit Bug 22343: (QA follow-up) Fix some comments Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #179 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- This code looks great and I'm happy to SO as is (with the couple of very minor followups I've added). I have a few points/questions/suggestions * You introduce a 'debug' mode you can set at the smtp server level.. I like this, but at present I can't see any references to it anywhere.. it would be nice to see it used to enable/disable additional logging in at least one place with this patchset to give it a purpose and example of use. * With the above debug mode, I'd like to see that state somehow highlighted in the smtp-servers page table if it's enabled (so it's obvious to an admin when it's turned on) (bold/italic row perhaps, similar to the 'default' hinting in cash registers) * Final note about the debug mode.. it would be awesome as a later followup to expose a 'Send test mail' action into the smpt servers table to allow the immediate send of a test mail from that server with defaults set for from/replyo etc. * It would be nice to see a list of attached branches as one fo the columns in the smtp servers table. * Should deletes be blocked/warned about if the smtp server is being utilised by any libraries? * The 'delete' was slow for me, which meant I could easily double submit the modal form (we should prevent the double submit) * It would be nice to add the smtp server name as an optional column to display in the libraries table. * Another enhancement for the future would be to support library groups Generally, I really like this and it's a huge improvement. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #180 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Hi! (In reply to Martin Renvoize from comment #179)
This code looks great and I'm happy to SO as is (with the couple of very minor followups I've added).
Thanks for the extensive review!
I have a few points/questions/suggestions
* You introduce a 'debug' mode you can set at the smtp server level.. I like this, but at present I can't see any references to it anywhere.. it would be nice to see it used to enable/disable additional logging in at least one place with this patchset to give it a purpose and example of use.
The debug flag is actually passed to Email::Sender::Transport::SMTP, and enables verbose logging to STDERR, so I expect logs to show in warnings. I tried it with process_message_queue.pl and it will print the whole SMTP authentication handshake and transaction steps including return codes. It is really helpful for debugging authentication issues. I'd say we should add a 'hint' on the edit page.
* With the above debug mode, I'd like to see that state somehow highlighted in the smtp-servers page table if it's enabled (so it's obvious to an admin when it's turned on) (bold/italic row perhaps, similar to the 'default' hinting in cash registers)
Will try to add a follow-up for this.
* Final note about the debug mode.. it would be awesome as a later followup to expose a 'Send test mail' action into the smpt servers table to allow the immediate send of a test mail from that server with defaults set for from/replyo etc.
I love the idea. Would add it to the edit page as it would be handy to have there for tweaking things in-place if something fails. Definitely a separate bug report.
* It would be nice to see a list of attached branches as one fo the columns in the smtp servers table. * Should deletes be blocked/warned about if the smtp server is being utilised by any libraries? * The 'delete' was slow for me, which meant I could easily double submit the modal form (we should prevent the double submit)
* It would be nice to add the smtp server name as an optional column to display in the libraries table.
I'll file a new report for this as it requires some (incremental) tweaking to the libraries route.
* Another enhancement for the future would be to support library groups
Good idea!
Generally, I really like this and it's a huge improvement.
Thanks! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #181 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109787 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109787&action=edit Bug 22343: (follow-up) Highlight debug mode enabled This patch adds a debug class to a row if debug mode is enabled for the smtp server and adds css rules to highlight the row by setting the test to bold, red and italic. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #182 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 109788 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109788&action=edit Bug 22343: (follow-up) Add a hint to the debug form option This patch appends a small note to the debug form field in the edit/add smtp server form to hint that debug mode results in additional output in the logs. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA --- Comment #183 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Seems I forgot to set PQA on this.. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #184 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Found a 500: Apply patches, updatedatabase, nothing else. Send a basket (OPAC): Invalid 'from' parameter: root@localhost at /usr/share/perl5/Exception/Class/Base.pm line 88 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Failed QA --- Comment #185 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Found another one: Replace KohaAdminEmailAddress with root@example.org Send a basket (use '❤' in biblio title and "comment" of the email) Wide character in subroutine entry at /usr/share/perl5/Email/MIME/Encodings.pm line 55 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #186 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 111048 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111048&action=edit Bug 22343: (QA follow-up) Wrap email creation inside the try/catch block At a later development stage, exceptions where added for bad addresses. This wasn't addressed in the controllers. This patch makes the basket and list sending controller scripts move email creation inside the try/catch block to handle those situations. It also UTF-8 encodes the attached marc. On broadly testing this I found that if the TT templates that are used to build the email contains non-latin characters, those get double-encoded. So this patch also removes an explicit encoding that is done, which colides with Email::MIME implicit encoding. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |martin.renvoize@ptfs-europe |y.org |.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26595 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26595 [Bug 26595] Add SMTP server column to libraries table -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #187 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111087 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111087&action=edit Bug 22343: Add warning to the about page if KohaAdminEmailAddress is invalid -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #188 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111088 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111088&action=edit Bug 22343: Correctly handle password on editing -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #189 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- The "Default configuration" section at the top of the SMTP servers admin page contains the hardcoded values in Koha::SMTP::Servers->default_setting. Should not it be the values from the config (and default to hardcoded values unless defined)? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #190 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Jonathan Druart from comment #189)
The "Default configuration" section at the top of the SMTP servers admin page contains the hardcoded values in Koha::SMTP::Servers->default_setting.
Should not it be the values from the config (and default to hardcoded values unless defined)?
That is done on the follow-up bug. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #191 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111089 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111089&action=edit Bug 22343: Display the correct default values on the admin page The "Default configuration" section at the top of the SMTP servers admin page contains the hardcoded values in Koha::SMTP::Servers->default_setting. It should be the values from the config (and default to hardcoded values unless defined) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #192 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111090 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111090&action=edit Bug 22343: Add the 'required' class when needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #193 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- 232 <th data-class-name="actions">Actions</th> Where is this data-class-name coming from? How it is useful? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #194 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Jonathan Druart from comment #193)
232 <th data-class-name="actions">Actions</th>
Where is this data-class-name coming from? How it is useful?
https://datatables.net/manual/options#HTML-5-data-attributes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #195 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Tomás Cohen Arazi from comment #190)
(In reply to Jonathan Druart from comment #189)
The "Default configuration" section at the top of the SMTP servers admin page contains the hardcoded values in Koha::SMTP::Servers->default_setting.
Should not it be the values from the config (and default to hardcoded values unless defined)?
That is done on the follow-up bug.
Yes, the question (and my follow-up) is for bug 26290. I am reviewing them together. (In reply to Tomás Cohen Arazi from comment #194)
(In reply to Jonathan Druart from comment #193)
232 <th data-class-name="actions">Actions</th>
Where is this data-class-name coming from? How it is useful?
https://datatables.net/manual/options#HTML-5-data-attributes
Yes but how is it useful? Is it just a matter of having a class on the "Actions" column or is there a CSS or any related code using it? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #196 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Jonathan Druart from comment #191)
Created attachment 111089 [details] [review] Bug 22343: Display the correct default values on the admin page
The "Default configuration" section at the top of the SMTP servers admin page contains the hardcoded values in Koha::SMTP::Servers->default_setting.
It should be the values from the config (and default to hardcoded values unless defined)
Moved to bug 26290. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111089|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #197 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- There is an encoding issue with runreport.pl, can you double check please? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #198 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111154 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111154&action=edit Bug 22343: Fix runreport encoding issues -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to master Version(s)| |20.11.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #199 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Pushed to master for 20.11, thanks to everybody involved! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|dependency |additional_work_needed --- Comment #200 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- t/db_dependent/Passwordrecovery.t is failing, please fix ASAP -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #201 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111165 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111165&action=edit Bug 22343: Compiled CSS -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #202 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111166 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111166&action=edit Bug 22343: Add exec flag on .t files -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #203 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Jonathan Druart from comment #200)
t/db_dependent/Passwordrecovery.t is failing, please fix ASAP
I have a fix for the tests. But I will take some more time to check we are not hiding a broader problem by fixing them. There is a behaviour change if things fail because branchemail and branchreplyto are not set. I will file a separate bug for it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #204 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 111175 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111175&action=edit Bug 22343: (follow-up) Make sure no invalid address is used in tests Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #205 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 111176 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111176&action=edit Bug 22343: (follow-up) Remove traces of Mail::Sendmail Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111166|0 |1 is obsolete| | --- Comment #206 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111213 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111213&action=edit Bug 22343: Add exec flag on .t files -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #207 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111215 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111215&action=edit Bug 22343: (follow-up) Remove traces of Mail::Sendmail - update POD -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #208 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111216 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111216&action=edit Bug 22343: Remove traces of libmail-sendmail-perl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #209 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Last patches pushed to master! ab2760e7e4 Bug 22343: Remove traces of libmail-sendmail-perl a3a2c4cfff Bug 22343: (follow-up) Remove traces of Mail::Sendmail - update POD 704a053791 Bug 22343: (follow-up) Remove traces of Mail::Sendmail 04f2ecb56c Bug 22343: (follow-up) Make sure no invalid address is used in tests c54da79431 Bug 22343: Add exec flag on .t files b9a63feb73 Bug 22343: Compiled CSS -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|additional_work_needed | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #210 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Jonathan Druart from comment #188)
Created attachment 111088 [details] [review] Bug 22343: Correctly handle password on editing
My idea was to entirely not pass the password to the template, and only write it on change. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #211 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Tomás Cohen Arazi from comment #210)
(In reply to Jonathan Druart from comment #188)
Created attachment 111088 [details] [review] [review] Bug 22343: Correctly handle password on editing
My idea was to entirely not pass the password to the template, and only write it on change.
Ho right. So maybe we should pass a "password_set" boolean instead? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #212 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Jonathan Druart from comment #211)
(In reply to Tomás Cohen Arazi from comment #210)
(In reply to Jonathan Druart from comment #188)
Created attachment 111088 [details] [review] [review] [review] Bug 22343: Correctly handle password on editing
My idea was to entirely not pass the password to the template, and only write it on change.
Ho right. So maybe we should pass a "password_set" boolean instead?
Well, it will be the same. We pass it to the template but we don't display it actually ("****" is displayed). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Add SMTP configuration |Allow configuring SMTP |options to Administration |servers Text to go in the| |This patchset adds the release notes| |ability to set SMTP servers | |and then pick them for | |using on each library when | |sending notices, cart, etc. | | | |SSL/TLS authentication is | |supported. | | | |A new | |administration page is | |added for managing the | |servers. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Allow configuring SMTP |Add configuration options |servers |for SMTP servers -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #213 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Koha_Master_U16 is failing with: 14:49:23 koha_1 | # Looks like you planned 4 tests but ran 2. 14:49:23 koha_1 | 14:49:23 koha_1 | # Failed test 'transport() tests' 14:49:23 koha_1 | # at t/db_dependent/Koha/SMTP/Server.t line 57. 14:49:23 koha_1 | isa check for "ssl" failed: ssl is not a Boolean! at (eval 1410) line 315. 14:49:23 koha_1 | eval {...} called at (eval 1410) line 313 14:49:23 koha_1 | Email::Sender::Transport::SMTP::new("Email::Sender::Transport::SMTP", HASH(0xa0e7dd0)) called at /kohadevbox/koha/Koha/SMTP/Server.pm line 68 14:49:23 koha_1 | Koha::SMTP::Server::transport(Koha::SMTP::Server=HASH(0xa0941b0)) called at t/db_dependent/Koha/SMTP/Server.t line 51 14:49:23 koha_1 | main::__ANON__() called at /usr/share/perl5/Test/Builder.pm line 310 14:49:23 koha_1 | eval {...} called at /usr/share/perl5/Test/Builder.pm line 310 14:49:23 koha_1 | Test::Builder::subtest(Test::Builder=HASH(0x1176660), "transport() tests", CODE(0xfca908)) called at /usr/share/perl5/Test/More.pm line 807 14:49:23 koha_1 | Test::More::subtest("transport() tests", CODE(0xfca908)) called at t/db_dependent/Koha/SMTP/Server.t line 57 14:49:23 koha_1 | # Looks like your test exited with 255 just after 1. 14:49:23 koha_1 | [12:49:23] t/db_dependent/Koha/SMTP/Server.t Maybe a version of the lib? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #214 from Mason James <mtj@kohaaloha.com> --- Created attachment 111442 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111442&action=edit Bug 22343: Add configuration options for SMTP servers fix SSL tests for u16, using older Email-Sender-1.300021 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #215 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Mason James from comment #214)
Created attachment 111442 [details] [review] Bug 22343: Add configuration options for SMTP servers
fix SSL tests for u16, using older Email-Sender-1.300021
We should note on the release notes that STARTTLS is not supported on Ubuntu 16. Just in case -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111442|0 |1 is obsolete| | --- Comment #216 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111482 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111482&action=edit Bug 22343: Make the tests pass on U16 fix SSL tests for u16, using older Email-Sender-1.300021 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #217 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Jonathan Druart from comment #216)
Created attachment 111482 [details] [review] Bug 22343: Make the tests pass on U16
fix SSL tests for u16, using older Email-Sender-1.300021
Pushed to master. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|This patchset adds the |This patchset adds the release notes|ability to set SMTP servers |ability to set SMTP servers |and then pick them for |and then pick them for |using on each library when |using on each library when |sending notices, cart, etc. |sending notices, cart, etc. | | |SSL/TLS authentication is |SSL/TLS authentication is |supported. |supported, however | |ssl_mode=starttls is not |A new |supported under Ubuntu 16. |administration page is | |added for managing the |A new administration page |servers. |is added for managing the | |servers. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|This patchset adds the |This patchset adds the release notes|ability to set SMTP servers |ability to set SMTP servers |and then pick them for |and then pick them for |using on each library when |using on each library when |sending notices, cart, etc. |sending notices, cart, etc. | | |SSL/TLS authentication is |SSL/TLS authentication is |supported, however |supported [*] |ssl_mode=starttls is not | |supported under Ubuntu 16. |A new | |administration page is |A new administration page |added for managing the |is added for managing the |servers. |servers. | | | | |[*] | |ssl_mode=starttls is not | |supported under Ubuntu 16 | |due to old library | |versions. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com --- Comment #218 from Lucas Gass <lucas@bywatersolutions.com> --- new feature will not be backported to 20.05.x -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Architecture, internals, |System Administration |and plumbing | CC| |gmcharlt@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26922 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26922 [Bug 26922] SendAlerts does not correctly handle error on sending emails -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Joonas Kylmälä <joonas.kylmala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joonas.kylmala@helsinki.fi --- Comment #219 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- This seems to cause incorrect double encoding in HOLD slip / pickup notifications. Working on a fix. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Andrew Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nugged@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #220 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- Created attachment 113240 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113240&action=edit Bug 22343: (QA follow-up) Remove double encoding from sent emails The sent emails from Koha were garbled / double encoded because Koha::Email now after the refactoring and moving to use Email::Stuffer handles the encoding itself. Previously the Koha::Email callee had to handle the encoding. This patch removes the double encoding in the email subject and content. To test: 1) Put some UTF-8 characters like ä in the HOLD template subject and body 2) Create hold and check-in an item to make it Waiting and cause the email to be send 3) Notice the email comes garbled / double encoded 4) Apply patch 5) Repeat step 2) and notice the email comes without any issues in encoding and look OK. 6) Make sure "prove t/Koha/Email.t" and "prove t/db_dependent/Letters.t" and passes Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #221 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Joonas Kylmälä from comment #219)
This seems to cause incorrect double encoding in HOLD slip / pickup notifications. Working on a fix.
Did you try with other notifications? When I pushed this I tested some of them and it was working correctly. Maybe your patch will break other than HOLD. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #222 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- (In reply to Jonathan Druart from comment #221)
(In reply to Joonas Kylmälä from comment #219)
This seems to cause incorrect double encoding in HOLD slip / pickup notifications. Working on a fix.
Did you try with other notifications? When I pushed this I tested some of them and it was working correctly.
Maybe your patch will break other than HOLD.
We tested ODUE and MEMBERSHIP_EXPIRY templates and this fixed those as well. If you think more unit tests are needed for this could you please provide them, I'm unable to find the time right now to investigate what sort of tests are available for _send_message_by_email() and what changes would be needed there. If no one else steps in I could do it in few weeks time but I feel like this is important to get to the master version as soon as possible in case someone is using master branch in production :D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #223 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Joonas Kylmälä from comment #222)
(In reply to Jonathan Druart from comment #221)
(In reply to Joonas Kylmälä from comment #219)
This seems to cause incorrect double encoding in HOLD slip / pickup notifications. Working on a fix.
Did you try with other notifications? When I pushed this I tested some of them and it was working correctly.
Maybe your patch will break other than HOLD.
We tested ODUE and MEMBERSHIP_EXPIRY templates and this fixed those as well.
If you think more unit tests are needed for this could you please provide them, I'm unable to find the time right now to investigate what sort of tests are available for _send_message_by_email() and what changes would be needed there. If no one else steps in I could do it in few weeks time but I feel like this is important to get to the master version as soon as possible in case someone is using master branch in production :D
Hi, can we open a separate bug for this, as it is pushed already? Most tests are on t/db_dependent/Letters.t. If it is a specific kind of message, then we could check on the caller's end. For references on how encoding is handled, refer to the Email::Stuffer and Email::MIME docs. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Joonas Kylmälä <joonas.kylmala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26948 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26948 [Bug 26948] Some Koha Emails are double encoded (HOLD, ODUE, ...) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #224 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- (In reply to Tomás Cohen Arazi from comment #223)
Hi, can we open a separate bug for this, as it is pushed already? Most tests are on t/db_dependent/Letters.t.
If it is a specific kind of message, then we could check on the caller's end. For references on how encoding is handled, refer to the Email::Stuffer and Email::MIME docs.
Ok, I opened bug 26948 and also attached my patch there, will obsolete it from here. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Joonas Kylmälä <joonas.kylmala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113240|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #225 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 113827 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113827&action=edit Bug 22343: (follow-up) Correctly handle password on editing -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |additional_work_needed --- Comment #226 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Jonathan Druart from comment #225)
Created attachment 113827 [details] [review] Bug 22343: (follow-up) Correctly handle password on editing
Tomas, can you sign this one off please? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27060 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27060 [Bug 27060] Allow undoing changes to the password on SMTP config -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113827|0 |1 is obsolete| | --- Comment #227 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Created attachment 113847 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113847&action=edit Bug 22343: (follow-up) Correctly handle password on editing Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #228 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Jonathan Druart from comment #226)
(In reply to Jonathan Druart from comment #225)
Created attachment 113827 [details] [review] [review] Bug 22343: (follow-up) Correctly handle password on editing
Tomas, can you sign this one off please?
Done! I've also proposed something else on bug 27060 for consideration. But it contains string changes so can wait. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #229 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Tomás Cohen Arazi from comment #227)
Created attachment 113847 [details] [review] Bug 22343: (follow-up) Correctly handle password on editing
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Pushed to master for 20.11. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|additional_work_needed | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew@bywatersolutions.com --- Comment #230 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- New feature not backported to 20.05 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|Pushed to master |RESOLVED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27250 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27250 [Bug 27250] DELETE calls are stacked on the SMTP servers admin page -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27356 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27356 [Bug 27356] Don't hide the SMTP servers table when last displayed is deleted -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27424 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27424 [Bug 27424] One should be able to assign an SMTP server as the default -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Andrew Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|nugged@gmail.com | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #231 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- *** Bug 22838 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |28017 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28017 [Bug 28017] Allow non-FQDN and IP addresses in emails -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |28023 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28023 [Bug 28023] Typo in Reply-To header -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26705 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26705 [Bug 26705] System preference NoticeBcc not working -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Didier Gautheron <didier.gautheron@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |28996 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28996 [Bug 28996] SendQueuedMessages exit on a bad email 'To' and following messages are never processed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=12802 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #232 from David Cook <dcook@prosentient.com.au> --- Looks like this change has introduced a regression where we aren't passing the content type to Koha::Email, which means we can't send emails with attachments anymore (multi-part/mixed emails). @@ -1314,29 +1329,66 @@ sub _send_message_by_email { ? ( bcc => C4::Context->preference('NoticeBcc') ) : () ), - from => $message->{'from_address'} || $branch_email, - replyto => $message->{'reply_address'} || $branch_replyto, - sender => $branch_returnpath, - subject => $subject, - message => $is_html ? _wrap_html( $content, $subject ) : $content, - contenttype => $content_type + from => $message->{'from_address'} || $branch_email, + reply_to => $message->{'reply_address'} || $branch_replyto, + sender => $branch_returnpath, + subject => "" . $message->{subject} -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29330 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29330 [Bug 29330] Koha cannot send emails with attachments -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #233 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- This Koha::Email revamp was pushed a bit too early, i am afraid. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #234 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- How did we handle bcc previously btw? Email::Simple cant or wont handle bcc, so we are just moving them to recipients now.. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #235 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Marcel de Rooy from comment #234)
How did we handle bcc previously btw? Email::Simple cant or wont handle bcc, so we are just moving them to recipients now..
There was bug 26705 about BCC after this was pushed. Maybe the discussion there helps. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |28729, 29365 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28729 [Bug 28729] Return-path header not set in emails https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29365 [Bug 29365] Koha::Email issues -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #236 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Marcel de Rooy from comment #233)
This Koha::Email revamp was pushed a bit too early, i am afraid.
This really was an understatement. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29427 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29427 [Bug 29427] Debug mode not honoured in SMTP transport -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29501 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29501 [Bug 29501] gather_print_notices.pl does not use SMTP servers -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 --- Comment #237 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- + value => { flags => 3**2 } # parameters flag = 3 It must be 2**3 instead. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |31946 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31946 [Bug 31946] Wrong permission bit in tests -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org