Bug 1865 - kgpg 'decrypt' button is broken.
Summary: kgpg 'decrypt' button is broken.
Status: RESOLVED WONTFIX
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: John Balcaen
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-20 10:18 CEST by Edward d'Auvergne
Modified: 2011-12-06 14:53 CET (History)
3 users (show)

See Also:
Source RPM: kgpg
CVE:
Status comment:


Attachments

Description Edward d'Auvergne 2011-06-20 10:18:29 CEST
The 'decrypt' button used to work in the kgpg editor window.  Clicking on it would ask for the password, and then it would decrypt the opened encrypted file.

Steps to reproduce:

1.  Open kgpg editor.
2.  Open an encrypted file.
3.  Click on 'decrypt' at the bottom of the window.
4.  Watch the screen go blank.
Manuel Hiebel 2011-06-20 11:34:32 CEST

Component: New RPM package request => RPM Packages

Comment 1 Edward d'Auvergne 2011-06-20 13:03:45 CEST
A fix for this is given in https://bugs.archlinux.org/task/20606.  The gpg setting should be changed to use the gpg2 program (Settings->Configure GPG, GnuPG Settings, Program path: gpg2).

Alternatively, the ~/.kde4/share/config/kgpgrc file needs to be modified as follows.  From:

[GPG Settings]
gpg_bin_path[$e]=gpg
gpg_config_path[$e]=$HOME/.gnupg/gpg.conf

to:

[GPG Settings]
gpg_bin_path[$e]=gpg2
gpg_config_path[$e]=$HOME/.gnupg/gpg.conf

Is there a way of automating this for the user in a new RPM file?

Hardware: i586 => x86_64

Comment 2 Dave Hodgins 2011-06-23 23:10:59 CEST
Ouch! gpg2 doesn't support the idea algorithm, which my key (created back with
pgp 1 (or maybe 2), uses.

I hope idea will be added for gpg2, when the patent expires next Jan.

CC: (none) => davidwhodgins

Ahmad Samir 2011-06-24 11:12:00 CEST

Assignee: bugsquad => balcaen.john
Source RPM: (none) => kgpg

Comment 3 John Balcaen 2011-07-21 14:20:47 CEST
I'm not sure it's a good idea to force gpg2 configuration.
Also during the first configuration of kgpg,the user is asked to choice is gpg program (& so configure it), so we should not force the user to a specific configuration.
Did you try using gpg-agent eventually ?
Comment 4 Marja Van Waes 2011-12-06 08:17:33 CET
(In reply to comment #3)
> I'm not sure it's a good idea to force gpg2 configuration.
> Also during the first configuration of kgpg,the user is asked to choice is gpg
> program (& so configure it), so we should not force the user to a specific
> configuration.
> Did you try using gpg-agent eventually ?

@ John
Maybe the addressed person wasn't aware he was addressed. You might want to mention his name when you ask him again ;)

CC: (none) => marja11

Comment 5 Edward d'Auvergne 2011-12-06 08:43:07 CET
If it was addressed to me, then I haven't tried gpg-agent and wouldn't know how to use it to solve this problem.  It is working for me now as I changed this to gpg2.  I have just changed back to gpg and tried to decrypt my file in the kgpg editor window, and the window just goes blank.  Reverting to gpg2 fixes this.  I'm guessing the kgpg configuration file from my previous Mandriva install was clobbered and the gpg binary setting reset to blank (hence defaulting to gpg).

So the way a user encounters this is when the user decrypts an old file and the editor goes blank.  The only solution for the user is a very difficult Google search for a solution which is to change the binary path from nothing to gpg2.  Ideally upstream should detect this and suggest switching from gpg to gpg2 (or the reverse if the idea algorithm is detected).  I do not want to test this on the new Mageia alpha as my system is production.
Comment 6 John Balcaen 2011-12-06 11:27:54 CET
i'm closing it as wontfix thought.
We don't have to force a gpg configuration by default since :
- the wizard ask for user's choice
- gpg & gpg2 seems to not have the same functionnality according to #2

We should document in our wiki the fact that sometimes it could be wise to switch to gpg2 if the binary path is empty (but maybe it's already inside the kgpg fact i did not check)

Status: NEW => RESOLVED
CC: (none) => balcaen.john
Resolution: (none) => WONTFIX

Comment 7 Marja Van Waes 2011-12-06 14:09:38 CET
(In reply to comment #6)

> We should document in our wiki the fact that sometimes it could be wise to
> switch to gpg2 if the binary path is empty (but maybe it's already inside the
> kgpg fact i did not check)

Added it to the list here, please remove if it isn't needed (or add your name down as volunteer to get this in the wiki :þ)
Comment 8 Marja Van Waes 2011-12-06 14:10:34 CET
add your name down :/

add your name 
or
put your name down 

;)
Comment 9 John Balcaen 2011-12-06 14:22:13 CET
(In reply to comment #7)
> (In reply to comment #6)
> 
> > We should document in our wiki the fact that sometimes it could be wise to
> > switch to gpg2 if the binary path is empty (but maybe it's already inside the
> > kgpg fact i did not check)
> 
> Added it to the list here, please remove if it isn't needed (or add your name
> down as volunteer to get this in the wiki :þ)
I added this in formation in the wiki few minutes after adding this comment cf ( the Mageia 1 Erra cf https://wiki.mageia.org/en/Mageia1_errata#Kgpg_decrypt_issue )
Comment 10 Marja Van Waes 2011-12-06 14:53:04 CET
(In reply to comment #9)

> I added this in formation in the wiki few minutes after adding this comment cf
> ( the Mageia 1 Erra cf
> https://wiki.mageia.org/en/Mageia1_errata#Kgpg_decrypt_issue )

Great :D

You're very welcome in the documentation team ;)

Note You need to log in before you can comment on or make changes to this bug.