|
|
@@ -249,7 +249,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -301,7 +302,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -354,7 +356,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -405,7 +408,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -454,7 +458,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -505,7 +510,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -554,7 +560,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -603,7 +610,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -652,7 +660,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -722,7 +731,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -772,7 +782,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -822,7 +833,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -872,7 +884,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -921,7 +934,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: true, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
@@ -934,6 +948,57 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
it('should return an error if the protocol is https but the server generates http links', function(done) { |
|
|
|
var async = OC.SetupChecks.checkSetup(); |
|
|
|
|
|
|
|
suite.server.requests[0].respond( |
|
|
|
200, |
|
|
|
{ |
|
|
|
'Content-Type': 'application/json', |
|
|
|
}, |
|
|
|
JSON.stringify({ |
|
|
|
hasFileinfoInstalled: true, |
|
|
|
isGetenvServerWorking: true, |
|
|
|
isReadOnlyConfig: false, |
|
|
|
hasWorkingFileLocking: true, |
|
|
|
hasValidTransactionIsolationLevel: true, |
|
|
|
suggestedOverwriteCliURL: '', |
|
|
|
isRandomnessSecure: true, |
|
|
|
securityDocs: 'https://docs.owncloud.org/myDocs.html', |
|
|
|
serverHasInternetConnectionProblems: false, |
|
|
|
isMemcacheConfigured: true, |
|
|
|
forwardedForHeadersWorking: true, |
|
|
|
isCorrectMemcachedPHPModuleInstalled: true, |
|
|
|
hasPassedCodeIntegrityCheck: true, |
|
|
|
isOpcacheProperlySetup: true, |
|
|
|
hasOpcacheLoaded: true, |
|
|
|
isSettimelimitAvailable: true, |
|
|
|
hasFreeTypeSupport: true, |
|
|
|
missingIndexes: [], |
|
|
|
cronErrors: [], |
|
|
|
cronInfo: { |
|
|
|
diffInSeconds: 0 |
|
|
|
}, |
|
|
|
isMemoryLimitSufficient: true, |
|
|
|
appDirsWithDifferentOwner: [], |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true, |
|
|
|
reverseProxyDocs: 'https://docs.nextcloud.com/foo/bar.html', |
|
|
|
reverseProxyGeneratedURL: 'http://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
|
async.done(function( data, s, x ){ |
|
|
|
expect(data).toEqual([{ |
|
|
|
msg: 'You are accessing your instance over a secure connection, however your instance is generating insecure URLs. This most likely means that you are behind a reverse proxy and the overwrite config variables are not set correctly. Please read <a href="https://docs.nextcloud.com/foo/bar.html" rel="noreferrer noopener">the documentation page about this</a>.', |
|
|
|
type: OC.SetupChecks.MESSAGE_TYPE_WARNING |
|
|
|
}]); |
|
|
|
done(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
it('should return an error if there is not enough free space in the temp directory', function(done) { |
|
|
|
var async = OC.SetupChecks.checkSetup(); |
|
|
|
|
|
|
@@ -970,7 +1035,8 @@ describe('OC.SetupChecks tests', function() { |
|
|
|
recommendedPHPModules: [], |
|
|
|
pendingBigIntConversionColumns: [], |
|
|
|
isMysqlUsedWithoutUTF8MB4: false, |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: false |
|
|
|
isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: false, |
|
|
|
reverseProxyGeneratedURL: 'https://server', |
|
|
|
}) |
|
|
|
); |
|
|
|
|