[Bug #921] Showing a proper error message if there are problems creating HTTP connection.
FEA: ItEr72S04BugFixing
This commit is contained in:
parent
a75965a84c
commit
96ec240e4f
1 changed files with 8 additions and 8 deletions
|
|
@ -147,15 +147,15 @@ public class SubcontractedTasksModel implements ISubcontractedTasksModel {
|
|||
|
||||
NaiveTrustProvider.setAlwaysTrust(true);
|
||||
|
||||
WebClient client = WebClient.create(externalCompany.getAppURI());
|
||||
|
||||
client.path("ws/rest/subcontract");
|
||||
|
||||
Util.addAuthorizationHeader(client, externalCompany
|
||||
.getOurCompanyLogin(), externalCompany
|
||||
.getOurCompanyPassword());
|
||||
|
||||
try {
|
||||
WebClient client = WebClient.create(externalCompany.getAppURI());
|
||||
|
||||
client.path("ws/rest/subcontract");
|
||||
|
||||
Util.addAuthorizationHeader(client, externalCompany
|
||||
.getOurCompanyLogin(), externalCompany
|
||||
.getOurCompanyPassword());
|
||||
|
||||
InstanceConstraintViolationsListDTO instanceConstraintViolationsListDTO = client
|
||||
.post(subcontractedTaskDataDTO,
|
||||
InstanceConstraintViolationsListDTO.class);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue