@@ -958,7 +959,7 @@ public final class ConfigurableServiceConnection implements ServiceConnection {
}
/**
* Initialize the maximum upload limit.
* Initialise the maximum upload limit.
*
* <p><em><b>Note:</b>
* The default upload limit is still fetched in this function, but only
...
...
@@ -983,8 +984,10 @@ public final class ConfigurableServiceConnection implements ServiceConnection {
/* If none is provided, try to use the deprecated default limit
* (just for backward compatibility). */
elseif(defaultDBLimit!=null)
elseif(defaultDBLimit!=null){
logger.warning("The property `"+KEY_DEFAULT_UPLOAD_LIMIT+"` has been deprecated! This value is currently used anyway, but not forever. You should now use only `"+KEY_MAX_UPLOAD_LIMIT+"` instead. (comment or delete the property `"+KEY_DEFAULT_UPLOAD_LIMIT+"` from your configuration file to remove this WARNING)");
// temporary backward compatibility with the deprecated property name:
if(propValue==null){
propName=KEY_UPLOAD_MAX_FILE_SIZE;
propValue=getProperty(tapConfig,propName);
if(propValue!=null)
logger.warning("The property `"+KEY_UPLOAD_MAX_FILE_SIZE+"` has been replaced by `"+KEY_UPLOAD_MAX_REQUEST_SIZE+"`! This value is currently used anyway, but not forever. You should rename it into `"+KEY_UPLOAD_MAX_REQUEST_SIZE+"`.");
thrownewTAPException("The maximum upload request size "+KEY_UPLOAD_MAX_REQUEST_SIZE+" (here: "+propValue+") can not be expressed in a unit different from bytes (B, kB, MB, GB)!");
thrownewTAPException("The maximum upload request size "+propName+" (here: "+propValue+") can not be expressed in a unit different from bytes (B, kB, MB, GB)!");