avoid leakage of IOC username/password to logcat/debuglog for some protocols
This commit is contained in:
@@ -168,7 +168,9 @@ namespace keepass2android.Io
|
||||
if (!IsCached(ioc))
|
||||
throw;
|
||||
|
||||
Kp2aLog.Log("couldn't open from remote " + ioc.Path);
|
||||
#if DEBUG
|
||||
Kp2aLog.Log("couldn't open from remote " + ioc.Path);
|
||||
#endif
|
||||
Kp2aLog.Log(ex.ToString());
|
||||
|
||||
_cacheSupervisor.CouldntOpenFromRemote(ioc, ex);
|
||||
|
||||
@@ -233,7 +233,6 @@ namespace keepass2android.Io
|
||||
|
||||
public FileDescription GetFileDescription(IOConnectionInfo ioc)
|
||||
{
|
||||
Kp2aLog.Log("GetFileDescription "+ioc.Path);
|
||||
try
|
||||
{
|
||||
return ConvertToFileDescription(Jfs.GetFileEntry(IocToPath(ioc)));
|
||||
@@ -302,7 +301,9 @@ namespace keepass2android.Io
|
||||
|
||||
public void OnResume(IFileStorageSetupActivity activity)
|
||||
{
|
||||
#if DEBUG
|
||||
Kp2aLog.Log("JFS/OnResume Ioc.Path=" +activity.Ioc.Path+". Path="+((IJavaFileStorageFileStorageSetupActivity)activity).Path);
|
||||
#endif
|
||||
_jfs.OnResume(((IJavaFileStorageFileStorageSetupActivity) activity));
|
||||
}
|
||||
|
||||
@@ -366,4 +367,4 @@ namespace keepass2android.Io
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ namespace keepass2android.fileselect
|
||||
Ioc = new IOConnectionInfo();
|
||||
PasswordActivity.SetIoConnectionFromIntent(Ioc, Intent);
|
||||
|
||||
Kp2aLog.Log("FSSA.OnCreate with " + Ioc.Path);
|
||||
Kp2aLog.Log("FSSA.OnCreate");
|
||||
|
||||
ProcessName = Intent.GetStringExtra(FileStorageSetupDefs.ExtraProcessName);
|
||||
IsForSave = Intent.GetBooleanExtra(FileStorageSetupDefs.ExtraIsForSave, false);
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace keepass2android
|
||||
|
||||
public void StartSelectFileProcess(IOConnectionInfo ioc, bool isForSave, int requestCode)
|
||||
{
|
||||
Kp2aLog.Log("FSSIA: StartSelectFileProcess "+ioc.Path);
|
||||
Kp2aLog.Log("FSSIA: StartSelectFileProcess ");
|
||||
Intent fileStorageSetupIntent = new Intent(_activity, typeof(FileStorageSetupActivity));
|
||||
fileStorageSetupIntent.PutExtra(FileStorageSetupDefs.ExtraProcessName, FileStorageSetupDefs.ProcessNameSelectfile);
|
||||
fileStorageSetupIntent.PutExtra(FileStorageSetupDefs.ExtraIsForSave, isForSave);
|
||||
|
||||
Reference in New Issue
Block a user