Hi,

 

I think there's a problem in UsedSpace for Admin Tools Application.

If we change the default values for "xwiki.db" and "xwiki.db.prefix"
parameters (in xwiki.cfg), the code of "showSpaceUsed" procedure doesn't
work :

 

def showSpaceUsed(message, table, wiki) {

 def mwikiquery = (wiki=="") ? "" : "AND TABLE_SCHEMA = '${wiki}'"

 def query = (table=="") ? "SELECT SUM(DATA_LENGTH)/1024/1024 as 'space'
FROM INFORMATION_SCHEMA.TABLES  WHERE 1=1 ${mwikiquery}" : "SELECT
SUM(DATA_LENGTH)/1024/1024 as 'space' FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME='${table}' ${mwikiquery}"

 

For example with "xwiki.db=manager" and "xwiki.db.prefix=xwiki_" :

 

My table is "xwiki_manager" and not "xwiki".

 

As result :

 

Wiki xwiki

o    Total Space used:  ? (No signature of method: static
java.lang.Math.floor() is applicable for argument types:
(java.lang.String) values: []
Possible solutions: floor(double), log(double), find(), acos(double),
cos(double), cosh(double)

o    Attachment Space used:  ? (No signature of method: static
java.lang.Math.floor() is applicable for argument types:
(java.lang.String) values: []
Possible solutions: floor(double), log(double), find(), acos(double),
cos(double), cosh(double)

o    Attachment History Space used:  ? (No signature of method: static
java.lang.Math.floor() is applicable for argument types:
(java.lang.String) values: []
Possible solutions: floor(double), log(double), find(), acos(double),
cos(double), cosh(double)

o    Attachment Recycle bin Space used:  ? (No signature of method:
static java.lang.Math.floor() is applicable for argument types:
(java.lang.String) values: []
Possible solutions: floor(double), log(double), find(), acos(double),
cos(double), cosh(double)

o    History Space used:  ? (No signature of method: static
java.lang.Math.floor() is applicable for argument types:
(java.lang.String) values: []
Possible solutions: floor(double), log(double), find(), acos(double),
cos(double), cosh(double)

o    Recycle bin Space used:  ? (No signature of method: static
java.lang.Math.floor() is applicable for argument types:
(java.lang.String) values: []
Possible solutions: floor(double), log(double), find(), acos(double),
cos(double), cosh(double)

o    Other Space used 0.0MB

 

 

Best regards,

 

Nicolas

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to