Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Damien Tournoud commentedCommitted http://drupal.org/cvs?commit=262966 as a stop gap solution.
Comment #2
Damien Tournoud CreditAttribution: Damien Tournoud commentedHere is what I ran to fix the files ownership:
Followed by:
(the zero project had no code)
Comment #3
bago CreditAttribution: 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 CreditAttribution: 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.