Coder Social home page Coder Social logo

koenzomers / keepassonedrivesync Goto Github PK

View Code? Open in Web Editor NEW
378.0 378.0 43.0 44.23 MB

Allows syncing of KeePass databases stored on OneDrive Personal, OneDrive for Business or SharePoint

License: Eclipse Public License 1.0

C# 99.85% Batchfile 0.15%
keepass onedrive onedrive-for-business sharepoint sync

keepassonedrivesync's People

Contributors

esvandiary avatar jfurtner avatar koenzomers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

keepassonedrivesync's Issues

Clarify License

Hi Koen,

I did not find any license information in this repository.
Could you please clarify how your code is licensed?
Please add proper licensing information to your project, e.g. a LICENSE.md, headers in code, etc..

Thanks,
Daniel

Unhandled exception

I am unclear as to syntax of "Location" on OneDrive where the file should be kept. I tried just MyFolder and \MyFolder, but I am getting this exception.
Kurt Schmidt

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at KoenZomersKeePassOneDriveSync.KeePassDatabase.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KoenZomersKeePassOneDriveSync.KoenZomersKeePassOneDriveSyncExt.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.b__4(Object state)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

KeePass
Assembly Version: 2.30.0.15916
Win32 Version: 2.30.0.0

CodeBase: file:///C:/Program%20Files/KeePass%20Password%20Safe%202/KeePass.exe

System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34270 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

KeeOtp
Assembly Version: 1.3.1.0
Win32 Version: 1.3.1

CodeBase: file:///C:/Program%20Files/KeePass%20Password%20Safe%202/KeePlugini/KeeOpt-1.3.1-Full/KeeOtp.dll

KPDataSave
Assembly Version: 0.0.4.0
Win32 Version: 0.0.4.0

CodeBase: file:///C:/Program%20Files/KeePass%20Password%20Safe%202/KeePlugini/KPDataSave/KPDataSave.dll

StrengthReport
Assembly Version: 2.0.6.10301
Win32 Version: 0.1.0.0

CodeBase: file:///C:/Program%20Files/KeePass%20Password%20Safe%202/KeePlugini/PasswordStrengthReport/StrengthReport.dll

CertKeyProviderPlugin
Assembly Version: 2.0.8.3
Win32 Version: 2.0.8.3

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/J32VwfPGi33uFXtHNFY0/CertKeyProviderPlugin.dll

DataBaseBackup
Assembly Version: 2.0.8.6
Win32 Version: 2.0.8.6

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/kO3txUlZ2sBfmkEdw71p/DataBaseBackup.dll

DataBaseReorder
Assembly Version: 2.0.8.0
Win32 Version: 2.0.8.0

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/cmQFVSUzyRyWmsj24c0a/DataBaseReorder.dll

KeePassFaviconDownloader
Assembly Version: 2.0.9.34607
Win32 Version: 1.4.1.0

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/VPIN2E3JWATKcNKBOluf/KeePassFaviconDownloader.dll

GoogleSyncPlugin
Assembly Version: 2.1.2.0
Win32 Version: 2.1.2.0

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/4DE6DufKUPlICVkmRP6J/GoogleSyncPlugin.dll

IOProtocolExt
Assembly Version: 1.8.0.0
Win32 Version: 1.8.0.0

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/jqkKVAHaONfkjKafcDWY/IOProtocolExt.dll

ITanMaster
Assembly Version: 2.28.0.39112
Win32 Version: 2.28.0.2

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/LjjUFZJZa3Jvsq5MXmn9/ITanMaster.dll

KeeAutoExec
Assembly Version: 1.6.0.34609
Win32 Version: 1.6.0.0

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/cZNsyBlRF9UqACphyUrH/KeeAutoExec.dll

KoenZomersKeePassOneDriveSync
Assembly Version: 1.3.3.1
Win32 Version: 1.3.3.1

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/2a1MqffhqaUWTyWL0sCL/KoenZomersKeePassOneDriveSync.dll

Newtonsoft.Json
Assembly Version: 6.0.0.0
Win32 Version: 6.0.8.18111

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/2a1MqffhqaUWTyWL0sCL/Newtonsoft.Json.DLL

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

KeePassTrueCryptMount
Assembly Version: 2.1.0.34610
Win32 Version: 2.1.0.0

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/MJBrxVD1RWRVwaEibzgl/KeePassTrueCryptMount.dll

KPEnhancedListview
Assembly Version: 2.1.0.34611
Win32 Version: 0.9.1.0

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/tIz0hdXVq1B9iKx5xKxK/KPEnhancedListview.dll

pwm2keepass
Assembly Version: 2.0.9.34611
Win32 Version: 1.0.0.0

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/FPOXkTXH3QdhU7BxWv2m/pwm2keepass.dll

PronouncePwGen
Assembly Version: 1.0.3.34612
Win32 Version: 1.0.3.0

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/1dUI4kt4CB9rQz4aKIOw/PronouncePwGen.dll

KeePassReadablePassphrase
Assembly Version: 2.21.0.0
Win32 Version: 0.11.0.0

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/MdJK3OExwYWBSh1FNuGb/KeePassReadablePassphrase.dll

TitleDisplay
Assembly Version: 2.0.9.34613
Win32 Version: 1.3.0.0

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/784Ynan3UJgU35mGG6jb/TitleDisplay.dll

TrayTotpGT
Assembly Version: 2.0.0.5
Win32 Version: 2.0.0.5

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/v1mP4g5flqutbqEjZfDt/TrayTotpGT.dll

TwofishCipher
Assembly Version: 2.0.9.34615
Win32 Version: 1.3.0.0

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/5BhnjyJELxldMI4leCYr/TwofishCipher.dll

WinKee
Assembly Version: 2.28.0.39115
Win32 Version: 2.28.0.1

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/JszluzTa1xAkk5bpIq7g/WinKee.dll

System.Security
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34252 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll

KeePass.XmlSerializers
Assembly Version: 2.30.0.15916
Win32 Version: 2.30.0.15916

CodeBase: file:///C:/Program%20Files/KeePass%20Password%20Safe%202/KeePass.XmlSerializers.DLL

OtpSharp
Assembly Version: 1.0.4.0
Win32 Version: 1.0.4

CodeBase: file:///C:/Program%20Files/KeePass%20Password%20Safe%202/KeePlugini/KeeOpt-1.3.1-Full/OtpSharp.DLL

KoenZomers.OneDrive.Api
Assembly Version: 1.3.1.0
Win32 Version: 1.3.1.0

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/2a1MqffhqaUWTyWL0sCL/KoenZomers.OneDrive.Api.DLL

Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

