Active
Project:
CVS integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2009 at 22:07 UTC
Updated:
11 Nov 2009 at 13:49 UTC
So. User bago creates a placeholder project and names it "zero". It puts "0" as the "Full project name", which causes validation of the rest of the form to be bypassed:
function cvs_nodeapi(&$node, $op, $arg = NULL) {
if ($node->type == 'project_project') {
switch ($op) {
[...]
case 'validate':
if ($node->title) {
// Do the validation
[...]
}
}
}
}
The project is saved with an empty "cvs directory", and all the files on drupal.org got reassigned to the zero project:
db_query("UPDATE {cvs_files} SET nid = %d WHERE rid = %d AND file LIKE '%s%%'", $node->nid, $node->cvs['repository'], $node->cvs['directory']);
Hilarity ensues.
Comments
Comment #1
damien tournoud commentedCommitted http://drupal.org/cvs?commit=262966 as a stop gap solution.
Comment #2
damien tournoud commentedHere is what I ran to fix the files ownership:
Followed by:
(the zero project had no code)
Comment #3
bago commentedCool! Sorry for hitting the bug and I'm happy it served to find and fix a bug without creating major issues!
@Damien I also wrote you about "policies" but I understand this was not about policy but about a bug in d.o. code.
Comment #4
damien tournoud commentedMoving to the CVS queue. There is no need for this to rotten in the infrastructure queue anymore, the issue on drupal.org has been fixed.