|
@@ -248,7 +248,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
isMemoryLimitSufficient: true,
|
|
|
appDirsWithDifferentOwner: [],
|
|
|
recommendedPHPModules: [],
|
|
|
- pendingBigIntConversionColumns: []
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -299,7 +300,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
isMemoryLimitSufficient: true,
|
|
|
appDirsWithDifferentOwner: [],
|
|
|
recommendedPHPModules: [],
|
|
|
- pendingBigIntConversionColumns: []
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -351,7 +353,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
isMemoryLimitSufficient: true,
|
|
|
appDirsWithDifferentOwner: [],
|
|
|
recommendedPHPModules: [],
|
|
|
- pendingBigIntConversionColumns: []
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -401,7 +404,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
isMemoryLimitSufficient: true,
|
|
|
appDirsWithDifferentOwner: [],
|
|
|
recommendedPHPModules: [],
|
|
|
- pendingBigIntConversionColumns: []
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -449,7 +453,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
isMemoryLimitSufficient: true,
|
|
|
appDirsWithDifferentOwner: [],
|
|
|
recommendedPHPModules: [],
|
|
|
- pendingBigIntConversionColumns: []
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -499,7 +504,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
'/some/path'
|
|
|
],
|
|
|
recommendedPHPModules: [],
|
|
|
- pendingBigIntConversionColumns: []
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -547,7 +553,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
isMemoryLimitSufficient: true,
|
|
|
appDirsWithDifferentOwner: [],
|
|
|
recommendedPHPModules: [],
|
|
|
- pendingBigIntConversionColumns: []
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -595,7 +602,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
isMemoryLimitSufficient: true,
|
|
|
appDirsWithDifferentOwner: [],
|
|
|
recommendedPHPModules: [],
|
|
|
- pendingBigIntConversionColumns: []
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -643,7 +651,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
isMemoryLimitSufficient: false,
|
|
|
appDirsWithDifferentOwner: [],
|
|
|
recommendedPHPModules: [],
|
|
|
- pendingBigIntConversionColumns: []
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -712,7 +721,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
isMemoryLimitSufficient: true,
|
|
|
appDirsWithDifferentOwner: [],
|
|
|
recommendedPHPModules: [],
|
|
|
- pendingBigIntConversionColumns: []
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -761,7 +771,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
isMemoryLimitSufficient: true,
|
|
|
appDirsWithDifferentOwner: [],
|
|
|
recommendedPHPModules: [],
|
|
|
- pendingBigIntConversionColumns: []
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -810,7 +821,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
isMemoryLimitSufficient: true,
|
|
|
appDirsWithDifferentOwner: [],
|
|
|
recommendedPHPModules: [],
|
|
|
- pendingBigIntConversionColumns: []
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -859,7 +871,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
isMemoryLimitSufficient: true,
|
|
|
appDirsWithDifferentOwner: [],
|
|
|
recommendedPHPModules: [],
|
|
|
- pendingBigIntConversionColumns: []
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -871,6 +884,55 @@ describe('OC.SetupChecks tests', function() {
|
|
|
done();
|
|
|
});
|
|
|
});
|
|
|
+
|
|
|
+ it('should return an error if the php version is no longer supported', 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',
|
|
|
+ serverHasInternetConnection: true,
|
|
|
+ isMemcacheConfigured: true,
|
|
|
+ forwardedForHeadersWorking: true,
|
|
|
+ isCorrectMemcachedPHPModuleInstalled: true,
|
|
|
+ hasPassedCodeIntegrityCheck: true,
|
|
|
+ isOpcacheProperlySetup: true,
|
|
|
+ hasOpcacheLoaded: true,
|
|
|
+ isSettimelimitAvailable: true,
|
|
|
+ hasFreeTypeSupport: true,
|
|
|
+ missingIndexes: [],
|
|
|
+ outdatedCaches: [],
|
|
|
+ cronErrors: [],
|
|
|
+ cronInfo: {
|
|
|
+ diffInSeconds: 0
|
|
|
+ },
|
|
|
+ isMemoryLimitSufficient: true,
|
|
|
+ appDirsWithDifferentOwner: [],
|
|
|
+ recommendedPHPModules: [],
|
|
|
+ pendingBigIntConversionColumns: [],
|
|
|
+ isMysqlUsedWithoutUTF8MB4: true
|
|
|
+ })
|
|
|
+ );
|
|
|
+
|
|
|
+ async.done(function( data, s, x ){
|
|
|
+ expect(data).toEqual([{
|
|
|
+ msg: 'MySQL is used as database but does not support 4-byte characters. To be able to handle 4-byte characters (like emojis) without issues in filenames or comments for example it is recommended to enable the 4-byte support in MySQL. For further details read <a href="https://docs.example.org/admin-mysql-utf8mb4" rel="noreferrer noopener">the documentation page about this</a>.',
|
|
|
+ type: OC.SetupChecks.MESSAGE_TYPE_WARNING
|
|
|
+ }]);
|
|
|
+ done();
|
|
|
+ });
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
describe('checkGeneric', function() {
|