Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
d3cd1f0
[UPGRADE] - Maven ch.qos.logback 1.4.5 -> 1.4.8
vttranlina Jul 17, 2023
fb46c9c
[UPGRADE] - Maven com.fasterxml.jackson.* 2.14.1 -> 2.15.2
vttranlina Jul 17, 2023
db6b25f
[UPGRADE] - Maven com.github.ben-manes.caffeine:caffeine 3.1.2 -> 3.1.6
vttranlina Jul 17, 2023
ce71213
[UPGRADE] - Maven com.google.crypto.tink 1.7.0 -> 1.9.0
vttranlina Jul 17, 2023
4a3569e
[UPGRADE] - Maven com.google.guava:guava 31.1-jre -> 32.1.1-jre
vttranlina Jul 17, 2023
e31f10a
[UPGRADE] - Maven com.google.inject 5.1.0 -> 6.0.0
vttranlina Jul 17, 2023
dd35f7f
[UPGRADE] - Maven com.jayway.jsonpath:json-path 2.7.0 -> 2.8.0
vttranlina Jul 17, 2023
813a033
[UPGRADE] - Maven com.typesafe.play:play-json_2.13 2.9.3 -> 2.9.4
vttranlina Jul 17, 2023
cbf568b
[UPGRADE] - Maven com.unboundid:unboundid-ldapsdk 6.0.7 -> 6.0.9
vttranlina Jul 17, 2023
ae5699e
[UPGRADE] - Maven commons-daemon:commons-daemon 1.3.3 -> 1.3.4
vttranlina Jul 17, 2023
b20ca97
[UPGRADE] - Maven commons-io:commons-io 2.11.0 -> 2.13.0
vttranlina Jul 17, 2023
abd8f89
[UPGRADE] - Maven eu.timepit:refined_2.13 0.10.3 -> 0.11.0
vttranlina Jul 17, 2023
7b7c933
[UPGRADE] - Maven io.dropwizard.metrics 4.2.15 -> 4.2.19
vttranlina Jul 17, 2023
73321b7
[UPGRADE] - Maven io.github.hakky54:sslcontext-kickstart-for-pem 7.4.…
vttranlina Jul 17, 2023
5099fa0
[UPGRADE] - Maven io.github.openfeign 11.10 -> 12.4
vttranlina Jul 17, 2023
c4d1f6c
[UPGRADE] - Maven io.rest-assured:rest-assured 5.3.0 -> 5.3.1
vttranlina Jul 17, 2023
e05baaf
[UPGRADE] - Maven net.javacrumbs.json-unit:json-unit-assertj 2.36.0 -…
vttranlina Jul 17, 2023
f20535b
[UPGRADE] - Maven nl.jqno.equalsverifier:equalsverifier 3.10.1 -> 3.15
vttranlina Jul 17, 2023
d3aa58c
[UPGRADE] - Maven org.apache.activemq:activemq-broker 5.17.3 -> 5.18.2
vttranlina Jul 17, 2023
22ad2c4
[UPGRADE] - Maven org.apache.activemq:artemis-jms-client 2.27.1 -> 2.…
vttranlina Jul 17, 2023
5f0aad7
[UPGRADE] - Maven org.apache.ant:ant 1.10.12 -> 1.10.13
vttranlina Jul 17, 2023
0812b39
[UPGRADE] - Maven org.apache.commons:commons-compress 1.22 -> 1.23.0
vttranlina Jul 17, 2023
3031558
[UPGRADE] - Maven org.apache.commons:commons-configuration2 2.8.0 -> …
vttranlina Jul 17, 2023
b8662d8
[UPGRADE] - Maven org.apache.logging.log4j 2.19.0 -> 2.20.0
vttranlina Jul 17, 2023
84569c7
[UPGRADE] - Maven org.apache.pdfbox:pdfbox 2.0.27 -> 2.0.29
vttranlina Jul 17, 2023
9765e71
[UPGRADE] - Maven org.assertj:assertj-core 3.23.1 -> 3.24.2
vttranlina Jul 17, 2023
2041f2b
[UPGRADE] - Maven org.jsoup:jsoup 1.15.3 -> 1.16.1
vttranlina Jul 17, 2023
085a696
[UPGRADE] - Maven org.junit.jupiter 5.8.2 -> 5.9.3
vttranlina Jul 17, 2023
7c2b3bc
[UPGRADE] - Maven org.junit.platform 1.8.2 -> 1.9.3
vttranlina Jul 17, 2023
73c7646
[UPGRADE] - Maven org.mock-server:mockserver-netty 5.14.0 -> 5.15.0
vttranlina Jul 17, 2023
00f9b91
[UPGRADE] - Maven org.mockito 4.8.0 -> 5.2.0
vttranlina Jul 17, 2023
7824362
[UPGRADE] - Maven org.scala-lang:scala-library 2.13.10 -> 2.13.11
vttranlina Jul 17, 2023
10a7795
[UPGRADE] - Maven org.scalatest:scalatest_2.13 3.2.14 -> 3.2.16
vttranlina Jul 17, 2023
a1b5a35
[UPGRADE] - Maven org.slf4j 2.0.6 -> 2.0.7
vttranlina Jul 17, 2023
b204712
[UPGRADE] - Maven com.fasterxml.jackson.core:jackson-databind 2.14.1 …
vttranlina Jul 17, 2023
82036ec
[UPGRADE] - Maven - reactor-bom 2022.0.8 -> 2022.0.9
vttranlina Jul 17, 2023
20b9769
[UPGRADE] - Maven org.junit.vintage:junit-vintage-engine 5.8.2 -> 5.9.3
vttranlina Jul 17, 2023
1935e83
[UPGRADE] - Maven org.apache.logging.log4j:log4j-to-slf4j 2.19.0 -> 2…
vttranlina Jul 17, 2023
d1ed543
[UPGRADE] - Maven org.apache.maven.doxia 1.11.1 -> 1.12.0
vttranlina Jul 17, 2023
d56995c
[UPGRADE] - Maven org.apache.httpcomponents:fluent-hc 4.5.13 -> 4.5.14
vttranlina Jul 17, 2023
4731fc0
[UPGRADE] - Maven /example - com.google.inject 5.1.0 -> 6.0.0
vttranlina Jul 17, 2023
6d65690
[UPGRADE] - Maven - /example - io.projectreactor:reactor-core 3.4.18 …
vttranlina Jul 17, 2023
9568b0f
[UPGRADE] - Maven - /example - io.dropwizard.metrics:metrics-graphite…
vttranlina Jul 17, 2023
08e94de
[UPGRADE] - Maven com.typesafe.akka:akka-stream* 2.6.20 -> 2.8.3
vttranlina Jul 17, 2023
2dc4042
[UPGRADE] - Maven com.auth0:jwks-rsa 0.21.1 -> 0.22.0
vttranlina Jul 17, 2023
361d25c
[UPGRADE] - Maven it.unimi.dsi:fastutil-core 8.5.9 -> 8.5.12
vttranlina Jul 17, 2023
4547fce
[UPGRADE] - Maven org.jgrapht:jgrapht-core 1.5.1 -> 1.5.2
vttranlina Jul 17, 2023
c041059
[UPGRADE] - Maven org.typelevel:cats-core_2.13 2.8.0 -> 2.9.0
vttranlina Jul 17, 2023
bca8759
[UPGRADE] - Maven org.specs2:specs2* 4.17.0 -> 4.20.0
vttranlina Jul 17, 2023
f7efcf8
[UPGRADE] - Maven software.amazon.awssdk 2.20.98 -> 2.20.103
vttranlina Jul 17, 2023
a9c528a
[UPGRADE] - Maven io.prometheus 0.15.0 -> 0.16.0
vttranlina Jul 17, 2023
ad4717e
[UPGRADE] - Maven com.clever-cloud.pulsar4s:pulsar4s-play-json_2.13 2…
vttranlina Jul 17, 2023
880e6cf
[UPGRADE] - Maven org.xmlunit 2.9.0 -> 2.9.1
vttranlina Jul 17, 2023
b6c0259
[UPGRADE] - Maven com.softwaremill.sttp.client3:okhttp-backend_2.13 3…
vttranlina Jul 17, 2023
9fb0d4a
[UPGRADE] - Maven com.beachape:enumeratum_* 1.7.0 -> 1.7.2
vttranlina Jul 21, 2023
bb61fd7
Disable the update flag concurrency test cases in CassandraMessageMap…
vttranlina Jul 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backends-common/opensearch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
<version>2.19.0</version>
<version>${log4j2.version}</version>
</dependency>
<dependency>
<groupId>org.awaitility</groupId>
Expand Down
5 changes: 3 additions & 2 deletions backends-common/pulsar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<properties>
<pulsar-client.version>2.11.0</pulsar-client.version>
<clever-cloud.pulsar4s.version>2.9.0</clever-cloud.pulsar4s.version>
<akka-stream.version>2.8.3</akka-stream.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -102,12 +103,12 @@
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-stream-typed_${scala.base}</artifactId>
<version>2.6.20</version>
<version>${akka-stream.version}</version>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-stream_${scala.base}</artifactId>
<version>2.6.20</version>
<version>${akka-stream.version}</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-healthcheck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-core</artifactId>
<version>3.4.18</version>
<version>3.5.8</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-imap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>5.1.0</version>
<version>6.0.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions examples/metrics-graphite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-graphite</artifactId>
<version>4.2.15</version>
<version>4.2.19</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>5.1.0</version>
<version>6.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@

import org.apache.james.backends.cassandra.CassandraClusterExtension;
import org.apache.james.backends.cassandra.init.configuration.CassandraConfiguration;
import org.apache.james.junit.categories.Unstable;
import org.apache.james.mailbox.store.mail.model.MapperProvider;
import org.apache.james.mailbox.store.mail.model.MessageMapperTest;
import org.apache.james.utils.UpdatableTickingClock;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.extension.RegisterExtension;

class CassandraMessageMapperRelaxedConsistencyTest {
Expand All @@ -51,6 +53,18 @@ protected MapperProvider createMapperProvider() {
protected UpdatableTickingClock updatableTickingClock() {
return cassandraMapperProvider.getUpdatableTickingClock();
}

@Tag(Unstable.TAG)
@Override
public void setFlagsShouldWorkWithConcurrencyWithRemove() throws Exception {
super.setFlagsShouldWorkWithConcurrencyWithRemove();
}

@Tag(Unstable.TAG)
@Override
public void userFlagsUpdateShouldWorkInConcurrentEnvironment() throws Exception {
super.userFlagsUpdateShouldWorkInConcurrentEnvironment();
}
}

@Nested
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.apache.james.backends.cassandra.StatementRecorder.Selector;
import org.apache.james.backends.cassandra.init.configuration.CassandraConfiguration;
import org.apache.james.blob.api.HashBlobId;
import org.apache.james.junit.categories.Unstable;
import org.apache.james.mailbox.MessageManager;
import org.apache.james.mailbox.cassandra.ids.CassandraId;
import org.apache.james.mailbox.cassandra.ids.CassandraMessageId;
Expand All @@ -65,6 +66,7 @@
import org.assertj.core.api.SoftAssertions;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

Expand Down Expand Up @@ -458,4 +460,16 @@ void messagesRetrievedUsingFetchTypeAttachmentsMetadataShouldHaveAttachmentsMeta

assertThat(retrievedMessage.getAttachments()).isEqualTo(message.getAttachments());
}

