|
@@ -171,7 +171,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
cronInfo: {
|
|
|
diffInSeconds: 0
|
|
|
},
|
|
|
- isMemoryLimitSufficient: true
|
|
|
+ isMemoryLimitSufficient: true,
|
|
|
+ appDirsWithDifferentOwner: []
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -219,7 +220,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
cronInfo: {
|
|
|
diffInSeconds: 0
|
|
|
},
|
|
|
- isMemoryLimitSufficient: true
|
|
|
+ isMemoryLimitSufficient: true,
|
|
|
+ appDirsWithDifferentOwner: []
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -268,7 +270,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
cronInfo: {
|
|
|
diffInSeconds: 0
|
|
|
},
|
|
|
- isMemoryLimitSufficient: true
|
|
|
+ isMemoryLimitSufficient: true,
|
|
|
+ appDirsWithDifferentOwner: []
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -315,7 +318,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
cronInfo: {
|
|
|
diffInSeconds: 0
|
|
|
},
|
|
|
- isMemoryLimitSufficient: true
|
|
|
+ isMemoryLimitSufficient: true,
|
|
|
+ appDirsWithDifferentOwner: []
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -360,7 +364,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
cronInfo: {
|
|
|
diffInSeconds: 0
|
|
|
},
|
|
|
- isMemoryLimitSufficient: true
|
|
|
+ isMemoryLimitSufficient: true,
|
|
|
+ appDirsWithDifferentOwner: []
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -373,6 +378,54 @@ describe('OC.SetupChecks tests', function() {
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ it('should return a warning if there are app directories with wrong permissions', 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: '',
|
|
|
+ isUrandomAvailable: 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: [
|
|
|
+ '/some/path'
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ );
|
|
|
+
|
|
|
+ async.done(function( data, s, x ){
|
|
|
+ expect(data).toEqual([{
|
|
|
+ msg: 'Some app directories are owned by a different user than the web server one. This may be the case if apps have been installed manually. Check the permissions of the following app directories:<ul><li>/some/path</li></ul>',
|
|
|
+ type: OC.SetupChecks.MESSAGE_TYPE_WARNING
|
|
|
+ }]);
|
|
|
+ done();
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
it('should return an error if the forwarded for headers are not working', function(done) {
|
|
|
var async = OC.SetupChecks.checkSetup();
|
|
|
|
|
@@ -405,7 +458,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
cronInfo: {
|
|
|
diffInSeconds: 0
|
|
|
},
|
|
|
- isMemoryLimitSufficient: true
|
|
|
+ isMemoryLimitSufficient: true,
|
|
|
+ appDirsWithDifferentOwner: []
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -450,7 +504,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
cronInfo: {
|
|
|
diffInSeconds: 0
|
|
|
},
|
|
|
- isMemoryLimitSufficient: true
|
|
|
+ isMemoryLimitSufficient: true,
|
|
|
+ appDirsWithDifferentOwner: []
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -495,6 +550,7 @@ describe('OC.SetupChecks tests', function() {
|
|
|
cronInfo: {
|
|
|
diffInSeconds: 0
|
|
|
},
|
|
|
+ appDirsWithDifferentOwner: [],
|
|
|
isMemoryLimitSufficient: false
|
|
|
})
|
|
|
);
|
|
@@ -561,7 +617,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
cronInfo: {
|
|
|
diffInSeconds: 0
|
|
|
},
|
|
|
- isMemoryLimitSufficient: true
|
|
|
+ isMemoryLimitSufficient: true,
|
|
|
+ appDirsWithDifferentOwner: []
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -607,7 +664,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
cronInfo: {
|
|
|
diffInSeconds: 0
|
|
|
},
|
|
|
- isMemoryLimitSufficient: true
|
|
|
+ isMemoryLimitSufficient: true,
|
|
|
+ appDirsWithDifferentOwner: []
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -653,7 +711,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
cronInfo: {
|
|
|
diffInSeconds: 0
|
|
|
},
|
|
|
- isMemoryLimitSufficient: true
|
|
|
+ isMemoryLimitSufficient: true,
|
|
|
+ appDirsWithDifferentOwner: []
|
|
|
})
|
|
|
);
|
|
|
|
|
@@ -699,7 +758,8 @@ describe('OC.SetupChecks tests', function() {
|
|
|
cronInfo: {
|
|
|
diffInSeconds: 0
|
|
|
},
|
|
|
- isMemoryLimitSufficient: true
|
|
|
+ isMemoryLimitSufficient: true,
|
|
|
+ appDirsWithDifferentOwner: []
|
|
|
})
|
|
|
);
|
|
|
|