#320 [Asn]: Only stable packages can have bugs submitted
| From: | php at cipri dot com | Date: | Fri, 28 Nov 2003 14:36:16 +0000 |
| Subject: | #320 [Asn]: Only stable packages can have bugs submitted | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-23956@lists.php.net to get a copy of this message | ||
ID: 320
User updated by: php at cipri dot com
Reported By: php at cipri dot com
Status: Assigned
Bug Type: Bug System
PHP Version: Irrelevant
Assigned To: mj
New Comment:
Yer, correct, bad wording on my side. The ::listAll() function is the
same function as that was called via XML_RPC, and that's how I debugged
this :)
However, browsing the CVS archive I did find this line of code in the
SQL query done by the package::listAll() function: ($released_only is
the first argument provided to the function.)
($released_only ? "AND r.state = 'stable' " : "").
This would seem to suggest that only stable state packages are
searched, not just those with any releases.
F.I. http://pear.php.net/package/Spreadsheet_Excel_Writer
shows this
package has released several versions, none of those stable however,
and the package doesn't show up on the buglist :)
Previous Comments:
------------------------------------------------------------------------
[2003-11-28 09:07:47] mj@php.net
1) package::listAll() is no XML_RPC method. It's defined in
pear-database.php.
2) The optional parameter only determines if all packages or just
packages with >= 1 release(s) should be listed.
Thus this will not fix the problem. We'll try to find another solution.
------------------------------------------------------------------------
[2003-11-27 16:04:15] php at cipri dot com
Description:
------------
While this could be by design....
Right now, one's only able to submit bugs for packages which have a
stable release. It would be handy of users could submit bugs for
non-stable packages too. Otherwise users might resort to posting bugs
for an unstable package not at all, or in the wrong place where it
won't get fixed at all.
Changing the XML_RPC call in bugtypes.inc from
package::listAll(); to
package::listAll(true); should fix the problem I think.
Reproduce code:
---------------
http://pear.php.net/bugs/bug.php?id=307
http://pear.php.net/bugs/bug.php?id=266
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=320&edit=1