chibenwa commented on code in PR #1505:
URL: https://github.com/apache/james-project/pull/1505#discussion_r1153995043
##########
mailbox/store/src/main/java/org/apache/james/mailbox/store/StoreRightManager.java:
##########
@@ -169,19 +169,23 @@ public MailboxACL listRights(MailboxId mailboxId,
MailboxSession session) throws
}
@Override
- public void applyRightsCommand(MailboxPath mailboxPath, ACLCommand
mailboxACLCommand, MailboxSession session) throws MailboxException {
+ public void applyRightsCommand(MailboxPath mailboxPath, ACLCommand
mailboxACLCommand, MailboxSession session) {
applyRightsCommandReactive(mailboxPath, mailboxACLCommand, session)
.block();
}
@Override
public Mono<Void> applyRightsCommandReactive(MailboxPath mailboxPath,
ACLCommand mailboxACLCommand, MailboxSession session) {
return Mono.just(mailboxSessionMapperFactory.getMailboxMapper(session))
- .doOnNext(Throwing.consumer(mapper ->
assertSharesBelongsToUserDomain(mailboxPath.getUser(), mailboxACLCommand)))
+ .doOnNext(Throwing.consumer(mapper ->
assertSharesBelongsToUserDomain(mailboxPath.getUser(),
mailboxACLCommand)).sneakyThrow())
.flatMap(mapper -> mapper.findMailboxByPath(mailboxPath)
- .doOnNext(Throwing.consumer(mailbox ->
assertHaveAccessTo(mailbox, session)))
+ .doOnNext(Throwing.<Mailbox>consumer(mailbox ->
assertHaveAccessTo(mailbox, session)).sneakyThrow())
.flatMap(mailbox -> mapper.updateACL(mailbox,
mailboxACLCommand)
- .flatMap(aclDiff -> dispatchACLUpdateEvent(session,
mailbox, aclDiff))));
+ .flatMap(aclDiff -> dispatchACLUpdateEvent(session,
mailbox, aclDiff))))
+ .onErrorResume(e -> {
+ System.out.println(e);
Review Comment:
Oups
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]