Active
Project:
Project CVS instructions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2009 at 05:35 UTC
Updated:
17 Apr 2009 at 04:57 UTC
See #431326: URL aliases not removed for some legacy project nodes that were deleted and #430528: Flag Form module short_path URL doesn't resolve for background.
Poking around in the {url_alias} table on d.o, I notice there are a fair number of URL aliases from this module that belong to project nodes that no longer exist:
mysql> SELECT count(*) FROM url_alias u LEFT JOIN project_projects pp ON u.src = CONCAT('node/', pp.nid) WHERE pp.nid IS NULL AND u.dst RLIKE 'cvs-instructions';
+----------+
| count(*) |
+----------+
| 804 |
+----------+
1 row in set (3.24 sec)
path.module isn't going to automatically delete these for you when the node is deleted, since the alias isn't directly to node/N. So, we need a hook_nodeapi() in here to clean out the cvs-instructions alias when a project node is deleted, and we should probably have a DB update to clean out stale aliases while we're at it.
Comments
Comment #1
david straussThis is annoying, but I think it's only minor.