Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39229

The subject field in emails could have strange characters

    XMLWordPrintable

    Details

    • Previous Issue Keys:
      KNL-1282

      Description

      The fail is in the class BasicEmailService that is used in many sakai tools. I could reproduce it in SignUp and Assessments but I think It will be more tools affected.
      The method sendMailMessagingException is using a constructor for MyMessage that doesn't encode headers like Subject. This produces sending emails with strange characters in the subject field.
      Nevertheless, the method sendToUsers hasn't this problem.

      To reproduce (in assessments):

      • Create an assessment and named it "Notificación" (the o is accented)
      • Publish it and select "and send notification below to students"
      • Check your email.
      • You have received an email whose subject is: [TEST] "NoticaciXn" is available immediately
        (The X in NotificaciXn is a strange character)

      To reproduce (in SignUp):

      • Change the local to spanish language (or other like french)
      • Add a new meeting
      • Fill in the fields (it doesn't matter what you put in) and click SIGUIENTE (NEXT)
      • In Coordinadores de reunión (Meeting coordinators) check on you
      • In Disponibilidad de anunciar(Announce Availability) check "Sí, enviar correo..." ("Yes, send and email ...") and then click "Sólo los coordinadores de sesión seleccionados" ("Selected meeting coordinators")
      • Publicar (Publish) the meeting
      • Check your email.
      • You have received an email whose subject is: Nueva reuniXn anunciada por ...
        (The X in NotificaciXn is a strange character)

        Gliffy Diagrams

          Zeplin

            Attachments

            1. add_meeting.png
              add_meeting.png
              94 kB
            2. email.png
              email.png
              37 kB
            3. KNL-1282.diff.txt
              0.7 kB
            4. publish_assessment.png
              publish_assessment.png
              55 kB

              Activity

                People

                • Assignee:
                  k1team KERNEL TEAM (Inactive)
                  Reporter:
                  anueda Angel Nueda Lozano
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Integration