Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1917

Can't modify default swarm mail attribute through project-defaults.yml

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2018.3.3
    • Fix Version/s: 2018.5.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      3
    • Steps to Reproduce:
      Hide

      Using attached Maven project defaultmail.zip , extract in some directory, then after cd-ing it, execute:

      mvn clean package
      

      then, start uberjar by doing:

      java -jar target/defaultmail-0.0.1-SNAPSHOT-swarm.jar
      
      Show
      Using attached Maven project defaultmail.zip , extract in some directory, then after cd-ing it, execute: mvn clean package then, start uberjar by doing: java -jar target/defaultmail-0.0.1-SNAPSHOT-swarm.jar

      Description

      Fractions can be configured through a project-defaults.yml file.

      In case of Java mail, it can be configured using swarm.mail.* attributes, as stated in Swarm documentation (http://docs.wildfly-swarm.io/2018.4.0-SNAPSHOT/#_mail).

      An example of project-defaults.yml can be this:

      swarm:
        mail:
          mail-sessions:
            default:
              from:
                 swarm-test-suite@test.com
      

      but when deploying the sample application (attached) it fails as it tries to create another mail-session, instead of modifying the one already exists:

      018-03-28 14:18:21,739 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 3) WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "mail"),
          ("mail-session" => "default")
      ]) - failure description: "WFLYCTL0212: Duplicate resource [
          (\"subsystem\" => \"mail\"),
          (\"mail-session\" => \"default\")
      ]"
      

      It should be possible to modify any of the default mail-session attributes.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mkouba Martin Kouba
                Reporter:
                juagonza Juan Gonzalez
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: