Skip to content

Commit a4d969f

Browse files
committed
Fixes maintain session
1 parent 6cb7298 commit a4d969f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/github/jrrdev/mantisbtsync/core/jobs/common/CommonTasklets.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ public PortalAuthManager authManager(@Value("${mantis.auth.filepath:}") final St
8686

8787
@Bean
8888
@JobScope
89-
public MantisConnectBindingStub clientStub(@Value("${mantis.endpoint}") final String endpoint) throws AxisFault, MalformedURLException {
89+
public MantisConnectBindingStub clientStub(@Value("${mantis.endpoint}") final String endpoint,
90+
final PortalAuthBuilder authBuilder) throws AxisFault, MalformedURLException {
9091

9192
if (endpoint == null) {
9293
throw new MalformedURLException("Mantis endpoint can't be null");
@@ -96,7 +97,7 @@ public MantisConnectBindingStub clientStub(@Value("${mantis.endpoint}") final St
9697
loc.setMantisConnectPortEndpointAddress(endpoint);
9798
final MantisConnectBindingStub stub = new MantisConnectBindingStub(new URL(endpoint), loc);
9899
stub._setProperty(MessageContext.HTTP_TRANSPORT_VERSION, HTTPConstants.HEADER_PROTOCOL_V11);
99-
stub.setMaintainSession(false);
100+
stub.setMaintainSession(true);
100101

101102
return stub;
102103
}

0 commit comments

Comments
 (0)