@Tag(Unstable.TAG)
@Override
public void setFlagsShouldWorkWithConcurrencyWithRemove() throws Exception {
super.setFlagsShouldWorkWithConcurrencyWithRemove();
}

@Tag(Unstable.TAG)
@Override
public void userFlagsUpdateShouldWorkInConcurrentEnvironment() throws Exception {
super.userFlagsUpdateShouldWorkInConcurrentEnvironment();
}
}
2 changes: 1 addition & 1 deletion mailbox/event/json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<dependency>
<groupId>com.beachape</groupId>
<artifactId>enumeratum_${scala.base}</artifactId>
<version>1.7.0</version>
<version>1.7.2</version>
</dependency>
<dependency>
<groupId>com.chuusai</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
import javax.mail.Flags.Flag;

import org.apache.commons.io.input.TeeInputStream;
import org.apache.commons.io.input.UnsynchronizedBufferedInputStream;
import org.apache.commons.io.input.UnsynchronizedFilterInputStream;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.james.events.EventBus;
Expand Down Expand Up @@ -107,7 +109,6 @@
import org.apache.james.mime4j.stream.RecursionMode;
import org.apache.james.util.io.BodyOffsetInputStream;
import org.apache.james.util.io.InputStreamConsummer;
import org.apache.james.util.io.UnsynchronizedBufferedInputStream;
import org.apache.james.util.streams.Iterators;
import org.reactivestreams.Publisher;

Expand Down Expand Up @@ -358,7 +359,9 @@ public AppendResult appendMessage(InputStream msgIn, Date internalDate, final Ma
file = Files.createTempFile("imap", ".msg").toFile();
try (FileOutputStream out = new FileOutputStream(file);
BufferedOutputStream bufferedOut = new BufferedOutputStream(out);
UnsynchronizedBufferedInputStream tmpMsgIn = new UnsynchronizedBufferedInputStream(new TeeInputStream(msgIn, bufferedOut));
UnsynchronizedFilterInputStream tmpMsgIn = UnsynchronizedBufferedInputStream.builder()
.setInputStream(new TeeInputStream(msgIn, bufferedOut))
.get();
BodyOffsetInputStream bIn = new BodyOffsetInputStream(tmpMsgIn)) {
Pair<PropertyBuilder, HeaderImpl> pair = parseProperties(bIn);
PropertyBuilder propertyBuilder = pair.getLeft();
Expand Down Expand Up @@ -405,8 +408,10 @@ private Mono<AppendResult> appendMessage(Content msgIn, Date internalDate, final
}

try (InputStream contentStream = msgIn.getInputStream();
UnsynchronizedBufferedInputStream bufferedContentStream = new UnsynchronizedBufferedInputStream(contentStream);
BodyOffsetInputStream bIn = new BodyOffsetInputStream(bufferedContentStream)) {
UnsynchronizedFilterInputStream bufferedContentStream = UnsynchronizedBufferedInputStream.builder()
.setInputStream(contentStream)
.get();
BodyOffsetInputStream bIn = new BodyOffsetInputStream(bufferedContentStream)) {
Pair<PropertyBuilder, HeaderImpl> pair = parseProperties(bIn);
PropertyBuilder propertyBuilder = pair.getLeft();
HeaderImpl headers = pair.getRight();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,8 @@ public void userFlagsUpdateShouldWorkInConcurrentEnvironment() throws Exception

saveMessages();

int threadCount = 2;
int updateCount = 10;
int threadCount = 8;
int updateCount = 40;
ConcurrentTestRunner.builder()
.operation((threadNumber, step) -> messageMapper.updateFlags(benwaInboxMailbox, message1.getUid(),
new FlagsUpdateCalculator(new Flags("custom-" + threadNumber + "-" + step), FlagsUpdateMode.ADD)))
Expand All @@ -939,8 +939,8 @@ public void setFlagsShouldWorkWithConcurrencyWithRemove() throws Exception {
Assume.assumeTrue(mapperProvider.getSupportedCapabilities().contains(MapperProvider.Capabilities.THREAD_SAFE_FLAGS_UPDATE));
saveMessages();

int threadCount = 4;
int updateCount = 20;
int threadCount = 8;
int updateCount = 40;
ConcurrentTestRunner.builder()
.operation((threadNumber, step) -> {
if (step < updateCount / 2) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

import javax.mail.MessagingException;

import org.apache.james.util.io.UnsynchronizedBufferedInputStream;
import org.apache.commons.io.input.UnsynchronizedBufferedInputStream;
import org.bouncycastle.cert.jcajce.JcaCertStoreBuilder;
import org.bouncycastle.cert.selector.X509CertificateHolderSelector;
import org.bouncycastle.cert.selector.jcajce.JcaX509CertSelectorConverter;
Expand Down Expand Up @@ -101,7 +101,10 @@ public KeyStoreHolder(String keyStoreFileName, String keyStorePassword, String k
}

keyStore = KeyStore.getInstance(keyStoreType);
keyStore.load(new UnsynchronizedBufferedInputStream(new FileInputStream(keyStoreFileName)), keyStorePassword.toCharArray());
keyStore.load(UnsynchronizedBufferedInputStream
.builder()
.setInputStream(new FileInputStream(keyStoreFileName))
.get(), keyStorePassword.toCharArray());
if (keyStore.size() == 0) {
throw new KeyStoreException("The keystore must be not empty");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;

import org.apache.james.util.io.UnsynchronizedBufferedInputStream;
import org.apache.commons.io.input.UnsynchronizedBufferedInputStream;
import org.bouncycastle.cert.jcajce.JcaCertStore;
import org.bouncycastle.cms.SignerInfoGenerator;
import org.bouncycastle.cms.jcajce.JcaSimpleSignerInfoGeneratorBuilder;
Expand Down Expand Up @@ -128,7 +128,11 @@ public SMIMEKeyHolder(String keyStoreFileName, String keyStorePassword, String k
}

KeyStore keyStore = KeyStore.getInstance(keyStoreType);
keyStore.load(new UnsynchronizedBufferedInputStream(new FileInputStream(keyStoreFileName)), keyStorePassword.toCharArray());

keyStore.load(UnsynchronizedBufferedInputStream.builder()
.setInputStream(new FileInputStream(keyStoreFileName))
.get(),
keyStorePassword.toCharArray());

Enumeration<String> aliases = keyStore.aliases();
if (keyAlias == null) {
Expand Down
8 changes: 5 additions & 3 deletions mailet/mailetdocs-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
information available from implementation source.</description>
<url>http://james.apache.org/mailet/maven-mailetdocs-plugin/</url>
<inceptionYear>2008</inceptionYear>

<properties>
<doxia.version>1.12.0</doxia.version>
</properties>
<dependencies>
<dependency>
<groupId>${james.groupId}</groupId>
Expand Down Expand Up @@ -64,12 +66,12 @@
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-core</artifactId>
<version>1.11.1</version>
<version>${doxia.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-sink-api</artifactId>
<version>1.11.1</version>
<version>${doxia.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;

import org.apache.james.util.io.UnsynchronizedBufferedInputStream;
import org.apache.commons.io.input.UnsynchronizedBufferedInputStream;
import org.apache.mailet.AttributeName;
import org.apache.mailet.AttributeUtils;
import org.apache.mailet.AttributeValue;
Expand Down Expand Up @@ -119,8 +119,9 @@ private void processAttachment(Mail mail, Map<String, AttributeValue<?>> attach
continue;
}
byte[] bytes = (byte[]) i.next().getValue();
InputStream is = new UnsynchronizedBufferedInputStream(
new ByteArrayInputStream(bytes));
InputStream is = UnsynchronizedBufferedInputStream.builder()
.setInputStream(new ByteArrayInputStream(bytes))
.get();
MimeBodyPart p = new MimeBodyPart(is);
if (!(message.isMimeType("multipart/*") && (message
.getContent() instanceof MimeMultipart))) {
Expand Down
Loading