-->\r
<manifest package="eu.alefzero.owncloud"\r
android:versionCode="1"\r
- android:versionName="0.1.183B" xmlns:android="http://schemas.android.com/apk/res/android">\r
+ android:versionName="0.1.184B" xmlns:android="http://schemas.android.com/apk/res/android">\r
\r
<uses-permission android:name="android.permission.GET_ACCOUNTS" />\r
<uses-permission android:name="android.permission.USE_CREDENTIALS" />\r
\r
public void uploadFiles() {\r
WebdavClient wdc = new WebdavClient(mAccount, getApplicationContext());\r
+ wdc.allowSelfsignedCertificates();\r
\r
// create last directory in path if nessesary\r
if (mCreateDir) {\r
@Override
public String toString() {
- String asString = "[id=%s, name=%s, mime=%s, downloaded=%s, local=%s, remote=%s]";
- asString = String.format(asString, new Long(mId), getFileName(), mMimeType, isDown(), mLocalPath, mRemotePath);
+ String asString = "[id=%s, name=%s, mime=%s, downloaded=%s, local=%s, remote=%s, parentId=%s, keepInSinc=%s]";
+ asString = String.format(asString, new Long(mId), getFileName(), mMimeType, isDown(), mLocalPath, mRemotePath, new Long(mParentId), new Boolean(mKeepInSync));
return asString;
}
mNotificationManager.notify(42, mNotification);
WebdavClient wc = new WebdavClient(mAccount, getApplicationContext());
+ wc.allowSelfsignedCertificates();
wc.setDataTransferProgressListener(this);
for (int i = 0; i < mLocalPaths.length; ++i) {
throw new UnknownHostException();\r
}\r
mClient = new WebdavClient(account, getContext());\r
+ mClient.allowSelfsignedCertificates();\r
// mHost = mClient.getTargetHost();\r
}\r
\r
\r
private void fetchData(String uri, SyncResult syncResult, long parentId) {\r
try {\r
- //Log.v(TAG, "syncing: fetching " + uri);\r
+ Log.d(TAG, "fetching " + uri);\r
\r
// remote request \r
PropFindMethod query = new PropFindMethod(uri);\r
file.setKeepInSync(getStorageManager().getFileByPath(file.getRemotePath()).keepInSync());\r
\r
//getStorageManager().saveFile(file);\r
+ Log.v(TAG, "adding file: " + file);\r
updatedFiles.add(file);\r
if (parentId == 0)\r
parentId = file.getFileId();\r
for (int i=0; i < files.size(); ) {\r
file = files.get(i);\r
if (file.getLastSyncDate() != mCurrentSyncTime) {\r
+ Log.v(TAG, "removing file: " + file);\r
getStorageManager().removeFile(file);\r
files.remove(i);\r
} else {\r
fetchData(getUri().toString() + WebdavUtils.encodePath(newFile.getRemotePath()), syncResult, newFile.getFileId());\r
}\r
}\r
- if (mCancellation) Log.d(TAG, "Leaving " + uri + " because cancellation request");\r
+ if (mCancellation) Log.d(TAG, "Leaving " + uri + " because cancelation request");\r
\r
/* Commented code for ugly performance tests\r
mResponseDelays[mDelaysIndex] = responseDelay;\r
\r
public void run() {\r
WebdavClient wc = new WebdavClient(mAccount, getSherlockActivity().getApplicationContext());\r
+ wc.allowSelfsignedCertificates();\r
AccountManager am = AccountManager.get(getSherlockActivity());\r
String baseUrl = am.getUserData(mAccount, AccountAuthenticator.KEY_OC_BASE_URL);\r
OwnCloudVersion ocv = new OwnCloudVersion(am.getUserData(mAccount, AccountAuthenticator.KEY_OC_VERSION));\r
\r
public void run() {\r
WebdavClient wc = new WebdavClient(mAccount, getSherlockActivity().getApplicationContext());\r
+ wc.allowSelfsignedCertificates();\r
AccountManager am = AccountManager.get(getSherlockActivity());\r
String baseUrl = am.getUserData(mAccount, AccountAuthenticator.KEY_OC_BASE_URL);\r
OwnCloudVersion ocv = new OwnCloudVersion(am.getUserData(mAccount, AccountAuthenticator.KEY_OC_VERSION));\r