[Bug 28275] New: Cart in OPAC doesn't sent mails if surname or firstname contains diacritics
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28275 Bug ID: 28275 Summary: Cart in OPAC doesn't sent mails if surname or firstname contains diacritics Change sponsored?: --- Product: Koha Version: 20.11 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: verolencinas@yahoo.com.ar QA Contact: testopia@bugs.koha-community.org If surname or firstname have diacritics, users can't send their carts in the OPAC. Test: 1) Create a user with diacritics in surname or firstname 2) Log in the OPAC with this user 3) Send records through the cart. You get an error in the cart and in the opac-error.log this error message: opac-sendbasket.pl: Error sending mail: Invalid 'reply_to' parameter: ... at /usr/share/koha/opac/cgi-bin/opac/opac-sendbasket.pl line 174 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28275 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|20.11 |master Assignee|oleonard@myacpl.org |koha-bugs@lists.koha-commun | |ity.org --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Confirmed in master. -- 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=28275 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28275 Filippos Kolovos <f.kolovos@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |f.kolovos@gmail.com --- Comment #2 from Filippos Kolovos <f.kolovos@gmail.com> --- Hello, Upon further investigation, the problem does not seem to be solely with the diacritics in the user's name, but with ANY character other than the ones forming an email address in the user's email. The purpose is to form a combination of the user's fullname and the email, in the form John Doe <john.doe@test.com>, but it does not pass the Email::Valid->addresses() method in Koha::Email, throwing a BadParameter exception in line 112. I guess that this method is very strict in validating the email address format One quick workaround would be to change the line 62 in /usr/share/koha/opac/cgi-bin/opac/opac-sendbasket.pl from my $email_replyto = $patron->firstname . " " . $patron->surname . " <$user_email>"; to my $email_replyto = $user_email; It was checked and it works. Further work could include to first validate the email address and afterwards to include the user's firstname and lastname along with the "<",">" characters around the email. -- 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=28275 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- This is a duplicate to bug 28870 that was fixed in: 21.11.00,21.05.05,20.11.12 *** This bug has been marked as a duplicate of bug 28870 *** -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org