Merge remote-tracking branch 'origin/hotfix/1.9.5' into feature/SUPPORT-8848_fix_error_handler
This commit is contained in:
commit
7b180ad6b6
4 changed files with 7 additions and 3 deletions
|
|
@ -32,10 +32,10 @@ public class EsiaConfig {
|
|||
@Value("${esia.client.cert.hash}")
|
||||
private String clientCertHash;
|
||||
|
||||
@Value("${esia.request.timeout:60}")
|
||||
@Value("${request.timeout:20}")
|
||||
private long requestTimeout;
|
||||
|
||||
@Value("${esia.connection.timeout:30}")
|
||||
@Value("${connection.timeout:10}")
|
||||
private long connectionTimeout;
|
||||
|
||||
@Value("${esia.logout.url:idp/ext/Logout}")
|
||||
|
|
|
|||
|
|
@ -337,6 +337,7 @@ public class EsiaAuthService {
|
|||
.uri(URI.create(esiaConfig.getSignUrl()))
|
||||
.header("Content-Type", "text/plain")
|
||||
.POST(HttpRequest.BodyPublishers.ofString(requestBody, StandardCharsets.UTF_8))
|
||||
.timeout(Duration.ofSeconds(esiaConfig.getRequestTimeout()))
|
||||
.build();
|
||||
HttpResponse<String> response = HttpClient.newBuilder()
|
||||
.connectTimeout(Duration.ofSeconds(esiaConfig.getConnectionTimeout()))
|
||||
|
|
@ -461,6 +462,7 @@ public class EsiaAuthService {
|
|||
.uri(URI.create(esiaConfig.getSignVerifyUrl()))
|
||||
.header("Content-Type", "text/plain")
|
||||
.POST(HttpRequest.BodyPublishers.ofString(accessToken, StandardCharsets.UTF_8))
|
||||
.timeout(Duration.ofSeconds(esiaConfig.getRequestTimeout()))
|
||||
.build();
|
||||
return HttpClient.newBuilder()
|
||||
.connectTimeout(Duration.ofSeconds(esiaConfig.getConnectionTimeout()))
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<nav class="header" id="webbpm-header" [ngClass]="{'header-landing': isLanding}">
|
||||
<div *ngIf="isLanding">
|
||||
<div class="header-logo"></div>
|
||||
<div class="header-title">Реестр повесток юридических лиц</div>
|
||||
<div class="header-title">Реестр повесток физических лиц</div>
|
||||
</div>
|
||||
<div *ngIf="!isLanding" class="header-logo">
|
||||
<div class="logo"><a routerLink="/"></a></div>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,9 @@ export class ExtractLoadService extends Behavior {
|
|||
super.initialize();
|
||||
this.button = this.getScript(AbstractButton);
|
||||
this.httpClient = this.injector.get(HttpClient);
|
||||
this.errorEvent.subscribe(() => console.log("error event occurred", this.errorEvent));
|
||||
this.onClickFunction = () => {
|
||||
console.log("click event occurred");
|
||||
this.httpClient.get('extract/' + this.formatRegistry, {
|
||||
responseType: 'blob',
|
||||
observe: 'response'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue