marinofaggiana 3 years ago
parent
commit
91d82e503f

+ 1 - 1
Nextcloud.xcodeproj/project.pbxproj

@@ -2850,7 +2850,7 @@
 			repositoryURL = "https://github.com/realm/realm-cocoa";
 			requirement = {
 				kind = exactVersion;
-				version = 10.7.5;
+				version = 10.7.6;
 			};
 		};
 		F786D58B253454BF00E3DD7B /* XCRemoteSwiftPackageReference "ios-communication-library" */ = {

+ 4 - 4
Nextcloud.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

@@ -168,8 +168,8 @@
         "repositoryURL": "https://github.com/realm/realm-cocoa",
         "state": {
           "branch": null,
-          "revision": "b481f2cc637bd101a03dba52ad1bef6eadfdac9f",
-          "version": "10.7.5"
+          "revision": "7e5c77fd7fbb30259e8e6e6a41f32289f72e0812",
+          "version": "10.7.6"
         }
       },
       {
@@ -177,8 +177,8 @@
         "repositoryURL": "https://github.com/realm/realm-core",
         "state": {
           "branch": null,
-          "revision": "28ed052d10d2245542b4fbdc71d388febb1e9bc4",
-          "version": "10.6.0"
+          "revision": "018adb3469c2882904febca251778129ef4a9b70",
+          "version": "10.7.2"
         }
       },
       {

+ 1 - 8
iOSClient/Networking/NCNetworking.swift

@@ -352,9 +352,7 @@ import Queuer
 #if !EXTENSION
                 if errorCode == 401 || errorCode == 403 {
                     NCNetworkingCheckRemoteUser.shared.checkRemoteUser(account: metadata.account)
-                } else if errorCode == Int(CFNetworkErrors.cfurlErrorServerCertificateUntrusted.rawValue) {
-                    CCUtility.setCertificateError(metadata.account)
-                }
+                } 
 #endif
             }
             
@@ -593,11 +591,6 @@ import Queuer
                     
                     NCManageDatabase.shared.setMetadataSession(ocId: metadata.ocId, session: nil, sessionError: errorDescription, sessionTaskIdentifier: 0, status: NCGlobal.shared.metadataStatusUploadError)
 
-                } else if errorCode == Int(CFNetworkErrors.cfurlErrorServerCertificateUntrusted.rawValue) {
-                    
-                    CCUtility.setCertificateError(metadata.account)
-                    NCManageDatabase.shared.setMetadataSession(ocId: metadata.ocId, session: nil, sessionError: errorDescription, sessionTaskIdentifier: 0, status: NCGlobal.shared.metadataStatusUploadError)
-
                 } else {
                     
                     if size == 0 {

+ 2 - 2
iOSClient/Utility/CCUtility.m

@@ -552,12 +552,12 @@
     // In background do not write the error
 #if !defined(EXTENSION)
     UIApplicationState state = [[UIApplication sharedApplication] applicationState];
-    if (error && (state == UIApplicationStateBackground || state == UIApplicationStateInactive)) {
+    if (state == UIApplicationStateBackground || state == UIApplicationStateInactive) {
         return;
     }
     NSString *key = [@"certificateError" stringByAppendingString:account];
     
-    [UICKeyChainStore setString:"true" forKey:key service:NCGlobal.shared.serviceShareKeyChain];
+    [UICKeyChainStore setString:@"true" forKey:key service:NCGlobal.shared.serviceShareKeyChain];
 #else
     return;
 #endif