From 47437d81e45dcf04589f671711c100757d29ddc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Tue, 12 Sep 2023 10:07:37 +0200 Subject: [PATCH 1/6] Upgrade realm-core to v13.20.0 --- src/realm-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/realm-core b/src/realm-core index f6193f93b..83d89f60d 160000 --- a/src/realm-core +++ b/src/realm-core @@ -1 +1 @@ -Subproject commit f6193f93b71726a47d00c77022fcd96ab2589bb4 +Subproject commit 83d89f60db110a86c3b11b645f4283b27a4e9295 From 17b865515c454af3350a695800caa8bb5ccdd446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Tue, 12 Sep 2023 10:41:17 +0200 Subject: [PATCH 2/6] Update realm_bindings.dart --- lib/src/native/realm_bindings.dart | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/src/native/realm_bindings.dart b/lib/src/native/realm_bindings.dart index 646cd8dfe..740abbfe7 100644 --- a/lib/src/native/realm_bindings.dart +++ b/lib/src/native/realm_bindings.dart @@ -11293,15 +11293,16 @@ abstract class realm_errno { static const int RLM_ERR_SYNC_CLIENT_RESET_REQUIRED = 1032; static const int RLM_ERR_SYNC_COMPENSATING_WRITE = 1033; static const int RLM_ERR_SYNC_CONNECT_FAILED = 1034; - static const int RLM_ERR_SYNC_INVALID_SCHEMA_CHANGE = 1035; - static const int RLM_ERR_SYNC_PERMISSION_DENIED = 1036; - static const int RLM_ERR_SYNC_PROTOCOL_INVARIANT_FAILED = 1037; - static const int RLM_ERR_SYNC_PROTOCOL_NEGOTIATION_FAILED = 1038; - static const int RLM_ERR_SYNC_SERVER_PERMISSIONS_CHANGED = 1039; - static const int RLM_ERR_SYNC_USER_MISMATCH = 1040; - static const int RLM_ERR_TLS_HANDSHAKE_FAILED = 1041; - static const int RLM_ERR_WRONG_SYNC_TYPE = 1042; - static const int RLM_ERR_SYNC_WRITE_NOT_ALLOWED = 1043; + static const int RLM_ERR_SYNC_CONNECT_TIMEOUT = 1035; + static const int RLM_ERR_SYNC_INVALID_SCHEMA_CHANGE = 1036; + static const int RLM_ERR_SYNC_PERMISSION_DENIED = 1037; + static const int RLM_ERR_SYNC_PROTOCOL_INVARIANT_FAILED = 1038; + static const int RLM_ERR_SYNC_PROTOCOL_NEGOTIATION_FAILED = 1039; + static const int RLM_ERR_SYNC_SERVER_PERMISSIONS_CHANGED = 1040; + static const int RLM_ERR_SYNC_USER_MISMATCH = 1041; + static const int RLM_ERR_TLS_HANDSHAKE_FAILED = 1042; + static const int RLM_ERR_WRONG_SYNC_TYPE = 1043; + static const int RLM_ERR_SYNC_WRITE_NOT_ALLOWED = 1044; static const int RLM_ERR_SYSTEM_ERROR = 1999; static const int RLM_ERR_LOGIC = 2000; static const int RLM_ERR_NOT_SUPPORTED = 2001; From cf9c6d93a2da1ea563875c02e0f54e53b94e3f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Tue, 12 Sep 2023 11:41:18 +0200 Subject: [PATCH 3/6] Update CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 745e33a07..4652ff6c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ * Sync protocol version bumped to 10. (Core upgrade) * Handle `badChangeset` error when printing changeset contents in debug. (Core upgrade) -* Using Core 13.19.0. +* Using Core 13.20.0. ## 1.4.0 (2023-08-16) From 8d4a2504a2340fd543be9219885537c79f8b3414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Tue, 12 Sep 2023 15:02:47 +0200 Subject: [PATCH 4/6] Add extra error enum value on Dart side --- lib/src/native/realm_core.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/native/realm_core.dart b/lib/src/native/realm_core.dart index ac3f9d33d..b86243409 100644 --- a/lib/src/native/realm_core.dart +++ b/lib/src/native/realm_core.dart @@ -3426,6 +3426,7 @@ enum SyncErrorCodes { syncClientResetRequired(realm_errno.RLM_ERR_SYNC_CLIENT_RESET_REQUIRED), syncCompensatingWrite(realm_errno.RLM_ERR_SYNC_COMPENSATING_WRITE), syncConnectFailed(realm_errno.RLM_ERR_SYNC_CONNECT_FAILED), + syncConnectTimeout(realm_errno.RLM_ERR_SYNC_CONNECT_TIMEOUT), syncInvalidSchemaChange(realm_errno.RLM_ERR_SYNC_INVALID_SCHEMA_CHANGE), syncPermissionDenied(realm_errno.RLM_ERR_SYNC_PERMISSION_DENIED), syncProtocolInvariantFailed(realm_errno.RLM_ERR_SYNC_PROTOCOL_INVARIANT_FAILED), From 86058bbcca46f7c8256a7709cf0561a9468096d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Wed, 13 Sep 2023 17:58:27 +0200 Subject: [PATCH 5/6] Upgrade realm-core to v13.20.1 --- src/realm-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/realm-core b/src/realm-core index 83d89f60d..1eb93c961 160000 --- a/src/realm-core +++ b/src/realm-core @@ -1 +1 @@ -Subproject commit 83d89f60db110a86c3b11b645f4283b27a4e9295 +Subproject commit 1eb93c9619f6a05b5a91c2719690606016802e0b From 3664fd0a480191007b8aee49e44a70a31ecebac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Wed, 13 Sep 2023 18:03:44 +0200 Subject: [PATCH 6/6] Update CHANGELOG --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4652ff6c7..eb12b51f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,10 +10,14 @@ * `SyncClientError`, `SyncConnectionError`, `SyncSessionError`, `SyncWebSocketError`, `GeneralSyncError` * `SyncClientErrorCode`, `SyncConnectionErrorCode`, `SyncSessionErrorCode`, `SyncWebSocketErrorCode`, `GeneralSyncErrorCode, SyncErrorCategory` * Added new Sync errors types `BadFlexibleSyncQueryError`, `WrongSyncTypeError` and `UnrecoverableSyncError`. ([#1387](https://github.com/realm/realm-dart/pull/1387)) +* Throw an exception if `File::unlock` has failed, in order to inform the SDK that we are likely hitting some limitation on the OS filesystem, instead of crashing the application and use the same file locking logic for all the platforms. (Core upgrade) ### Fixed * Crash when querying the size of a Object property through a link chain (Core upgrade, since v13.17.2) * Deprecated `App.localAppName` and `App.localAppVersion`. They were not used by the server and were not needed to set them. ([#1387](https://github.com/realm/realm-dart/pull/1387)) +* Fixed crash in slab allocator (Assertion failed: ref + size <= next->first) Many issues like (Core upgrade, since 13.0.0) +* When using OpenSSL (i.e. on non-Apple platforms) the `TlsHandshakeFailed` error code would never be reported and instead TLS errors would be reported as `SyncConnectFailed` (Core upgrade). +* Sending empty UPLOAD messages may lead to 'Bad server version' errors and client reset. (Core upgrade, since v11.8.0) ### Breaking Changes @@ -26,7 +30,7 @@ * Sync protocol version bumped to 10. (Core upgrade) * Handle `badChangeset` error when printing changeset contents in debug. (Core upgrade) -* Using Core 13.20.0. +* Using Core 13.20.1. ## 1.4.0 (2023-08-16)