[jboss-jira] [JBoss JIRA] (WFLY-8525) Add capabilities to mail subsystem
Tomaz Cerar (JIRA)
issues at jboss.org
Thu Apr 6 11:03:00 EDT 2017
[ https://issues.jboss.org/browse/WFLY-8525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomaz Cerar moved JBEAP-10184 to WFLY-8525:
-------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-8525 (was: JBEAP-10184)
Issue Type: Task (was: Bug)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Mail
(was: Mail)
Affects Version/s: (was: 7.1.0.DR8)
> Add capabilities to mail subsystem
> ----------------------------------
>
> Key: WFLY-8525
> URL: https://issues.jboss.org/browse/WFLY-8525
> Project: WildFly
> Issue Type: Task
> Components: Mail
> Reporter: Tomaz Cerar
> Assignee: Tomaz Cerar
> Priority: Minor
>
> When I try to create imap server in mail subsystem, I can provide nonexistent reference to {{outbound-socket-binding-ref}}:
> {code}
> [standalone at localhost:9990 /] /subsystem=mail/mail-session=default/server=imap:add(outbound-socket-binding-ref=nonexistent)
> {
> "outcome" => "success",
> "response-headers" => {
> "operation-requires-reload" => true,
> "process-state" => "reload-required"
> }
> }
> {code}
> operation is successful and requires reload of server configuration. During configuration reload server complains that 'nonexistent' binding does not exist:
> {code}
> 12:30:42,824 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
> ("subsystem" => "mail"),
> ("mail-session" => "default")
> ]) - failure description: {
> "WFLYCTL0412: Required services that are not installed:" => ["jboss.outbound-socket-binding.nonexistent"],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.mail-session.default is missing [jboss.outbound-socket-binding.nonexistent]"]
> }
> {code}
> When I try similar action e.g. in Undertow subsystem, I get error rightaway during the add operation:
> {code}
> [standalone at localhost:9990 /] /subsystem=undertow/server=default-server/http-listener=moje:add(socket-binding=nonexistent)
> {
> "outcome" => "failed",
> "failure-description" => "WFLYCTL0369: Required capabilities are not available:
> org.wildfly.network.socket-binding.nonexistent; There are no known registration points which can provide this capability.",
> "rolled-back" => true
> }
> {code}
> I like Undertow's approach much more as user is directly warned that particular reference is not available. It would be nice if the same approach could be used also in mail subsystem. This applies on all three mail server types {{imap}}, {{pop3}} and {{smtp}} during both {{add}} operation and also {{write-attribute}} operation.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list