Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.32.0

Bug #17533 Releases and roles do not seem to work.
Submitted: 2010-06-29 05:38 UTC
From: doconnor Assigned: doconnor
Status: Closed Package: pearweb (version 1.24.1)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    

 [2010-06-29 05:38 UTC] doconnor (Daniel O'Connor)
Description: ------------ Error message is rendered: "You cannot demote your role from lead to " Test script: --------------- 1. Upload a package built from Net_IDNA2 r300836 2. Use pear 1.9.0, windows 3. Verify the results 4. Click the 'release' button Expected result: ---------------- The release is done. Actual result: -------------- Error message is rendered: You cannot demote your role from lead to


 [2010-06-29 05:40 UTC] doconnor (Daniel O'Connor)
pear-database-maintainer.php if ($releasing && user::maintains($auth_user->handle, (int)$pkgid, 'lead') && $users[$auth_user->handle]['role'] != 'lead') { return PEAR::raiseError('You cannot demote your role from lead to ' . $users[$auth_user->handle]['role']); } ... my security context is broken?
 [2010-06-29 05:42 UTC] doconnor (Daniel O'Connor)
release-upload.php: $users = array(); foreach ($info->getMaintainers() as $user) { $users[strtolower($user['handle'])] = array( 'role' => $user['role'], 'active' => !isset($user['active']) || $user['active'] == 'yes', ); } include_once 'pear-database-maintainer.php'; $e = maintainer::updateAll($pacid, $users, false, true); Well; how annoying. The package upload page thought that 'clockwerx' was a perfectly acceptable user account; even though it's no such animal.
 [2010-06-29 05:50 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.