pfn / keepasshttp

KeePass plugin to expose password entries securely (256bit AES/CBC) over HTTP
GNU General Public License v3.0
1.99k stars 275 forks source link

Not compatible with KeePass 2.38, 2.39 #353

Open funkydude opened 6 years ago

funkydude commented 6 years ago

kp

funkydude commented 6 years ago

Downgrading to KeePass 2.37 resolved this. If you made the mistake of upgrading, you can download the old version and install it right over the top here: https://sourceforge.net/projects/keepass/files/KeePass%202.x/2.37/KeePass-2.37-Setup.exe/download

This should be a high priority issue.

funkydude commented 6 years ago

@pfn Any input?

chrullrich commented 6 years ago

Works for me; KeePass 2.38, KeePassHttp 1.8.4.2.

rsynnest commented 6 years ago

@chrullrich Are you running Windows or Linux?

I'm getting the same incompatible plugin error

KeePass 2.38 KeePassHttp 1.8.4.2 Debian buster/sid (10/unstable)

chrullrich commented 6 years ago

Windows.

funkydude commented 6 years ago

When you installed the new version did you select the options to "optimize performance"?

What version of Windows are you using?

chrullrich commented 6 years ago

When you installed the new version did you select the options to "optimize performance"?

No idea. Where is that?

What version of Windows are you using?

10 1709, .NET 4.7.1.

From the source code, any error that happens during plugin load causes an error message that blames the plugin for incompatibility on general principles. This particular error, however, can come from only two places in PlgxPlugin.Compile(), assuming the backtrace is complete.

Can you run KeePass with the -debug option and see whether you get a message starting with "Compilation failed."? That message will include the name of a file with more details. The other place is related to caching plugin files. If you don't get the message, can you try clearing your plugin cache?

jkrajniak commented 6 years ago

KeePass with -debug option, output of /tmp/ debug log

