Bug 464476

Summary: gjots2 fails gpg decrypt
Product: [Fedora] Fedora Reporter: Steven Bakker <sb>
Component: gjots2Assignee: Radek Vokál <rvokal>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: bhepple, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-11-07 12:50:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch for call to gpg from gjots2 none

Description Steven Bakker 2008-09-29 11:35:00 UTC
Created attachment 317954 [details]
Patch for call to gpg from gjots2

Description of problem:

If gjots2 is not attached to a terminal (i.e. started from the Gnome menu as opposed to a command shell), it is not possible to open a gpg encrypted file.

Version-Release number of selected component (if applicable):

2.3.4-7.fc7.noarch

How reproducible:

Always.

Steps to reproduce:

1. Create a gpg encrypted file:

       ls -l | gpg --symmetric --output=foobar.gpg

2. Start gjots2 from the Gnome menu:

       Applications->Accessories->GJots2 Jotter

3. Select to open the "foobar.gpg" file.

4. Enter the password in the pop-up dialog.

Actual results:

The main window shows:

       gpg: cannot open `/dev/tty': No such device or address

Expected results:

The (decrypted) contents in the main window.

Additional info:

The bug is in the "file.py" (installed in /usr/lib/python2.5/site-package/gjots2) where gpg is called without "--batch" or "--no-tty" options.

I've attached a patch below that would solve this problem.

Comment 1 Bob Hepple 2008-11-07 08:02:51 UTC
Fixed in 2.3.8

Comment 2 Fedora Update System 2009-01-09 09:56:23 UTC
gjots2-2.3.8-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/gjots2-2.3.8-1.fc10

Comment 3 Fedora Update System 2009-01-15 03:06:48 UTC
gjots2-2.3.8-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.