Skip to content

James 4150 #2919

Merged
chibenwa merged 4 commits intoapache:masterfrom
omerfarukicen:JAMES-4150-fixmaster
Jan 29, 2026
Merged

James 4150 #2919
chibenwa merged 4 commits intoapache:masterfrom
omerfarukicen:JAMES-4150-fixmaster

Conversation

@omerfarukicen
Copy link
Contributor

JAMES-4150 Make Attachment Storage Optional for PostgreSQL Message Store #2885

This PR includes the changes that were previously implemented in the Postgres branch and have now been merged into the master branch.

Copy link
Contributor

@chibenwa chibenwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for hanging on.

I suspect a minor rebase issue. Feel free to disregard the comment regarding indent (it's a nitpick).

Comment on lines 109 to 119
new PostgresMessageDAO(executorFactory.create(session.getUser().getDomainPart()), blobIdFactory),
new PostgresMailboxMessageDAO(executorFactory.create(session.getUser().getDomainPart())),
getModSeqProvider(session),
getAttachmentMapper(session),
blobStore,
blobIdFactory,
clock);
new PostgresMessageDAO(executorFactory.create(session.getUser().getDomainPart()), blobIdFactory),
new PostgresMailboxMessageDAO(executorFactory.create(session.getUser().getDomainPart())),
getModSeqProvider(session),
getAttachmentMapper(session),
blobStore,
blobIdFactory,
clock);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff is full of reindents that makes it harder to read and harder to find what really changed.

Copy link
Contributor Author

@omerfarukicen omerfarukicen Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback.
I fixed the issue and reverted the unintended re-indentation to keep the diff minimal and focused on the actual change.

this.mailbox = mailbox;
}


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are missing the critical changes of mailbox/postgres/src/main/java/org/apache/james/mailbox/postgres/PostgresMessageManager.java where we actually chose which messageStorer we want: I suspect a rebase issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes Rebase problem .

Copy link
Contributor

@Arsnael Arsnael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks fior the contribution @omerfarukicen !

@Arsnael
Copy link
Contributor

Arsnael commented Jan 28, 2026

There is still rebase conflicts though? (at least that's what github is saying to me)

@omerfarukicen
Copy link
Contributor Author

omerfarukicen commented Jan 28, 2026

GitHub still reports rebase conflicts. However, I ran all tests locally and reviewed the changes, and I didn’t see any issues.

@chibenwa
Copy link
Contributor

Locally

image

@chibenwa chibenwa force-pushed the JAMES-4150-fixmaster branch from dfa3c79 to c016742 Compare January 28, 2026 13:07
@chibenwa
Copy link
Contributor

@omerfarukicen I forced pushed a locally rebased version, and I made sure to revert the indent changes that undermines this work.

Is this fine to you?

@chibenwa chibenwa merged commit 9077875 into apache:master Jan 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants