Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-649

Removing non existent mail server with standard name (via CLI) doesn't fail even though it should

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.0.0.DR13 (Alpha)
    • 7.0.0.DR8, 7.0.0.DR9, 7.0.0.DR10, 7.0.0.DR11
    • Mail
    • None

      Removing non-existent mail server (which is named smtp or pop3 or imap) via CLI operation doesn't fail even though it should.

      /subsystem=mail/mail-session=java\:jboss\/mail\/test1439373303651:add(jndi-name=java\:jboss\/mail\/test1439373303651)
      {"outcome" => "success"}
      
       /subsystem=mail/mail-session=java\:jboss\/mail\/test1439373303651:read-children-names(child-type=server)
      {
          "outcome" => "success",
          "result" => []
      }
      [standalone@localhost:9990 /] /subsystem=mail/mail-session=java\:jboss\/mail\/test1439373303651/server=smtp:remove
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      

      Note: trying to remove non-existent server named e.g. xxx correctly fails see

      /subsystem=mail/mail-session=java\:jboss\/mail\/test1439373303651/server=xxx:remove
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0030: No resource definition is registered for address [
          (\"subsystem\" => \"mail\"),
          (\"mail-session\" => \"java:jboss/mail/test1439373303651\"),
          (\"server\" => \"xxx\")
      ]",
          "rolled-back" => true,
          "response-headers" => {"process-state" => "reload-required"}
      }
      

              tomazcerar Tomaž Cerar (Inactive)
              rhatlapa@redhat.com Radim Hatlapatka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: