File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed
main/java/com/marklogic/client/impl
test/java/com/marklogic/client/test/document Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ dependencies {
21
21
implementation ' com.squareup.okhttp3:logging-interceptor:4.12.0'
22
22
implementation ' io.github.rburgst:okhttp-digest:2.7'
23
23
24
- implementation ' com.sun.mail:javax.mail:1.6.2'
24
+ // https://eclipse-ee4j.github.io/angus-mail/ recommends using these two separate dependencies.
25
+ implementation " jakarta.mail:jakarta.mail-api:2.1.3"
26
+ implementation " org.eclipse.angus:angus-mail:2.0.3"
27
+
25
28
implementation ' javax.ws.rs:javax.ws.rs-api:2.1.1'
26
29
implementation ' org.slf4j:slf4j-api:1.7.36'
27
30
implementation ' com.fasterxml.jackson.core:jackson-core:2.15.3'
Original file line number Diff line number Diff line change 64
64
import org .slf4j .Logger ;
65
65
import org .slf4j .LoggerFactory ;
66
66
67
- import javax .mail .BodyPart ;
68
- import javax .mail .Header ;
69
- import javax .mail .MessagingException ;
70
- import javax .mail .internet .MimeMultipart ;
71
- import javax .mail .util .ByteArrayDataSource ;
67
+ import jakarta .mail .BodyPart ;
68
+ import jakarta .mail .Header ;
69
+ import jakarta .mail .MessagingException ;
70
+ import jakarta .mail .internet .MimeMultipart ;
71
+ import jakarta .mail .util .ByteArrayDataSource ;
72
72
import javax .net .ssl .*;
73
73
import jakarta .xml .bind .DatatypeConverter ;
74
74
import java .io .ByteArrayInputStream ;
98
98
99
99
@ SuppressWarnings ({ "unchecked" , "rawtypes" })
100
100
public class OkHttpServices implements RESTServices {
101
+
102
+ static {
103
+ // Added in 7.0.0. Instructs jakarta-mail to allow UTF-8 in header names in multipart responses.
104
+ if (System .getProperty ("mail.mime.allowutf8" ) == null ) {
105
+ System .setProperty ("mail.mime.allowutf8" , "true" );
106
+ }
107
+ }
108
+
101
109
static final private Logger logger = LoggerFactory .getLogger (OkHttpServices .class );
102
110
103
111
static final public String OKHTTP_LOGGINGINTERCEPTOR_LEVEL = "com.marklogic.client.okhttp.httplogginginterceptor.level" ;
Original file line number Diff line number Diff line change 8
8
import com .marklogic .client .document .DocumentRecord ;
9
9
import com .marklogic .client .io .StringHandle ;
10
10
import com .marklogic .client .test .Common ;
11
- import org .junit .jupiter .api .Disabled ;
12
11
import org .junit .jupiter .api .Test ;
13
12
14
13
import static org .junit .jupiter .api .Assertions .assertEquals ;
17
16
class ReadDocumentPageTest {
18
17
19
18
@ Test
20
- @ Disabled ("For MLE-15748. Using to refactor multipart reading first." )
21
19
void test () {
22
20
Common .deleteUrisWithPattern ("/aaa-page/*" );
23
21
You can’t perform that action at this time.
0 commit comments