Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 202406
Alias:
Product:
Component:
Status: RESOLVED
Resolution: UPSTREAM
Assigned To: Jeremy Huddleston (RETIRED) <eradicator@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Grant <emailgrant123@yahoo.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
gpg-2.1-gpg2.diff gpg-2.1-gpg2.diff patch Alon Bar-Lev (RETIRED) 2007-12-17 06:49 0000 409 bytes Details | Diff
gpg-2.1-gpg2.diff gpg-2.1-gpg2.diff patch Alon Bar-Lev (RETIRED) 2007-12-19 19:45 0000 2.95 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 202406 depends on: Show dependency tree
Bug 202406 blocks: 159851
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-12-15 18:00 0000
Upgrading to gnupg-2.0.7 does not work with the squirrelmail GPG plugin.  After
I enter my password, squirrelmail hangs and I have to press stop and restart
apache2 to get it back.  Downgrading to gnupg-1.4.7-r1 fixes it.

------- Comment #1 From Alon Bar-Lev (RETIRED) 2007-12-16 20:00:06 0000 -------
Which version of the software you are using?
How does this product prompt for passphrase? Does it has its own dialog?

------- Comment #2 From Grant 2007-12-16 20:25:33 0000 -------
I'm using squirrelmail-1.4.10a-r2.  It prompts for a passphrase with a small
pop-up window containing HTML.

------- Comment #3 From Alon Bar-Lev (RETIRED) 2007-12-16 20:49:46 0000 -------
Thanks.
I will see if I can come up with a patch until next week.

------- Comment #4 From Alon Bar-Lev (RETIRED) 2007-12-17 06:49:35 0000 -------
Created an attachment (id=138697) [details]
gpg-1.2-gpg2.diff

Oh... I hate php!!!!

Maybe this will solve the issue, but... There was a comment in ChangeLog that
it should mess something else:
 * Revision 1.17  2004/03/23 20:58:16  ke
 * -added cases for subkey revocation interactions
 * -removed --batch from non-pipe commands, to allow for more operations to
function properly

But if it works, we can ask upstream for a proper solution.

Also, please modify gpg.php::GnuPG::debug to true, so that there would be a
debug log to help us know how gpg is run, and attach the output.

Please also add the following to ~/.gnupg/gpg.conf:
debug-all
logger-file /tmp/gpg.log

And attach the result.

Thanks!

------- Comment #5 From Grant 2007-12-18 14:28:04 0000 -------
I applied the patch but the problem remains.  With debugging I get the
following in the browser:

Adding homedir to parameter list.
*SENSITIVE*
Executing action decrypt with GnuPG Object.
Using pipes to communicate with gpg.
Saving previously set environmental variable LC_ALL=en_US.ISO8859-1
Setting environmental variable LC_ALL=en_US
Setting environmental variable LC_LANG=en_US
Setting environmental variable LC_LANGUAGE=en_US
opengpg - executing "/usr/bin/gpg --batch --command-fd 7 --status-fd 5 --no-tty
--yes --openpgp --homedir *SENSITIVE* --decrypt"
Resetting environmental variable LC_ALL=en_US.ISO8859-1
proc_open commandline executed, pipes open
Data available, sending to gpg:

*SENSITIVE*

entering writeData
Pipe 0 open for writing, checking to see if it would block on write
Sending Data!... (913)
Data written 913 of 913
Closing Pipe 0
readStatus()
Starting read status loop.
Checking if read would block on pipes
Streams read for reading: 1
Reading Status
readStatus: [GNUPG:] ENC_TO *SENSITIVE* 16 0
Starting read status loop.
Checking if read would block on pipes
Streams read for reading: 1
Reading Status
readStatus: [GNUPG:] USERID_HINT *SENSITIVE*
Starting read status loop.
Checking if read would block on pipes
Streams read for reading: 1
Reading Status
readStatus: [GNUPG:] NEED_PASSPHRASE *SENSITIVE*
Looking for key fingerprint: *SENSITIVE*
Couldn't match key!
GPG requests passphrase for key *SENSITIVE* setting as active Key
Starting read status loop.
Checking if read would block on pipes
Streams read for reading: 0
Starting read status loop.
Checking if read would block on pipes
Streams read for reading: 0
Starting read status loop.
Checking if read would block on pipes
Streams read for reading: 0
Starting read status loop.
Checking if read would block on pipes
Streams read for reading: 0
Starting read status loop.
Checking if read would block on pipes

These last three lines are repeated over and over as the browser hangs. 
/tmp/gpg.log is never created.

------- Comment #6 From Alon Bar-Lev (RETIRED) 2007-12-19 19:45:05 0000 -------
Created an attachment (id=138904) [details]
gpg-1.2-gpg2.diff

Oh... It gets some more complicated.
I tried to separate the command-fd and passphrase-fd, but I don't know php so
well...

------- Comment #7 From Alon Bar-Lev (RETIRED) 2007-12-19 19:59:06 0000 -------
(From update of attachment 138904 [details])
Oops

------- Comment #8 From Alon Bar-Lev (RETIRED) 2007-12-19 19:59:30 0000 -------
(From update of attachment 138697 [details])
Oops

------- Comment #9 From Alon Bar-Lev (RETIRED) 2007-12-19 20:03:04 0000 -------
Tried to contact upstream, bugzilla is down and:

 ----- The following addresses had permanent fatal errors -----
"|/usr/lib/mailman/mail/mailman post gpg"
    (reason: 1)
    (expanded from: <gpg@braverock.com>)

   ----- Transcript of session follows -----
post script, list not found: gpg
554 5.3.0 unknown mailer error 1

Final-Recipient: RFC822; gpg@braverock.com
X-Actual-Recipient: X-Unix; |/usr/lib/mailman/mail/mailman post gpg
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Unix; 1
Last-Attempt-Date: Wed, 19 Dec 2007 13:58:02 -0600

------- Comment #10 From Grant 2007-12-20 00:48:59 0000 -------
I hate PHP too.  Do you know of another webmail client with gpg support?

------- Comment #11 From Alon Bar-Lev (RETIRED) 2007-12-20 06:13:19 0000 -------
I was very surprised that gpg integration is done one SERVER side...
I expected this to be more like:
http://firegpg.tuxfamily.org/
http://richard.jones.name/google-hacks/gmail-smime/gmail-smime.html

Maybe one of these tools may be modified to support this webmail too... But
crypto operations should be done on client side and not on server side, as keys
cannot be transported to server, and unencrypted text cannot be transported
either.

------- Comment #12 From Grant 2007-12-20 14:40:44 0000 -------
OK, are we unable to make this work?

------- Comment #13 From Alon Bar-Lev (RETIRED) 2007-12-20 18:34:05 0000 -------
Have you tried attachment#138904 [details]

------- Comment #14 From Alon Bar-Lev (RETIRED) 2007-12-21 22:53:00 0000 -------
eradicator: Do you know how to contact upstream?

------- Comment #15 From Grant 2007-12-21 22:58:18 0000 -------
Alon, I'm going to try your patch ASAP.

------- Comment #16 From Jeremy Huddleston (RETIRED) 2007-12-27 23:20:13 0000 -------
I sent an email to the squirrelmail-gpg guys months ago regarding another bug
(a security bug IIRC) in their plugin and got no response... I'll try again.

------- Comment #17 From Alon Bar-Lev (RETIRED) 2008-01-06 20:06:13 0000 -------
Upstream:
> The GPG plugin should be able to work with gnupg-2 by changing the
> use_proc_open=true
> setting in the gpg_local_prefs.txt file to 'false'
> If you could test this and get back to me I would appreciate it.

Can anyone check this out?

------- Comment #18 From Grant 2008-01-06 20:59:00 0000 -------
Testing now.

------- Comment #19 From Grant 2008-01-06 21:06:55 0000 -------
Not fixed.  Problem remains unfortunately.

------- Comment #20 From Jeremy Huddleston (RETIRED) 2008-01-07 02:46:39 0000 -------
Alon, how were you able to get ahold of upstream?  Can you CC me when you
contact them?  For some reason, I wasn't getting any response from them.

Thanks.

------- Comment #21 From Alon Bar-Lev (RETIRED) 2008-01-10 17:06:12 0000 -------
OK.
Upstream did not reply to my latest message... :(

Modified ebuilds to depend on gnupg-1.4*
I hope upstream will resolve this issue...
I don't think this product is worth the effort of us fixing it.

------- Comment #22 From Joakim 2008-01-11 10:27:09 0000 -------
Hi,

that modifucation caused another problem after sync:

merc ~ # emerge -uDalN world

These are the packages that would be merged, in order:

Calculating world dependencies -
!!! Multiple versions within a single package slot have been 
!!! pulled into the dependency graph:

app-crypt/gnupg:0

  ('ebuild', '/', 'app-crypt/gnupg-1.4.8-r1', 'merge') pulled in by
    ('installed', '/', 'mail-client/squirrelmail-1.4.13', 'nomerge')

  ('installed', '/', 'app-crypt/gnupg-2.0.8', 'nomerge') pulled in by
    ('installed', '/', 'mail-filter/spamassassin-3.2.4', 'nomerge')


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously. If such a conflict exists in the
dependencies of two different packages, then those packages can not be
installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man page
or refer to the Gentoo Handbook.

!!! Depgraph creation failed.

I think for it to work gnupg has to be slotted. Please fix again as this breaks
currently working systems.

------- Comment #23 From Alon Bar-Lev (RETIRED) 2008-01-11 11:23:23 0000 -------
This is due to old bug#1343.
You should use package.mask to solve this until this bug is resolved.

Having both versions of gnupg around causes too many other problems... If you
know some php and would like to help, please checkout attachment#138904 [details], help
in fixing it up so it work with gnupg-2.

If you send traces, I will glad to help making it work.

------- Comment #24 From Jakub Moc (RETIRED) 2008-01-11 16:42:26 0000 -------
We should stop shipping this plugin and be done with it. If someone wants it,
they are on their own. It *never* ever worked properly for me even w/ gpg-1.4.
I contacted upstream about issues and never heard back from then. And as noted
in Comment #11, the design is plain broken.

------- Comment #25 From Jeremy Huddleston (RETIRED) 2008-01-12 02:43:46 0000 -------
Yeah, I agree with Jakub.  I punted the gpg plugin from revbumps in ~arch.

------- Comment #26 From Kirk Lowery 2008-02-15 15:15:32 0000 -------
So...exactly what do we mask so that both squirrelmail and spamassassin work?
gnupg-2.0.7?

On my system, gnupg-2.0.7 is already installed:

('ebuild', '/', 'app-crypt/gnupg-1.4.7-r1', 'merge') pulled in by
  ('installed', '/', 'mail-client/squirrelmail-1.4.10a-r2', 'nomerge')

('installed', '/', 'app-crypt/gnupg-2.0.7', 'nomerge') pulled in by
  ('installed', '/', 'mail-filter/spamassassin-3.2.1-r1', 'nomerge')

------- Comment #27 From Alon Bar-Lev (RETIRED) 2008-02-15 18:26:17 0000 -------
You add the following to your /etc/portage/package.mask
>=app-crypt/gnupg-2.0.0

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug