Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3679

E-Mail Configuration not valid if mail.server.username is not specified

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Not Required

      Description

      If an SMTP server doesn't require authentication and the mail.server.username configuration option in dspace.cfg is not changed  (https://github.com/DSpace/DSpace/blob/eb4d56201a6e398dc23c91e6e1fd1ab87de58054/dspace/config/dspace.cfg#L122) The EmailServiceImpl sets mail.smtp.auth to true (https://github.com/DSpace/DSpace/blob/258b4f00e99361f68e3acf52de66e2dae90de251/dspace-services/src/main/java/org/dspace/services/email/EmailServiceImpl.java#L114)

      The behaviour changed from previous versions of DSpace where cfg.getProperty("mail.server.username") would return null for the default dspace.cfg.

      I am not sure if there are other places in DSpace where this behaviour change might cause problems

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            christian.scheible Christian Scheible
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: