View Issue Details

IDProjectCategoryView StatusLast Update
0000246Main CAcert WebsiteGPG/PGPpublic2013-01-14 08:47
ReporterTheSourcerer Assigned ToSourcerer  
PrioritynormalSeveritymajorReproducibilityrandom
Status closedResolutionunable to reproduce 
Fixed in Version2007 
Summary0000246: gpg signing sometimes does not work
DescriptionTrying to get a OpenPGP key signed, sometimes gives the following error:
"No emails found on your key"
I tried it with exactly the same key a couple of times, sometimes I got a correctly signed key, sometimes I got that error message.
I can´t reproduce it guaranteed, and I haven´t found a reason why it happens.
Additional InformationWe could try to use the following debugging code to get to know why it happens in the gpg.php 0000135:
    } else {
                        $fp=fopen("/tmp/gpg_errors.txt","a");
                        fputs($fp,"New case:\nCSR:\n")
                        fputs($fp, $_POST['CSR']);
                        fputs($fp,"emailaddies: is_array:".is_array($emailaddies)."\n");
                        fputs($fp,"emailaddies: $emailaddies\n");
                        fputs($fp,"count(emailaddies): ".count($emailaddies)."\n");
                        fputs($fp,$_SESSION['_config']['errmsg']."\n");
                        fputs($fp,"gpg: ".$gpg."\n");
                        fputs($fp,"lines: ".$lines."\n");
                        fputs($fp,"\n\n");
                        fclose($fp);

                        $_SESSION['_config']['errmsg'] = _("No emails found on your key");
TagsNo tags attached.
Reviewed by
Test Instructions

Relationships

related to 0000460 closedSourcerer Please disable GPG signing until we have a production-quality system 

Activities

duane

2006-05-29 00:12

developer   ~0000237

Possible fix:

Line 47 of www/gpg.php;

- foreach(explode("\n", $gpg) as $line)

+ $gpgarr = explode("\n", $gpg);
+ foreach($gpgarr as $line)

Jan

2007-03-29 13:05

reporter   ~0000827

Is that a duplicate of Bug 236? https://bugs.cacert.org/view.php?id=236
Maybe the issue is solved with https://bugs.cacert.org/view.php?id=343
Can someone still confirm this bug?

Sourcerer

2007-11-17 14:01

administrator   ~0000949

Please test again now, and confirm whether the problem still exists.

Sourcerer

2007-12-19 23:14

administrator   ~0000973

If anyone can reproduce the bug, please reopen it and post the used public key.

Issue History

Date Modified Username Field Change
2006-05-28 22:36 TheSourcerer New Issue
2006-05-29 00:12 duane Note Added: 0000237
2006-08-14 02:48 duane Status new => needs work
2006-08-14 02:48 duane Assigned To => Sourcerer
2007-03-29 13:05 Jan Note Added: 0000827
2007-10-18 15:21 pc Relationship added related to 0000447
2007-10-24 05:09 evaldo Relationship added related to 0000460
2007-11-04 17:41 Sourcerer Relationship deleted related to 0000447
2007-11-17 14:01 Sourcerer Note Added: 0000949
2007-12-19 23:14 Sourcerer Status needs work => closed
2007-12-19 23:14 Sourcerer Note Added: 0000973
2007-12-19 23:14 Sourcerer Resolution open => unable to reproduce
2007-12-19 23:14 Sourcerer Fixed in Version => production
2013-01-14 08:47 Werner Dworak Fixed in Version => 2007