Modify

Opened 6 years ago

Last modified 6 years ago

#10926 new enhancement

Support MATE keyring with native password manager

Reported by: stanton Owned by: bastiK
Priority: normal Milestone:
Component: Plugin native_password_manager Version:
Keywords: template_report Cc: stanton

Description

What steps will reproduce the problem?

  1. Install Ubuntu MATE 14.10.
  2. Download and install JOSM an Native Password Manager plugin.
  3. Start JOSM

What is the expected result?

I would expect the plugin to work with MATE's password manager.

What happens instead?

Upon start, I get the following message:

No native password manager could be found! Depending on your Operating System / Distribution, you may have to create a default keyring / wallet first.

Please provide any additional information below. Attach a screenshot if possible.

I suspect this is because MATE support would need to be added. Since MATE is a fork of GNOME 2 and GNOME Keyring is supported, the code should be mostly there and can be reused – there is probably little difference between MATE and GNOME apart from identifiers.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-12-09 17:17:36
Last Changed Author: Don-vip
Revision: 7777
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-12-09 18:14:49 +0100 (Tue, 09 Dec 2014)
Last Changed Rev: 7777

Identification: JOSM/1.5 (7777 en) Linux Ubuntu 14.10
Memory Usage: 377 MB / 857 MB (251 MB allocated, but free)
Java version: 1.7.0_65, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u71-2.5.3-0ubuntu1

Plugins:
- DirectUpload (30267)
- InfoMode (30737)
- PicLayer (30762)
- geotools (30762)
- jts (30762)
- mirrored_download (30762)
- native_password_manager (30739)
- notes (v0.9.5)
- osmarender (30738)
- photo_geotagging (30803)
- reverter (30737)
- turnrestrictions (30762)
- utilsplugin2 (30762)
- waypoint_search (30695)

Attachments (0)

Change History (5)

comment:1 Changed 6 years ago by bastiK

Patches welcome. :)

comment:2 Changed 6 years ago by stanton

I'll happily supply one, once I find out where the fault lies :-)

Turns out Ubuntu MATE 14.10 (which I use) uses gnome-keyring, so in theory it should work already. Looking at the source code, I found that the code looks for a library which *should* be in libgnome-keyring-dev, but installing that library doesn't fix the issue.

The "Passwords and Keys" app shows me some passwords (including an SMB password), thus it seems I have a default keyring.

Do I need to install extra packages or make some extra settings to make this work? I'd happily document it on the wiki if I knew how to get it to work...

comment:3 Changed 6 years ago by stanton

Just looked into JOSM settings, there is one setting named plugins.native-password-manager.agent, which is unset. Where and how does the plugin detect which password manager to use? Does that code by any chance query the desktop environment?

comment:4 in reply to:  3 Changed 6 years ago by bastiK

Replying to stanton:

Just looked into JOSM settings, there is one setting named plugins.native-password-manager.agent, which is unset. Where and how does the plugin detect which password manager to use?

In the java function GnomeProvider.enabled(), which calls a native function gnome_keyring_is_available() from libgnome-keyring. It will be interesting to know at what line exactly it fails.

Does that code by any chance query the desktop environment?

Nope.

comment:5 Changed 6 years ago by stanton

I found the code and see it has a few calls to Log.fine(). How do I get OpenJRE to display log messages of this level on the console? (Searched on the net and came up dry – on Android I'd know where to look, on the desktop I need some help...)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain bastiK.
as The resolution will be set.
to The owner will be changed from bastiK to the specified user.
The owner will change to stanton
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from bastiK to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.