|
@@ -249,7 +249,8 @@ describe('OC.SetupChecks tests', function() {
|
|
appDirsWithDifferentOwner: [],
|
|
appDirsWithDifferentOwner: [],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: false
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -301,7 +302,8 @@ describe('OC.SetupChecks tests', function() {
|
|
appDirsWithDifferentOwner: [],
|
|
appDirsWithDifferentOwner: [],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: false
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -354,7 +356,8 @@ describe('OC.SetupChecks tests', function() {
|
|
appDirsWithDifferentOwner: [],
|
|
appDirsWithDifferentOwner: [],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: false
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -405,7 +408,8 @@ describe('OC.SetupChecks tests', function() {
|
|
appDirsWithDifferentOwner: [],
|
|
appDirsWithDifferentOwner: [],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: false
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -454,7 +458,8 @@ describe('OC.SetupChecks tests', function() {
|
|
appDirsWithDifferentOwner: [],
|
|
appDirsWithDifferentOwner: [],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: false
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -505,7 +510,8 @@ describe('OC.SetupChecks tests', function() {
|
|
],
|
|
],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: false
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -554,7 +560,8 @@ describe('OC.SetupChecks tests', function() {
|
|
appDirsWithDifferentOwner: [],
|
|
appDirsWithDifferentOwner: [],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: false
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -603,7 +610,8 @@ describe('OC.SetupChecks tests', function() {
|
|
appDirsWithDifferentOwner: [],
|
|
appDirsWithDifferentOwner: [],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: false
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -652,7 +660,8 @@ describe('OC.SetupChecks tests', function() {
|
|
appDirsWithDifferentOwner: [],
|
|
appDirsWithDifferentOwner: [],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: false
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -722,7 +731,8 @@ describe('OC.SetupChecks tests', function() {
|
|
appDirsWithDifferentOwner: [],
|
|
appDirsWithDifferentOwner: [],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: false
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -772,7 +782,8 @@ describe('OC.SetupChecks tests', function() {
|
|
appDirsWithDifferentOwner: [],
|
|
appDirsWithDifferentOwner: [],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: false
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -822,7 +833,8 @@ describe('OC.SetupChecks tests', function() {
|
|
appDirsWithDifferentOwner: [],
|
|
appDirsWithDifferentOwner: [],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: false
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -872,7 +884,8 @@ describe('OC.SetupChecks tests', function() {
|
|
appDirsWithDifferentOwner: [],
|
|
appDirsWithDifferentOwner: [],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: false
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -921,7 +934,8 @@ describe('OC.SetupChecks tests', function() {
|
|
appDirsWithDifferentOwner: [],
|
|
appDirsWithDifferentOwner: [],
|
|
recommendedPHPModules: [],
|
|
recommendedPHPModules: [],
|
|
pendingBigIntConversionColumns: [],
|
|
pendingBigIntConversionColumns: [],
|
|
- isMysqlUsedWithoutUTF8MB4: true
|
|
|
|
|
|
+ isMysqlUsedWithoutUTF8MB4: true,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: true
|
|
})
|
|
})
|
|
);
|
|
);
|
|
|
|
|
|
@@ -933,6 +947,56 @@ describe('OC.SetupChecks tests', function() {
|
|
done();
|
|
done();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ it('should return an error if there is not enough free space in the temp directory', 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: false,
|
|
|
|
+ isEnoughTempSpaceAvailableIfS3PrimaryStorageIsUsed: false
|
|
|
|
+ })
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ async.done(function( data, s, x ){
|
|
|
|
+ expect(data).toEqual([{
|
|
|
|
+ msg: 'This instance uses an S3 based object store as primary storage. The uploaded files are stored temporarily on the server and thus it is recommended to have 50 GB of free space available in the temp directory of PHP. Check the logs for full details about the path and the available space. To improve this please change the temporary directory in the php.ini or make more space available in that path.',
|
|
|
|
+ type: OC.SetupChecks.MESSAGE_TYPE_WARNING
|
|
|
|
+ }]);
|
|
|
|
+ done();
|
|
|
|
+ });
|
|
|
|
+ });
|
|
});
|
|
});
|
|
|
|
|
|
describe('checkGeneric', function() {
|
|
describe('checkGeneric', function() {
|