Bug #17815 [Opn]: Wrong result of importing key(s)
| From: | alec at alec dot pl | Date: | Thu, 26 Aug 2010 06:14:44 +0000 |
| Subject: | Bug #17815 [Opn]: Wrong result of importing key(s) | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-4681@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17815&edit=1
ID: 17815
Updated by: alec@alec.pl
Reported By: alec at alec dot pl
Summary: Wrong result of importing key(s)
Status: Open
Type: Bug
Package: Crypt_GPG
Package Version: SVN
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
It is a solution, but I don't like redundancy like this. We should
deprecate current importKey/importKeyFile and create new methods with
proper/extended return value (including request #17816). Your decision.
Previous Comments:
------------------------------------------------------------------------
[2010-08-25 20:37:03] gauthierm
What do you think about using the same method but returning both:
'fingerprint' - the
fingerprint of the last imported key (as exists now), and 'fingerprints'
- an array of
imported fingerprints?
This would maintain backwards compatibility.
------------------------------------------------------------------------
[2010-08-25 13:47:02] alec
...or provide separate import() and importFile() methods with extended
result.
------------------------------------------------------------------------
[2010-08-25 13:23:03] alec
Description:
------------
In theory it is possible to import many keys (and not only keys) from
one file. In this case response contains only one (last?) fingerprint.
In my opinion we should return 'fingerprint' item as array of imported
fingerprints (from IMPORT_OK responses).
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17815&edit=1