mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-10-07 03:42:39 +02:00
Compare commits
2 Commits
deploy-024
...
deploy-024
Author | SHA1 | Date | |
---|---|---|---|
|
b4fc0c4368 | ||
|
87ee8765b8 |
@@ -1,5 +1,5 @@
|
|||||||
-- Add additional summary columns to DOMAIN_SECURITY_EVENTS table
|
-- Add additional summary columns to DOMAIN_SECURITY_EVENTS table
|
||||||
-- to make it easier to make sense of certificate changes
|
-- to make it easier to make sense of certificate changes
|
||||||
|
|
||||||
ALTER TABLE DOMAIN_SECURITY_EVENTS ADD COLUMN CHANGE_SCHEMA ENUM('NO_CHANGE', 'HTTP_TO_HTTPS', 'HTTPS_TO_HTTP', 'UNKNOWN') NOT NULL DEFAULT 'UNKNOWN';
|
ALTER TABLE DOMAIN_SECURITY_EVENTS ADD COLUMN CHANGE_SCHEMA ENUM('NONE', 'HTTP_TO_HTTPS', 'HTTPS_TO_HTTP', 'UNKNOWN') NOT NULL DEFAULT 'UNKNOWN';
|
||||||
OPTIMIZE TABLE DOMAIN_SECURITY_EVENTS;
|
OPTIMIZE TABLE DOMAIN_SECURITY_EVENTS;
|
@@ -2,11 +2,11 @@ package nu.marginalia.ping.model;
|
|||||||
|
|
||||||
public enum SchemaChange {
|
public enum SchemaChange {
|
||||||
UNKNOWN,
|
UNKNOWN,
|
||||||
NO_CHANGE,
|
NONE,
|
||||||
HTTP_TO_HTTPS,
|
HTTP_TO_HTTPS,
|
||||||
HTTPS_TO_HTTP;
|
HTTPS_TO_HTTP;
|
||||||
|
|
||||||
public boolean isSignificant() {
|
public boolean isSignificant() {
|
||||||
return this != NO_CHANGE && this != UNKNOWN;
|
return this != NONE && this != UNKNOWN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,9 +93,9 @@ public record SecurityInformationChange(
|
|||||||
SchemaChange schemaChange;
|
SchemaChange schemaChange;
|
||||||
|
|
||||||
if (beforeIsHttp && afterIsHttp) {
|
if (beforeIsHttp && afterIsHttp) {
|
||||||
schemaChange = SchemaChange.NO_CHANGE;
|
schemaChange = SchemaChange.NONE;
|
||||||
} else if (beforeIsHttps && afterIsHttps) {
|
} else if (beforeIsHttps && afterIsHttps) {
|
||||||
schemaChange = SchemaChange.NO_CHANGE;
|
schemaChange = SchemaChange.NONE;
|
||||||
} else if (beforeIsHttp && afterIsHttps) {
|
} else if (beforeIsHttp && afterIsHttps) {
|
||||||
schemaChange = SchemaChange.HTTP_TO_HTTPS;
|
schemaChange = SchemaChange.HTTP_TO_HTTPS;
|
||||||
} else if (beforeIsHttps && afterIsHttp) {
|
} else if (beforeIsHttps && afterIsHttp) {
|
||||||
|
@@ -145,7 +145,7 @@ public class HttpPingService {
|
|||||||
domainReference.nodeId(),
|
domainReference.nodeId(),
|
||||||
oldPingStatus,
|
oldPingStatus,
|
||||||
ErrorClassification.HTTP_CLIENT_ERROR,
|
ErrorClassification.HTTP_CLIENT_ERROR,
|
||||||
null);
|
rsp.errorMessage());
|
||||||
newSecurityInformation = null;
|
newSecurityInformation = null;
|
||||||
}
|
}
|
||||||
case HttpResponse httpResponse -> {
|
case HttpResponse httpResponse -> {
|
||||||
|
Reference in New Issue
Block a user