@lukrecja golang $ cli --version
Mono JIT compiler version 4.6.2 (Debian 4.6.2.7+dfsg-1ubuntu1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            sgen
==============================================================================
Compiler 'null':

/usr/bin/mcs /target:library /debug- /optimize+ /out:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.dll" /r:"System.dll" /r:"System.Core.dll" /r:"System.Drawing.dll" /r:"System.Windows.Forms.dll" /r:"System.Xml.Linq.dll" /r:"System.Data.DataSetExtensions.dll" /r:"System.Data.dll" /r:"System.Xml.dll" /r:"/usr/lib/keepass2/KeePass.exe" /r:"/home/teodor/.local/share/KeePass/PluginCache/GuKzHrJR58xfGwkNKoCi/Newtonsoft.Json.dll" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.AccessControlForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.ConfirmAssociationForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.OptionsForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.Properties.Resources.resources" /noconfig  -- "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/AccessControlForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/AccessControlForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfigOpt.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/OptionsForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/OptionsForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Properties/Resources.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Protocol.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Handlers.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfirmAssociationForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfirmAssociationForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Properties/AssemblyInfo.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/PwEntryDatabase.cs"
error CS0006: Metadata file `System.Xml.Linq.dll' could not be found
error CS0006: Metadata file `System.Data.DataSetExtensions.dll' could not be found

==============================================================================
Compiler 'v4':

/usr/bin/mcs /target:library /debug- /optimize+ /out:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.dll" /r:"System.dll" /r:"System.Core.dll" /r:"System.Drawing.dll" /r:"System.Windows.Forms.dll" /r:"System.Xml.Linq.dll" /r:"System.Data.DataSetExtensions.dll" /r:"System.Data.dll" /r:"System.Xml.dll" /r:"/usr/lib/keepass2/KeePass.exe" /r:"/home/teodor/.local/share/KeePass/PluginCache/GuKzHrJR58xfGwkNKoCi/Newtonsoft.Json.dll" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.AccessControlForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.ConfirmAssociationForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.OptionsForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.Properties.Resources.resources" /noconfig  -- "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/AccessControlForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/AccessControlForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfigOpt.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/OptionsForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/OptionsForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Properties/Resources.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Protocol.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Handlers.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfirmAssociationForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfirmAssociationForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Properties/AssemblyInfo.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/PwEntryDatabase.cs"
error CS0006: Metadata file `System.Xml.Linq.dll' could not be found
error CS0006: Metadata file `System.Data.DataSetExtensions.dll' could not be found

==============================================================================
Compiler 'v4.0':

/usr/bin/mcs /target:library /debug- /optimize+ /out:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.dll" /r:"System.dll" /r:"System.Core.dll" /r:"System.Drawing.dll" /r:"System.Windows.Forms.dll" /r:"System.Xml.Linq.dll" /r:"System.Data.DataSetExtensions.dll" /r:"System.Data.dll" /r:"System.Xml.dll" /r:"/usr/lib/keepass2/KeePass.exe" /r:"/home/teodor/.local/share/KeePass/PluginCache/GuKzHrJR58xfGwkNKoCi/Newtonsoft.Json.dll" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.AccessControlForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.ConfirmAssociationForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.OptionsForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.Properties.Resources.resources" /noconfig  -- "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/AccessControlForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/AccessControlForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfigOpt.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/OptionsForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/OptionsForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Properties/Resources.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Protocol.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Handlers.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfirmAssociationForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfirmAssociationForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Properties/AssemblyInfo.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/PwEntryDatabase.cs"
error CS0006: Metadata file `System.Xml.Linq.dll' could not be found
error CS0006: Metadata file `System.Data.DataSetExtensions.dll' could not be found

==============================================================================
Compiler 'v4.0.30319':

/usr/bin/mcs /target:library /debug- /optimize+ /out:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.dll" /r:"System.dll" /r:"System.Core.dll" /r:"System.Drawing.dll" /r:"System.Windows.Forms.dll" /r:"System.Xml.Linq.dll" /r:"System.Data.DataSetExtensions.dll" /r:"System.Data.dll" /r:"System.Xml.dll" /r:"/usr/lib/keepass2/KeePass.exe" /r:"/home/teodor/.local/share/KeePass/PluginCache/GuKzHrJR58xfGwkNKoCi/Newtonsoft.Json.dll" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.AccessControlForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.ConfirmAssociationForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.OptionsForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.Properties.Resources.resources" /noconfig  -- "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/AccessControlForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/AccessControlForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfigOpt.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/OptionsForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/OptionsForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Properties/Resources.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Protocol.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Handlers.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfirmAssociationForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfirmAssociationForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Properties/AssemblyInfo.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/PwEntryDatabase.cs"
error CS0006: Metadata file `System.Xml.Linq.dll' could not be found
error CS0006: Metadata file `System.Data.DataSetExtensions.dll' could not be found

==============================================================================
Compiler 'v4.5':

/usr/bin/mcs /target:library /debug- /optimize+ /out:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.dll" /r:"System.dll" /r:"System.Core.dll" /r:"System.Drawing.dll" /r:"System.Windows.Forms.dll" /r:"System.Xml.Linq.dll" /r:"System.Data.DataSetExtensions.dll" /r:"System.Data.dll" /r:"System.Xml.dll" /r:"/usr/lib/keepass2/KeePass.exe" /r:"/home/teodor/.local/share/KeePass/PluginCache/GuKzHrJR58xfGwkNKoCi/Newtonsoft.Json.dll" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.AccessControlForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.ConfirmAssociationForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.OptionsForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.Properties.Resources.resources" /noconfig  -- "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/AccessControlForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/AccessControlForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfigOpt.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/OptionsForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/OptionsForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Properties/Resources.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Protocol.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Handlers.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfirmAssociationForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfirmAssociationForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Properties/AssemblyInfo.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/PwEntryDatabase.cs"
error CS0006: Metadata file `System.Xml.Linq.dll' could not be found
error CS0006: Metadata file `System.Data.DataSetExtensions.dll' could not be found

==============================================================================
Compiler 'v3.5':

/usr/bin/mcs /target:library /debug- /optimize+ /out:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.dll" /r:"System.dll" /r:"System.Core.dll" /r:"System.Drawing.dll" /r:"System.Windows.Forms.dll" /r:"System.Xml.Linq.dll" /r:"System.Data.DataSetExtensions.dll" /r:"System.Data.dll" /r:"System.Xml.dll" /r:"/usr/lib/keepass2/KeePass.exe" /r:"/home/teodor/.local/share/KeePass/PluginCache/GuKzHrJR58xfGwkNKoCi/Newtonsoft.Json.dll" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.AccessControlForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.ConfirmAssociationForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.OptionsForm.resources" /resource:"/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.Properties.Resources.resources" /noconfig  -- "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/AccessControlForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/AccessControlForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfigOpt.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/OptionsForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/OptionsForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Properties/Resources.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Protocol.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Handlers.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfirmAssociationForm.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/ConfirmAssociationForm.Designer.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/KeePassHttp.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/Properties/AssemblyInfo.cs" "/run/user/1000/KeePass/D5E03DBED768E142847D192D8096BCFC/PwEntryDatabase.cs"
error CS0006: Metadata file `System.Xml.Linq.dll' could not be found
error CS0006: Metadata file `System.Data.DataSetExtensions.dll' could not be found
Pyton commented 6 years ago

For people who has problem under linux with 2.38 just run

sudo apt-get install libmono-system-xml-linq4.0-cil libmono-system-data-datasetextensions4.0-cil libmono-system-runtime-serialization4.0-cil mono-mcs

It works for me.

jkrajniak commented 6 years ago

@Pyton thanks, it works like a charm

2chg commented 6 years ago

1.8.4.2 still failing unter Windows 10 with KeePass 2.39.1

funkydude commented 6 years ago

1.8.4.2 still failing unter Windows 10 with KeePass 2.39.1

I'm sticking with the old KeePass and hoping there's no new security release that forces me to update.

The author has abandoned this plugin. He is active on other projects (like an IRC client that no one in existence uses) but ignoring this ticket for a project with thousands of users. Should probably start looking for replacements.

anthonyfok commented 6 years ago

1.8.4.2 still failing unter Windows 10 with KeePass 2.39.1

I'm sticking with the old KeePass and hoping there's no new security release that forces me to update.

The author has abandoned this plugin. He is active on other projects (like an IRC client that no one in existence uses) but ignoring this ticket for a project with thousands of users. Should probably start looking for replacements.

Hi @pfn, please tell us that ain't true!

rsynnest commented 6 years ago

I did some due diligence and tested KeePassHttp 1.8.4.2 to find that it runs flawlessly on Windows 7 SP1, Windows 10 1709, and Debian buster/sid, with Keepass 2.38 and 2.39. In all cases the plugin was installed by downloading the .plgx file and placing it in the KeePass directory or Plugins subdirectory and tested against the ChromeIPass plugin. For Windows I tested both the portable KeePass install as well as the system-wide install.

Working? OS Libs Installed KeePass Version KeePassHttp Version
:white_check_mark: Debian (buster/sid) mono-complete Keepass 2.38 KeePassHttp 1.8.4.2
:white_check_mark: Debian (buster/sid) mono-complete Keepass 2.39.1 KeePassHttp 1.8.4.2
:white_check_mark: Windows 7 (SP1) .NET 4.7.1 Keepass 2.39.1 KeePassHttp 1.8.4.2
:white_check_mark: Windows 10 (1709) .NET 4.7.1 (default) KeePass 2.39.1 KeePassHttp 1.8.4.2

Anyone still having issues it would be helpful to provide some detail that differs from the above setups to track down what it is about your environment that may be causing a problem.

anthonyfok commented 6 years ago

@rsynnest, thank you for testing!

Indeed, KeePassHttp 1.8.4.2 is working perrfecdtly with Keepass 2.39.1 on Debian here too.

I got confused because it was KeePassRPC, which I tried briefly a year ago but forgot to remove, became incompatible. KeePassHttp is working just fine.

So, no bug after all? ;-)

priv commented 6 years ago

On Ubuntu 14.04, was ok but failed after upgraded to 2.39.1, no idea why.

ziggurad commented 6 years ago

@Pyton thanks, it works for me! Ubuntu 18.04.1 + KeePass 2.39.1 ;)