diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-06-28 10:54:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-28 10:54:29 +0200 |
commit | 2c449469d302c695ee03f6b572e329a005a25651 (patch) | |
tree | 866b63aef25ff33d3bd181c153d55d77bc063b27 /core/js | |
parent | ca76d13c7824367956fcf9ef812432b9c6fc9a2d (diff) | |
parent | 20afe94297ca534b9a59cd73dc90d5cb6546ac02 (diff) | |
download | nextcloud-server-2c449469d302c695ee03f6b572e329a005a25651.tar.gz nextcloud-server-2c449469d302c695ee03f6b572e329a005a25651.zip |
Merge pull request #16070 from nextcloud/fix/setup-check-no-internet-no-error
Do not show a internet connectivity warning if internet access is dis…
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/setupchecks.js | 2 | ||||
-rw-r--r-- | core/js/tests/specs/setupchecksSpec.js | 34 |
2 files changed, 18 insertions, 18 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index 487d833db0a..0e8aeca8455 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -239,7 +239,7 @@ type: OC.SetupChecks.MESSAGE_TYPE_ERROR }); } - if (!data.serverHasInternetConnection) { + if (data.serverHasInternetConnectionProblems) { messages.push({ msg: t('core', 'This server has no working Internet connection: Multiple endpoints could not be reached. This means that some of the features like mounting external storage, notifications about updates or installation of third-party apps will not work. Accessing files remotely and sending of notification emails might not work, either. Establish a connection from this server to the Internet to enjoy all features.'), type: OC.SetupChecks.MESSAGE_TYPE_WARNING diff --git a/core/js/tests/specs/setupchecksSpec.js b/core/js/tests/specs/setupchecksSpec.js index 2f28dcdaef7..ab12ab63042 100644 --- a/core/js/tests/specs/setupchecksSpec.js +++ b/core/js/tests/specs/setupchecksSpec.js @@ -230,7 +230,7 @@ describe('OC.SetupChecks tests', function() { hasValidTransactionIsolationLevel: true, suggestedOverwriteCliURL: '', isRandomnessSecure: true, - serverHasInternetConnection: false, + serverHasInternetConnectionProblems: true, memcacheDocs: 'https://docs.nextcloud.com/server/go.php?to=admin-performance', forwardedForHeadersWorking: true, isCorrectMemcachedPHPModuleInstalled: true, @@ -282,7 +282,7 @@ describe('OC.SetupChecks tests', function() { hasValidTransactionIsolationLevel: true, suggestedOverwriteCliURL: '', isRandomnessSecure: true, - serverHasInternetConnection: false, + serverHasInternetConnectionProblems: true, memcacheDocs: 'https://docs.nextcloud.com/server/go.php?to=admin-performance', forwardedForHeadersWorking: true, isCorrectMemcachedPHPModuleInstalled: true, @@ -335,7 +335,7 @@ describe('OC.SetupChecks tests', function() { hasValidTransactionIsolationLevel: true, suggestedOverwriteCliURL: '', isRandomnessSecure: true, - serverHasInternetConnection: false, + serverHasInternetConnectionProblems: true, isMemcacheConfigured: true, forwardedForHeadersWorking: true, isCorrectMemcachedPHPModuleInstalled: true, @@ -386,7 +386,7 @@ describe('OC.SetupChecks tests', function() { suggestedOverwriteCliURL: '', isRandomnessSecure: false, securityDocs: 'https://docs.owncloud.org/myDocs.html', - serverHasInternetConnection: true, + serverHasInternetConnectionProblems: false, isMemcacheConfigured: true, forwardedForHeadersWorking: true, isCorrectMemcachedPHPModuleInstalled: true, @@ -435,7 +435,7 @@ describe('OC.SetupChecks tests', function() { suggestedOverwriteCliURL: '', isRandomnessSecure: true, securityDocs: 'https://docs.owncloud.org/myDocs.html', - serverHasInternetConnection: true, + serverHasInternetConnectionProblems: false, isMemcacheConfigured: true, forwardedForHeadersWorking: true, isCorrectMemcachedPHPModuleInstalled: false, @@ -484,7 +484,7 @@ describe('OC.SetupChecks tests', function() { suggestedOverwriteCliURL: '', isRandomnessSecure: true, securityDocs: 'https://docs.owncloud.org/myDocs.html', - serverHasInternetConnection: true, + serverHasInternetConnectionProblems: false, isMemcacheConfigured: true, forwardedForHeadersWorking: true, isCorrectMemcachedPHPModuleInstalled: true, @@ -534,7 +534,7 @@ describe('OC.SetupChecks tests', function() { hasValidTransactionIsolationLevel: true, suggestedOverwriteCliURL: '', isRandomnessSecure: true, - serverHasInternetConnection: true, + serverHasInternetConnectionProblems: false, isMemcacheConfigured: true, forwardedForHeadersWorking: false, reverseProxyDocs: 'https://docs.owncloud.org/foo/bar.html', @@ -583,7 +583,7 @@ describe('OC.SetupChecks tests', function() { hasValidTransactionIsolationLevel: true, suggestedOverwriteCliURL: '', isRandomnessSecure: true, - serverHasInternetConnection: true, + serverHasInternetConnectionProblems: false, isMemcacheConfigured: true, forwardedForHeadersWorking: true, reverseProxyDocs: 'https://docs.owncloud.org/foo/bar.html', @@ -632,7 +632,7 @@ describe('OC.SetupChecks tests', function() { hasValidTransactionIsolationLevel: true, suggestedOverwriteCliURL: '', isRandomnessSecure: true, - serverHasInternetConnection: true, + serverHasInternetConnectionProblems: false, isMemcacheConfigured: true, forwardedForHeadersWorking: true, reverseProxyDocs: 'https://docs.owncloud.org/foo/bar.html', @@ -673,7 +673,7 @@ describe('OC.SetupChecks tests', function() { { 'Content-Type': 'application/json' }, - JSON.stringify({data: {serverHasInternetConnection: false}}) + JSON.stringify({data: {serverHasInternetConnectionProblems: true}}) ); async.done(function( data, s, x ){ @@ -702,7 +702,7 @@ describe('OC.SetupChecks tests', function() { suggestedOverwriteCliURL: '', isRandomnessSecure: true, securityDocs: 'https://docs.owncloud.org/myDocs.html', - serverHasInternetConnection: true, + serverHasInternetConnectionProblems: false, isMemcacheConfigured: true, forwardedForHeadersWorking: true, phpSupported: {eol: true, version: '5.4.0'}, @@ -752,7 +752,7 @@ describe('OC.SetupChecks tests', function() { suggestedOverwriteCliURL: '', isRandomnessSecure: true, securityDocs: 'https://docs.owncloud.org/myDocs.html', - serverHasInternetConnection: true, + serverHasInternetConnectionProblems: false, isMemcacheConfigured: true, forwardedForHeadersWorking: true, isCorrectMemcachedPHPModuleInstalled: true, @@ -802,7 +802,7 @@ describe('OC.SetupChecks tests', function() { suggestedOverwriteCliURL: '', isRandomnessSecure: true, securityDocs: 'https://docs.owncloud.org/myDocs.html', - serverHasInternetConnection: true, + serverHasInternetConnectionProblems: false, isMemcacheConfigured: true, forwardedForHeadersWorking: true, isCorrectMemcachedPHPModuleInstalled: true, @@ -852,7 +852,7 @@ describe('OC.SetupChecks tests', function() { suggestedOverwriteCliURL: '', isRandomnessSecure: true, securityDocs: 'https://docs.owncloud.org/myDocs.html', - serverHasInternetConnection: true, + serverHasInternetConnectionProblems: false, isMemcacheConfigured: true, forwardedForHeadersWorking: true, isCorrectMemcachedPHPModuleInstalled: true, @@ -902,7 +902,7 @@ describe('OC.SetupChecks tests', function() { suggestedOverwriteCliURL: '', isRandomnessSecure: true, securityDocs: 'https://docs.owncloud.org/myDocs.html', - serverHasInternetConnection: true, + serverHasInternetConnectionProblems: false, isMemcacheConfigured: true, forwardedForHeadersWorking: true, isCorrectMemcachedPHPModuleInstalled: true, @@ -951,7 +951,7 @@ describe('OC.SetupChecks tests', function() { suggestedOverwriteCliURL: '', isRandomnessSecure: true, securityDocs: 'https://docs.owncloud.org/myDocs.html', - serverHasInternetConnection: true, + serverHasInternetConnectionProblems: false, isMemcacheConfigured: true, forwardedForHeadersWorking: true, isCorrectMemcachedPHPModuleInstalled: true, @@ -1418,7 +1418,7 @@ describe('OC.SetupChecks tests', function() { { 'Content-Type': 'application/json' }, - JSON.stringify({data: {serverHasInternetConnection: false}}) + JSON.stringify({data: {serverHasInternetConnectionProblems: true}}) ); async.done(function( data, s, x ){ expect(data).toEqual([{ |