Google.Apis.Authentication.OAuth2
Assembly Version: 1.2.4696.27633
Win32 Version: 1.2.4696.27633

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/4DE6DufKUPlICVkmRP6J/Google.Apis.Authentication.OAuth2.DLL

DotNetOpenAuth
Assembly Version: 4.0.0.11165
Win32 Version: 4.0.0.11165

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/4DE6DufKUPlICVkmRP6J/DotNetOpenAuth.DLL

Google.Apis
Assembly Version: 1.2.4696.27637
Win32 Version: 1.2.4696.27637

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/4DE6DufKUPlICVkmRP6J/Google.Apis.DLL

Google.Apis.Drive.v2
Assembly Version: 1.2.4696.27611
Win32 Version: 1.2.4696.27611

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/4DE6DufKUPlICVkmRP6J/Google.Apis.Drive.v2.DLL

System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

SMDiagnostics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll

Newtonsoft.Json.Net35
Assembly Version: 4.0.2.0
Win32 Version: 4.0.2.13801

CodeBase: file:///C:/Users/Brahms/AppData/Local/KeePass/PluginCache/4DE6DufKUPlICVkmRP6J/Newtonsoft.Json.Net35.DLL

Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0

CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll

System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34280 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll

System.ServiceModel.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Web/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll

System.ServiceModel.Internals
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll

System.ComponentModel.DataAnnotations
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34268

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll

System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

System.Net.Http
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll

RestSharpMerge_uc
Assembly Version: 102.3.0.0
Win32 Version: 0.0.4.0

CodeBase: file:///C:/Program%20Files/KeePass%20Password%20Safe%202/KeePlugini/KPDataSave/KPDataSave.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Opening the same kbdx file in different ways results in two Local Paths

When opening a kbdx file via SharePoint using the File>Open menu works successfully and creates a Local Path in OneDriveSync Options as expected.

Opening the same local file via double clicking in Windows Explorer wants to create a second Local Path in OneDriveSync Options, with just the filename and not the full path. Once opened it errors:

"Failed to sync. Please don't switch to another database before done."

It seems the entries interfere with each other.

I've enclosed a screenshot, hopefully this makes sense.

keepasssync

Use a file chooser for setting up the

Or at least check if the path is valid.


It took me three times to set it up correctly

  1. wrong path -> npe
  2. just the pass without filename -> npe
  3. it finally worked

Does not work with mono 4.6.1

This plugin does not work with mono 4.6.1 on Arch Linux
When I came to the choice for onedrive and onedrive bussiness and click on one of them, a popup window says that "Failed to connect to Onedrive: object reference not set to an instance of an object"

Request for Product Enhancement: File Picker

Any chance of there being plans to add a file picker to the plugin?

Not a huge deal as it can always be figured out and done manually as it is now. Having a file browser/picker GUI would just make it a little easier to use.

I don't often add a new machine or new KeePass database to previous machines. But, the infrequency of doing that means that it takes me a few minutes to remember the file path format, get that path, and put it into the plugin config.

relative paths

Is it possible to support relative paths for the database file? I need to move a portable copy of my keepass with its plugins inside a usb stick. Sometimes it will mount as D: but on another computer F: or E: is also possible.

Unhandled exception

Hi,
great plugin and real helpful- thanks.
The plugin works fine in a home environment. At work, network connectivity is different and I get an unhandled exception - Proxy authentication required.
Maybe you cannot work around the proxy thing, but at least the code should handle the error gracefully, I think:
image
Thanks, konfey

Handle password changes

This is more of a feature (or perhaps documentation) request: there doesn't seem to be an elegant way of handling changes to the Live account password. As far as I can tell, the only way to deal with it is to delete the connection to OneDrive and reestablish it. Ideally there would be an option to reconnect to the account, but failing that a brief explanation on the website of the appropriate steps would be helpful. Thanks.

Crashes when database already exist on OneDrive

I already have a back of the database on OneDrive. When I try to sync with KeePassOneDriveSync it crashes. I tried several times. It also crashes when I click on About.
It Crashes when I put just the directory path (KeePass\Sync).
If I add the database name to the path (KeePass\Sync\MyKeePassDatabase.kdbx). It works.
Error:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at KoenZomers.OneDrive.Api.OneDriveApi.d__76.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at KoenZomersKeePassOneDriveSync.KeePassDatabase.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KoenZomersKeePassOneDriveSync.KoenZomersKeePassOneDriveSyncExt.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1063.1 built by: NETFXREL3STAGE

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

KeePass
Assembly Version: 2.32.0.23563
Win32 Version: 2.32.0.0

CodeBase: file:///C:/MyFiles/KeePass-2.32/KeePass.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1068.2 built by: NETFXREL3STAGE

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1064.2 built by: NETFXREL3STAGE

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

KoenZomersKeePassOneDriveSync
Assembly Version: 1.4.2.0
Win32 Version: 1.4.2.0

CodeBase: file:///C:/Users/ldyer2/AppData/Local/KeePass/PluginCache/KpClqVpeXCFG8oSc69oo/KoenZomersKeePassOneDriveSync.dll

Newtonsoft.Json
Assembly Version: 7.0.0.0
Win32 Version: 7.0.1.18622

CodeBase: file:///C:/Users/ldyer2/AppData/Local/KeePass/PluginCache/KpClqVpeXCFG8oSc69oo/Newtonsoft.Json.DLL

System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

KPEnhancedEntryView
Assembly Version: 2.28.0.0
Win32 Version: 1.4.0.0

CodeBase: file:///C:/Users/ldyer2/AppData/Local/KeePass/PluginCache/159bHgXBkDFi30MbTBNf/KPEnhancedEntryView.dll

ObjectListView
Assembly Version: 2.7.0.15503
Win32 Version: 2.7.0.0

CodeBase: file:///C:/Users/ldyer2/AppData/Local/KeePass/PluginCache/159bHgXBkDFi30MbTBNf/ObjectListView.DLL

KeePass.XmlSerializers
Assembly Version: 2.32.0.23563
Win32 Version: 2.32.0.23563

CodeBase: file:///C:/MyFiles/KeePass-2.32/KeePass.XmlSerializers.DLL

System.Security
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll

KoenZomers.OneDrive.Api
Assembly Version: 1.4.0.0
Win32 Version: 1.4.0.0

CodeBase: file:///C:/Users/ldyer2/AppData/Local/KeePass/PluginCache/KpClqVpeXCFG8oSc69oo/KoenZomers.OneDrive.Api.DLL

Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0

CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll

System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll

CredentialManagement
Assembly Version: 1.0.2.0
Win32 Version: 1.0.2

CodeBase: file:///C:/Users/ldyer2/AppData/Local/KeePass/PluginCache/KpClqVpeXCFG8oSc69oo/CredentialManagement.DLL

System.Net.Http
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Plugin in Portable version

Hey,
the plugin does not work correctly on portable installations.
I'm using KeePass 2.38 portable on my USB drive.
When opening the database it says "Failes to sync".

After Pressing Ctrl+S it starts sync which works.

With the regular installed version everything works as expected.

Thank you,
Lucas

OneDrive API key in source code

Your OneDrive API key is checked in in file KoenZomers.KeePass.OneDriveSync/KoenZomersKeePassOneDriveSyncExt.cs

I think you should keep you API key secret and change it ASAP.

Regards,
Daniel

Path too long

Hello

I'm using KeePass with your plugin on a usb card.
My databe file is in:
F:\Programmi_Home\KeePass2\DataBase

The first part of the path is truncated in the configuration file.
As if the generated string is too long.
{"rogrammi_Home\KeePass2\DataBase ........ rageType": 2}} </ Value>

Your plugin will not work if the database is on an SFTP path.
SFTP: // <Server Name: // / ......

Is it possible to implement this possibility?

Thank you
Sandro

OneDrive for Business token error

Hallo, OneDrive token error occured in the synchronization with OneDrive for Business. Screenshot is attached. This situation started 3 days ago, till that synchronization worked without problems. Complete reinstallation and usage portable version did not fixed this problem.
Best regards, Ludek
bugkeepasssynchroonedrvfb

OneDriveFilePickerDialog not showing 'Shared with me'

This is a feature request more than an issue.
When using OneDrive for Business to share database between users, the File picker dialog is not showing 'Shared with me' content and therefore the sharing is not possible.
The KeePassOneDriveSync FAQ suggests to use 'Add to my OneDrive' option, that is not available in OneDrive for Business and could be specific only for OneDrive Personal as the answer suggests.
The Graph API allows for browsing the shared files, but it has to be handled using the remoteItem facet.
The KoenZomers.OneDriveAPI.OneDriveGraphApi already has GetSharedWithMe() method.

SharepointOnline

Hi,

is there a way to use Sharepoint online instead of OneDrive?

Thank you in advance.

Use of NuGet packages

Maybe you could use public available NuGet packages instead of adding binary files to the repository.

System.ArgumentException: Empty path name is not legal

************* Exception Text **************
System.ArgumentException: Empty path name is not legal.
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at KeePassLib.Serialization.IOConnection.OpenWrite(IOConnectionInfo ioc)
at KeePassLib.PwDatabase.Save(IStatusLogger slLogger)
at KoenZomersKeePassOneDriveSync.KoenZomersKeePassOneDriveSyncExt.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

KeePass
Assembly Version: 2.34.0.15991
Win32 Version: 2.34.0.0

CodeBase: file:///C:/Users/user/AppData/Local/scoop/apps/keepass/2.34/KeePass.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

KeeOtp
Assembly Version: 1.3.9.0
Win32 Version: 1.3.9

CodeBase: file:///C:/Users/user/AppData/Local/scoop/apps/keepass/2.34/Plugins/dlls/KeeOtp.dll

KeeAnywhere
Assembly Version: 1.3.0.0
Win32 Version: 1.3.0.0

CodeBase: file:///C:/Users/user/AppData/Local/KeePass/PluginCache/gsLmfcsTNkrpQnQemTlW/KeeAnywhere.dll

System.Net.Http.Primitives
Assembly Version: 4.2.29.0
Win32 Version: 4.2.29.0

CodeBase: file:///C:/Users/user/AppData/Local/KeePass/PluginCache/gsLmfcsTNkrpQnQemTlW/System.Net.Http.Primitives.DLL

Newtonsoft.Json
Assembly Version: 8.0.0.0
Win32 Version: 8.0.3.19514

CodeBase: file:///C:/Users/user/AppData/Local/KeePass/PluginCache/gsLmfcsTNkrpQnQemTlW/Newtonsoft.Json.DLL

System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

System.Security
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll

KoenZomersKeePassOneDriveSync
Assembly Version: 1.7.1.0
Win32 Version: 1.7.1.0

CodeBase: file:///C:/Users/user/AppData/Local/KeePass/PluginCache/W9xHTm29ilLnImYXad2O/KoenZomersKeePassOneDriveSync.dll

KeePassBrowserImporter
Assembly Version: 1.0.2.0
Win32 Version: 1.0.2.0

CodeBase: file:///C:/Users/user/AppData/Local/KeePass/PluginCache/yINco5fJyAI4fQ8XiQYO/KeePassBrowserImporter.dll

KeePass.XmlSerializers
Assembly Version: 2.34.0.15991
Win32 Version: 2.34.0.15991

CodeBase: file:///C:/Users/user/AppData/Local/scoop/apps/keepass/2.34/KeePass.XmlSerializers.DLL

KoenZomers.OneDrive.Api
Assembly Version: 1.6.6.1
Win32 Version: 1.6.6.1

CodeBase: file:///C:/Users/user/AppData/Local/KeePass/PluginCache/W9xHTm29ilLnImYXad2O/KoenZomers.OneDrive.Api.DLL

System.Net.Http
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll

Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

OtpSharp
Assembly Version: 1.0.5.0
Win32 Version: 1.0.5.0

CodeBase: file:///C:/Users/user/AppData/Local/scoop/apps/keepass/2.34/Plugins/dlls/OtpSharp.DLL

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Choosing Key file when Syncing New Database

This is mostly an enhancement, but it would be nice to have a more streamlined option of including a key file to the initial process of adding a database hosted on OneDrive. When syncing it at first, it only asks for the .kdbx file, but then when the password prompt asks for the key file, I can't navigate to OneDrive to get the key file. Having an option to save the key file locally along with the database file would be nice.

Failed to Sync

Hi
I'm using the new v1.8.0.0 with v2.34 of KeePass on Windows 10 [Version 10.0.14393]. I'm syncing with OneDrive consumer. I'm running KeePass from a USB drive, D:, and I'm using the .dll files for the plugin as per below.

Everytime I save my database it states 'Downloading KeePass database from OneDrive' but then reports 'Failed to sync. Please don't switch to another database before done'

I have removed the OneDrive sync configuration, setup a new sync, as in

  • This KeePass database is not being synced with OneDrive. Would you like to set up a synchronization connection now? Yes, click OK
  • Choose the cloud service you wish to store the KeePass database on: OneDrive
  • Sign into my OneDrive
  • Let this app access your info? Click Yes
  • Where should KeeOneDriveSync store the OneDrive Refresh Token so it can keep your local database in sync with its equivallent on OneDrive? In the KeePass database itself, click Finish
  • Select Location: /drive/root:/USB/KeePass/filename.kdbx. Click OK

Then it states 'Database does not exist....'
Then reports 'Successfully uploaded the new KeePass database to OneDrive'

I have verified the new file is on my OneDrive. If I then save my KeePass database again I get the same issue reported above, 'Failed to sync......'

The only other KeePass plugin I have loaded is KeePassHttp v1.8.4.1

OneDriveSync plugin files and versions

FileName FileVersion


D:\KeePass\Plugins\OneDriveSync\CredentialManagement.dll 1.0.2
D:\KeePass\Plugins\OneDriveSync\KoenZomers.OneDrive.Api.dll 1.6.6.1
D:\KeePass\Plugins\OneDriveSync\KoenZomersKeePassOneDriveSync.dll 1.8.0.0
D:\KeePass\Plugins\OneDriveSync\Newtonsoft.Json.dll 8.0.3.19514

Regards
Daz

Unhandled exception when opening+syncing database on OneDrive For Business

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at KoenZomers.OneDrive.Api.OneDriveForBusinessO365Api.d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KoenZomers.OneDrive.Api.OneDriveForBusinessO365Api.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KoenZomers.OneDrive.Api.OneDriveApi.d__49.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KoenZomersKeePassOneDriveSync.OneDriveAuthenticateForm.<WebBrowser_Navigated>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2600.0 built by: NET471REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

KeePass
Assembly Version: 2.38.0.21288
Win32 Version: 2.38.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2612.0 built by: NET471REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2600.0 built by: NET471REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

KeeAgent
Assembly Version: 0.8.1.0
Win32 Version: 0.8.1.0
CodeBase: file:///C:/Users/jklos/AppData/Local/KeePass/PluginCache/5qsKoDoovis9IdKHBD6S/KeeAgent.dll

SshAgentLib
Assembly Version: 0.8.1.0
Win32 Version: 0.8.1.0
CodeBase: file:///C:/Users/jklos/AppData/Local/KeePass/PluginCache/5qsKoDoovis9IdKHBD6S/SshAgentLib.DLL

SshAgentLib.WinForms
Assembly Version: 0.8.1.0
Win32 Version: 0.8.1.0
CodeBase: file:///C:/Users/jklos/AppData/Local/KeePass/PluginCache/5qsKoDoovis9IdKHBD6S/SshAgentLib.WinForms.DLL

KoenZomersKeePassOneDriveSync
Assembly Version: 2.0.1.1
Win32 Version: 2.0.1.1
CodeBase: file:///C:/Users/jklos/AppData/Local/KeePass/PluginCache/0OYa2YMMvGuKczP0vWgA/KoenZomersKeePassOneDriveSync.dll

Newtonsoft.Json
Assembly Version: 8.0.0.0
Win32 Version: 8.0.3.19514
CodeBase: file:///C:/Users/jklos/AppData/Local/KeePass/PluginCache/0OYa2YMMvGuKczP0vWgA/Newtonsoft.Json.DLL

System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2612.0 built by: NET471REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

CredentialManagement
Assembly Version: 1.0.2.0
Win32 Version: 1.0.2
CodeBase: file:///C:/Users/jklos/AppData/Local/KeePass/PluginCache/0OYa2YMMvGuKczP0vWgA/CredentialManagement.DLL

KeePassHttp
Assembly Version: 2.34.0.0
Win32 Version: 1.8.4.2
CodeBase: file:///C:/Users/jklos/AppData/Local/KeePass/PluginCache/lhdEitf1M658B1uFQktH/KeePassHttp.dll

KeePass.XmlSerializers
Assembly Version: 2.38.0.21288
Win32 Version: 2.38.0.21288
CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.XmlSerializers.DLL

System.Security
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll

Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.7.2612.0 built by: NET471REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

BouncyCastle.Crypto
Assembly Version: 1.7.4137.9688
Win32 Version: 1.7.4137.9688
CodeBase: file:///C:/Users/jklos/AppData/Local/KeePass/PluginCache/5qsKoDoovis9IdKHBD6S/BouncyCastle.Crypto.DLL

KoenZomers.OneDrive.Api
Assembly Version: 2.1.0.1
Win32 Version: 2.1.0.1
CodeBase: file:///C:/Users/jklos/AppData/Local/KeePass/PluginCache/0OYa2YMMvGuKczP0vWgA/KoenZomers.OneDrive.Api.DLL

System.Net.Http
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll

Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll

System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Sync failure when deleting history or icons

Hello,

First of all, thanks for creating a good tool that must be a main part of the KeePass tool, but fourtunatelly you have created that function.

Well, the plugin Works as intended with two exceptions:

  • If I delete a copuple of history ítems on an entry, when the entry is replicated, all the deleted entries appear again.
  • If I cleanup not used icons, when the sync happens, all of them appear again.

Hope you have some time to check this issues and mey be put some checkbox on the configuration to determine the propper behavior.

Thanks for your good work.

Best regards,

Javier

Issue #26 "Failed to Sync"

Same Symptoms as issue #26. KeePass v2.37 with KeePassOneDriveSync v1.8.3. on Windows 10 v1703 build 15062.674. I am running KeePass portable from OneDrive but the sync will work if I have made changes to the local db. The db is opened from the local user profile, the db on OneDrive is sync with two Windows 10 machines and an Android phone, only one Windows 10 machine is having problems.

The remote server returned an error: (407) Proxy Authentication Required.

Getting this error from behind a corporate proxy.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.127.1 built by: NETFXREL3STAGE

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

KeePass
Assembly Version: 2.30.0.15916
Win32 Version: 2.30.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.93.0 built by: NETFXREL2STAGE

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

KoenZomersKeePassOneDriveSync
Assembly Version: 1.3.3.1
Win32 Version: 1.3.3.1

CodeBase: file:///C:/Users/09155112/AppData/Local/KeePass/PluginCache/feXsTTBK3YjWnapjFROG/KoenZomersKeePassOneDriveSync.dll

Newtonsoft.Json
Assembly Version: 6.0.0.0
Win32 Version: 6.0.8.18111

CodeBase: file:///C:/Users/09155112/AppData/Local/KeePass/PluginCache/feXsTTBK3YjWnapjFROG/Newtonsoft.Json.DLL

System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.6.127.1 built by: NETFXREL3STAGE

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

KeePassRPC
Assembly Version: 2.0.15.18184
Win32 Version: 1.5.4.0

CodeBase: file:///C:/Users/09155112/AppData/Local/KeePass/PluginCache/1BUmVnZrQEad9Zn1Wwon/KeePassRPC.dll

Fleck2
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0

CodeBase: file:///C:/Users/09155112/AppData/Local/KeePass/PluginCache/1BUmVnZrQEad9Zn1Wwon/Fleck2.DLL

DomainPublicSuffix
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0

CodeBase: file:///C:/Users/09155112/AppData/Local/KeePass/PluginCache/1BUmVnZrQEad9Zn1Wwon/DomainPublicSuffix.DLL

Jayrock
Assembly Version: 0.9.12915.0
Win32 Version: 0.9.11214.1056

CodeBase: file:///C:/Users/09155112/AppData/Local/KeePass/PluginCache/1BUmVnZrQEad9Zn1Wwon/Jayrock.DLL

KeePassRPC.Mono.Security
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0

CodeBase: file:///C:/Users/09155112/AppData/Local/KeePass/PluginCache/1BUmVnZrQEad9Zn1Wwon/KeePassRPC.Mono.Security.DLL

KeePass.XmlSerializers
Assembly Version: 2.30.0.15916
Win32 Version: 2.30.0.15916

CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.XmlSerializers.DLL

System.Security
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll

Jayrock.Json
Assembly Version: 0.9.12915.0
Win32 Version: 0.9.13422.2206

CodeBase: file:///C:/Users/09155112/AppData/Local/KeePass/PluginCache/1BUmVnZrQEad9Zn1Wwon/Jayrock.Json.DLL

Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

KoenZomers.OneDrive.Api
Assembly Version: 1.3.1.0
Win32 Version: 1.3.1.0

CodeBase: file:///C:/Users/09155112/AppData/Local/KeePass/PluginCache/feXsTTBK3YjWnapjFROG/KoenZomers.OneDrive.Api.DLL

Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0

CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll

System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.6.114.0 built by: NETFXREL3STAGE

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll

System.Net.Http
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2

CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Keys history cannot be deleted - sync restores it

Hi Koen,
I have installed your app and find a problem in synchronizing the history of the keys.
When I delete the history and synchronize from the local to the master database, I get all historical items restored again. So syncing upward to the cloud does not work for the history.
Can you confirm this behavior?

NullReferenceException after opening a database

Hi,
I encountered NullReference exception when opening database that is in OneDrive. The database is already connected to OneDrive.
I have actually two Keepass databases (work and personal), both connected to OneDrive, but each to different Live account. This exception happens only with one of the files (opened alone).
I have upgraded to version 1.6 but still this is happening.
Sorry for the stack trace being in Czech :/

System.NullReferenceException: Odkaz na objekt není nastaven na instanci objektu.
v KoenZomers.OneDrive.Api.OneDriveApi.d__86.MoveNext()
--- Konec trasování zásobníku z předchozího místa, ze kterého byla vyvolána výjimka ---
v System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
v System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
v System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
v KoenZomersKeePassOneDriveSync.KeePassDatabase.d__17.MoveNext()
--- Konec trasování zásobníku z předchozího místa, ze kterého byla vyvolána výjimka ---
v System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
v System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
v KoenZomersKeePassOneDriveSync.KoenZomersKeePassOneDriveSyncExt.d__7.MoveNext()
--- Konec trasování zásobníku z předchozího místa, ze kterého byla vyvolána výjimka ---
v System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)

Loaded assemblies

(only excerpt with the most important ones; ask for complete list if needed)

mscorlib
Verze sestavení: 4.0.0.0
Verze Win32: 4.6.1080.0 built by: NETFXREL3STAGE
Základ kódu (CodeBase): file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

KeePass
Verze sestavení: 2.32.0.23563
Verze Win32: 2.32.0.0
Základ kódu (CodeBase): file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.exe

System.Windows.Forms
Verze sestavení: 4.0.0.0
Verze Win32: 4.6.1038.0 built by: NETFXREL2
Základ kódu (CodeBase): file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

KoenZomers.OneDrive.Api
Verze sestavení: 1.6.4.0
Verze Win32: 1.6.4.0
Základ kódu (CodeBase): file:///C:/Users/DELL/AppData/Local/KeePass/PluginCache/UAxlwXTCmLysUQa1YZnp/KoenZomers.OneDrive.Api.DLL

Syncing with wrong database

When using KeePass with multiple databases (such as personal and work), if you save current db and immediately switch to another database, synchronization is done between the local version of one and cloud version of the other one! In my case (dbs have different passwords) this only results in error prompt (composite key is invalid), but in case both databases have identical passwords, this could potentially result in synchronization and merge of the 2 dbs.

KeePassOneDriveSync caused System.Net.Sockets.SocketException (0x80004005):

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.Net.Sockets.SocketException (0x80004005): 远程主机强迫关闭了一个现有的连接。
在 System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
在 System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)

************** 已加载的程序集 **************
mscorlib
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

KeePass
程序集版本:2.30.0.15916
Win32 版本:2.30.0.0

基本代码:file:///D:/PortableApp/PortableApps/KeePass2Portable/KeePass.exe

System.Windows.Forms
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Xml
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

mscorlib.resources
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll

System.Configuration
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Windows.Forms.resources
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll

KoenZomersKeePassOneDriveSync
程序集版本:1.3.3.1
Win32 版本:1.3.3.1

基本代码:file:///C:/Users/lijun/AppData/Local/KeePass/PluginCache/feXsTTBK3YjWnapjFROG/KoenZomersKeePassOneDriveSync.dll

Newtonsoft.Json
程序集版本:6.0.0.0
Win32 版本:6.0.8.18111

基本代码:file:///C:/Users/lijun/AppData/Local/KeePass/PluginCache/feXsTTBK3YjWnapjFROG/Newtonsoft.Json.DLL

System.Numerics
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

System.Runtime.Serialization
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Xml.Linq
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Data
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

CredentialManagement
程序集版本:1.0.2.0
Win32 版本:1.0.2

基本代码:file:///C:/Users/lijun/AppData/Local/KeePass/PluginCache/feXsTTBK3YjWnapjFROG/CredentialManagement.DLL

KeePass.XmlSerializers
程序集版本:2.30.0.15916
Win32 版本:2.30.0.15916

基本代码:file:///D:/PortableApp/PortableApps/KeePass2Portable/KeePass.XmlSerializers.DLL

System.Security
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll

KoenZomers.OneDrive.Api
程序集版本:1.3.1.0
Win32 版本:1.3.1.0

基本代码:file:///C:/Users/lijun/AppData/Local/KeePass/PluginCache/feXsTTBK3YjWnapjFROG/KoenZomers.OneDrive.Api.DLL

System.Net.Http
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll

System.resources
程序集版本:4.0.0.0
Win32 版本:4.6.1038.0 built by: NETFXREL2

基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.resources.dll

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如:

启用 JIT 调试后,任何未经处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。

Open database directly from OneDrive

This item is from your to-do list and I would like to share my opinion.

I like the idea of caching databases offline and I also like opening them in an URL manner. But I also like a convenient way of choosing my file.

I thought on it and came to this concrete conclusion:
We should use WebRequest "Open URL" handler for protocol "onedrive://" (like in IOProtocol extension). With this in mind, the regular KeePass menu commands all work including recent file history. All caching could be done "behind the scene" without the neeed of user interaction (like it's done in KeePass2Android). In the original IOProtocol extension no offline caching is done - it's all kept in memory - but you already have the logic implemented.
You just open it with "Open URL" and everything is done automagically.
This needs some rework of the current workflow, but I think it is much more "KeePass-Native" and no manual file copy and sync-configuration is needed - it's all implicit because of using the onedrive-WebRequest-Handler.

Behind the scenes:
For caching we should use OneDrives file id instead of the path only - like in Keepass2Android. Therefore me need to make sure me do not create a new file for write back of the merged database.

The only thing is the convenient file chooser:
We could add our own "Open OneDrive..." menu item inside "File\Open" menu with a newly created OneDrive file chooser which you already mentioned on your to-do list (samples are in OneDrive SDK and could surely be applied to our scenario). It chooses the file and uses our OneDrive-URL format.

I could work on the first step. After that we could work on the file chooser.
What do you think?

Synchronization fails if current database is changed to another one

I keep multiple databases open. Each uses different master key and passphrase. Some are synchronized with OneDrive, some are not. If I save a database configured to sync, but will switch tabs before KeePassOneDriveSync actually starts its work, the process will fail with 'The composite key is invalid' error.

Configuration window isn't getting focus

Tools > OneDrive Sync Options
the configuration window seems hidden.
I alt-tab around and once I get back to KeePass it finally shows up.
Windows 10 1709 (17025.1000)

Faq entry to highlight version conflict handling

Hi - really impressed with this plugin. Id assumed initially, that last write to a shared database would win - atomically overwriting a concurrently modified version elsewhere and potentially losing edits as a result.

I was impressed to find that the plugin handles merging of differing versions of the database (at least two different, (but concurrently created on different machines) items were merged into the database after synchronising when I tested it, when Id expected one of them to be lost.

I didn't find any documentation stating expected behaviour here though, and details of how it handles merge conflicts (edits to the same item seem to behave as a last write wins...). Would be a good FAQ?

Cheers for the plugin though!

Crash if target directory exists

Create a directory on OneDrive "/drive/root:/Documents/KeePass" then do a first sync.
Will get crash:
System.NullReferenceException: Object reference not set to an instance of an object. at KoenZomers.OneDrive.Api.OneDriveApi.<DownloadItemAndSaveAs>d__86.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at KoenZomersKeePassOneDriveSync.KeePassDatabase.<SyncDatabase>d__17.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at KoenZomersKeePassOneDriveSync.OneDriveConfigDetailsForm.<ForceSyncButton_Click>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

Unused Icons Re-occur after Sync

Environ.
Keepass 2.x, KeePassOneDriveSync 1.x

STR:

  1. create 2 new entries and import 2 different new image files as icons
  2. establish sync and keep token inside database.
  3. remove either one of the entry COMPLETELY.
  4. in Keepass main windows, navigate to ToolsDatabase Tools, choose Delete Unused Custom Icons
  5. re-sync

Actual result:
The locally removed icon re-occurred. The only solution is to remove remote database and re-upload.

Version incorrect on dll in ZIP file for release 2.0.0.1

I've downloaded the zip file for release 2.0.0.1 and when unpacked the KoenZomersKeePassOneDriveSync.dll has a version 1.8.1.0 (which is less than the latest, already installed, plugin on my PC (1.8.3.0)... Therefore I hesitate to replace it with the current installed plugin.

Unable to change OneDrive path

In first look is seems that "OneDrive path" should be path of directory where to put .kdbx file (with known name). With such info plugin doesn't works:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at KoenZomersKeePassOneDriveSync.KeePass.<SyncDatabase>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at KoenZomersKeePassOneDriveSync.OneDriveConfigForm.<SyncNow>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at KoenZomersKeePassOneDriveSync.OneDriveConfigForm.<ConfigurationListViewContextItemSyncNow_Click>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__0(Object state)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
KeePass
    Assembly Version: 2.30.0.15916
    Win32 Version: 2.30.0.0
    CodeBase: file:///C:/ProgramData/chocolatey/lib/keepass.portable/tools/KeePass.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
KoenZomersKeePassOneDriveSync
    Assembly Version: 1.3.2.0
    Win32 Version: 1.3.2.0
    CodeBase: file:///C:/Users/michaeld/AppData/Local/KeePass/PluginCache/Lb2qbKrwnVzrk1dM0JI1/KoenZomersKeePassOneDriveSync.dll
----------------------------------------
Newtonsoft.Json
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.8.18111
    CodeBase: file:///C:/Users/michaeld/AppData/Local/KeePass/PluginCache/Lb2qbKrwnVzrk1dM0JI1/Newtonsoft.Json.DLL
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Xml.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
KeePass.XmlSerializers
    Assembly Version: 2.30.0.15916
    Win32 Version: 2.30.0.15916
    CodeBase: file:///C:/ProgramData/chocolatey/lib/keepass.portable/tools/KeePass.XmlSerializers.DLL
----------------------------------------
System.Security
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
KoenZomers.OneDrive.Api
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/michaeld/AppData/Local/KeePass/PluginCache/Lb2qbKrwnVzrk1dM0JI1/KoenZomers.OneDrive.Api.DLL
----------------------------------------
System.Net.Http
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

But I've not found any way to change path (without delete/create).

getting unhandled exception error

here is the error that it gives me

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at KoenZomersKeePassOneDriveSync.KeePass.<SyncDatabase>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at KoenZomersKeePassOneDriveSync.KoenZomersKeePassOneDriveSyncExt.<OnKeePassDatabaseOpened>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
KeePass
    Assembly Version: 2.29.0.17893
    Win32 Version: 2.29.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34250 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34239 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
GoogleSyncPlugin
    Assembly Version: 2.1.0.0
    Win32 Version: 2.1.0.0
    CodeBase: file:///C:/Users/Avik/AppData/Local/KeePass/PluginCache/iCHgjzqXqoMmE24I35cA/GoogleSyncPlugin.dll
----------------------------------------
KoenZomersKeePassOneDriveSync
    Assembly Version: 1.3.2.0
    Win32 Version: 1.3.2.0
    CodeBase: file:///C:/Users/Avik/AppData/Local/KeePass/PluginCache/7Io0HUI29wePgLKbHr6L/KoenZomersKeePassOneDriveSync.dll
----------------------------------------
Newtonsoft.Json
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.8.18111
    CodeBase: file:///C:/Users/Avik/AppData/Local/KeePass/PluginCache/7Io0HUI29wePgLKbHr6L/Newtonsoft.Json.DLL
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Xml.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
CredentialManagement
    Assembly Version: 1.0.2.0
    Win32 Version: 1.0.2
    CodeBase: file:///C:/Users/Avik/AppData/Local/KeePass/PluginCache/7Io0HUI29wePgLKbHr6L/CredentialManagement.DLL
----------------------------------------
KeePassFaviconDownloader
    Assembly Version: 2.0.9.28178
    Win32 Version: 1.9.0.0
    CodeBase: file:///C:/Users/Avik/AppData/Local/KeePass/PluginCache/foPmpj0SdEQDFPLfrNGf/KeePassFaviconDownloader.dll
----------------------------------------
KeePassHttp
    Assembly Version: 2.21.0.0
    Win32 Version: 1.8.4.0
    CodeBase: file:///C:/Users/Avik/AppData/Local/KeePass/PluginCache/FQ64wXMOUc6WxirldwLc/KeePassHttp.dll
----------------------------------------
KeePassRPC
    Assembly Version: 2.0.15.33212
    Win32 Version: 1.4.4.0
    CodeBase: file:///C:/Users/Avik/AppData/Local/KeePass/PluginCache/TWKSG8BXPoub4DdXZP4s/KeePassRPC.dll
----------------------------------------
Jayrock
    Assembly Version: 0.9.12915.0
    Win32 Version: 0.9.11214.1056
    CodeBase: file:///C:/Users/Avik/AppData/Local/KeePass/PluginCache/TWKSG8BXPoub4DdXZP4s/Jayrock.DLL
----------------------------------------
Fleck2
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Avik/AppData/Local/KeePass/PluginCache/TWKSG8BXPoub4DdXZP4s/Fleck2.DLL
----------------------------------------
KeePassRPC.Mono.Security
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Users/Avik/AppData/Local/KeePass/PluginCache/TWKSG8BXPoub4DdXZP4s/KeePassRPC.Mono.Security.DLL
----------------------------------------
System.Security
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34248 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
KoenZomers.OneDrive.Api
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Avik/AppData/Local/KeePass/PluginCache/7Io0HUI29wePgLKbHr6L/KoenZomers.OneDrive.Api.DLL
----------------------------------------
System.Net.Http
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


it happens whenever i try to sync with onedrive.

Plugin v2.0.0.1 not being loaded by Keepass 2.38

v2.0.01 of the KeePassOneDriveSync Plugin is not being recognised by KeePass 2.38 and does not appear in the plugins list once KeePass is open (I think it was also not working with 2.36)

I don't think this is a version problem but some sort of corruption that is causing KeePass not to see the plugin. It was working beautifully and I didn't notice that it had stopped for a while.

Can you please advise if there is a way of stripping-out any configuration details that might be stopping it from working? I have tried uninstalling KeePass and re-installing it, but it didn't make any difference.
I have also checked that KeePass is loading other plugins and it is working OK for others, just not KeePassOneDriveSync.

Just for info, I opted to keep the key in the database when I set it up, so I may have to remove that somehow to start again - if this is the case, would you please advise how to do this?

Many thanks
Tim

Unhandled exception (Empty path name is not legal)

The error occurs with no apparent reason from time to time, even if I KeePass window is hidden in the taskbar.

I use Windows 10, KeePass 2.32 and KeePassOneDriveSync 1.4.1.

The .NET framework stacktrace:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Empty path name is not legal.
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at KeePassLib.Serialization.IOConnection.OpenWrite(IOConnectionInfo ioc)
   at KeePassLib.PwDatabase.Save(IStatusLogger slLogger)
   at KoenZomersKeePassOneDriveSync.KoenZomersKeePassOneDriveSyncExt.<MainWindowOnFileSaved>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1073.0 built by: NETFXREL3STAGE
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
KeePass
    Assembly Version: 2.32.0.23563
    Win32 Version: 2.32.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1068.2 built by: NETFXREL3STAGE
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1064.2 built by: NETFXREL3STAGE
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
KeeOtp
    Assembly Version: 1.3.9.0
    Win32 Version: 1.3.9
    CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/plugins/dlls/KeeOtp.dll
----------------------------------------
KeePassHttp
    Assembly Version: 2.21.0.0
    Win32 Version: 1.8.4.0
    CodeBase: file:///C:/Users/Marek/AppData/Local/KeePass/PluginCache/0jou5EZ1PfQvYfO7Zo2E/KeePassHttp.dll
----------------------------------------
KeeAutoExec
    Assembly Version: 1.8.0.16278
    Win32 Version: 1.8.0.0
    CodeBase: file:///C:/Users/Marek/AppData/Local/KeePass/PluginCache/BuNQZJ8gKGkVuUGzfiui/KeeAutoExec.dll
----------------------------------------
KoenZomersKeePassOneDriveSync
    Assembly Version: 1.4.1.0
    Win32 Version: 1.4.1.0
    CodeBase: file:///C:/Users/Marek/AppData/Local/KeePass/PluginCache/5NmWnF631SvTItSFhqGs/KoenZomersKeePassOneDriveSync.dll
----------------------------------------
Newtonsoft.Json
    Assembly Version: 7.0.0.0
    Win32 Version: 7.0.1.18622
    CodeBase: file:///C:/Users/Marek/AppData/Local/KeePass/PluginCache/5NmWnF631SvTItSFhqGs/Newtonsoft.Json.DLL
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Xml.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
KeePassFaviconDownloader
    Assembly Version: 2.0.9.16279
    Win32 Version: 1.9.0.0
    CodeBase: file:///C:/Users/Marek/AppData/Local/KeePass/PluginCache/2kHNHDJloT8aeFEmS39B/KeePassFaviconDownloader.dll
----------------------------------------
KeeResize
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Users/Marek/AppData/Local/KeePass/PluginCache/MWbfEb9KZas1nDZAbSvM/KeeResize.dll
----------------------------------------
KeeResizeLib
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Users/Marek/AppData/Local/KeePass/PluginCache/MWbfEb9KZas1nDZAbSvM/KeeResizeLib.DLL
----------------------------------------
QualityColumn
    Assembly Version: 1.2.0.0
    Win32 Version: 1.2.0.0
    CodeBase: file:///C:/Users/Marek/AppData/Local/KeePass/PluginCache/P3VNOEKOAYT3rvsts47B/QualityColumn.dll
----------------------------------------
QualityHighlighter
    Assembly Version: 1.2.0.0
    Win32 Version: 1.2.0.0
    CodeBase: file:///C:/Users/Marek/AppData/Local/KeePass/PluginCache/P6QxlPWzfhAY6zIytoi6/QualityHighlighter.dll
----------------------------------------
System.Security
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1073.0 built by: NETFXREL3STAGE
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
KeePass.XmlSerializers
    Assembly Version: 2.32.0.23563
    Win32 Version: 2.32.0.23563
    CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.XmlSerializers.DLL
----------------------------------------
KoenZomers.OneDrive.Api
    Assembly Version: 1.4.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///C:/Users/Marek/AppData/Local/KeePass/PluginCache/5NmWnF631SvTItSFhqGs/KoenZomers.OneDrive.Api.DLL
----------------------------------------
System.Net.Http
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0 built by: NETFXREL2
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------
OtpSharp
    Assembly Version: 1.0.5.0
    Win32 Version: 1.0.5.0
    CodeBase: file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/plugins/dlls/OtpSharp.DLL
----------------------------------------
Newtonsoft.Json
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.0.0
    CodeBase: file:///C:/Users/Marek/AppData/Local/KeePass/PluginCache/0jou5EZ1PfQvYfO7Zo2E/Newtonsoft.Json.DLL
----------------------------------------
System.ComponentModel.DataAnnotations
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1038.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

The Choose Cloud Platform dialog is not accessible to screen readers

Hello,
KeePass is renowned for its accessibility to screen reader users (blind and visually impaired). More than that, there is a special setting that improves its interoperability with screen readers.
Your plugin seems to have great functionality but I couldn't try it for the Choose Cloud Platform dialog is not accessible. You have here:

        public OneDriveCloudTypeForm()
        {
            InitializeComponent();

            OneDriveConsumerPicture.Image = Resources.OneDriveConsumer;
            OneDriveForBusinessPicture.Image = Resources.OneDriveForBusiness;
        }

A blind person like me cannot click on such images, they are not presented in the tab order nor in the accessibility object tree.
What I propose is either to change them to radio buttons or, if this is not possible by design, to make them accessible at least for screen reader compatibility mode.

Thanks.

Unhandled exception

Hi, Thanks for making this plugin. I just added it to KeePass. However, once it starts to sync database to onedrive, an exception will occur. This happens every time I start KeePass with this plugin enabled.

Hitting the Continue button in the error message box will let the software continue to run, and the notification area of the software will be changed from "Database does not exist yet on OneDrive, uploading it now" to "Ready" eventually, although nothing is uploaded.

My KeePass is installed in an oneDrive folder and the database is synced to a folder inside this oneDrive folder.

This is the full error message:
The remote server returned an error: (400) Bad Request.

Details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Net.WebException: The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at KoenZomers.OneDrive.Api.OneDriveApi.<CreateFolderInternal>d__7b.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
at KoenZomers.OneDrive.Api.OneDriveApi.d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at KoenZomers.OneDrive.Api.OneDriveApi.<GetFolderOrCreate>d__19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
at KoenZomersKeePassOneDriveSync.KeePass.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KoenZomersKeePassOneDriveSync.KoenZomersKeePassOneDriveSyncExt.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.b__4(Object state)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

KeePass
Assembly Version: 2.30.0.15916
Win32 Version: 2.30.0.0

CodeBase: file:///C:/Users/MACE-USER/OneDrive/Software/KeePass/KeePass.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

KoenZomersKeePassOneDriveSync
Assembly Version: 1.3.2.0
Win32 Version: 1.3.2.0

CodeBase: file:///C:/Users/MACE-USER/AppData/Local/KeePass/PluginCache/mL56szzyEK83ETaWUazQ/KoenZomersKeePassOneDriveSync.dll

Newtonsoft.Json
Assembly Version: 6.0.0.0
Win32 Version: 6.0.8.18111

CodeBase: file:///C:/Users/MACE-USER/AppData/Local/KeePass/PluginCache/mL56szzyEK83ETaWUazQ/Newtonsoft.Json.DLL

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

CredentialManagement
Assembly Version: 1.0.2.0
Win32 Version: 1.0.2

CodeBase: file:///C:/Users/MACE-USER/AppData/Local/KeePass/PluginCache/mL56szzyEK83ETaWUazQ/CredentialManagement.DLL

KeePassHttp
Assembly Version: 2.21.0.0
Win32 Version: 1.8.4.0

CodeBase: file:///C:/Users/MACE-USER/AppData/Local/KeePass/PluginCache/hrbFXo7tqKF2PIdQsHnj/KeePassHttp.dll

KeePass.XmlSerializers
Assembly Version: 2.30.0.15916
Win32 Version: 2.30.0.15916

CodeBase: file:///C:/Users/MACE-USER/OneDrive/Software/KeePass/KeePass.XmlSerializers.DLL

System.Security
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34252 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll

KoenZomers.OneDrive.Api
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0

CodeBase: file:///C:/Users/MACE-USER/AppData/Local/KeePass/PluginCache/mL56szzyEK83ETaWUazQ/KoenZomers.OneDrive.Api.DLL

System.Net.Http
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Plugin asks to setup synchronization even when 'never ask again' was selected

When I open a database file that isn't synchronized with OneDrive, the plugin asks me if I want to start synchronizing it. It gives me three options such as 'Yes', 'Not now' and 'No and never ask me again'. Despite of selecting 'Never ask again' the plugin will keep asking over and over again each time KeePass is restarted.

still no mono?

Still no mono support?
Would you maybe just have some vm with linux installed and test it with different mono version ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.