Closed (fixed)
Project:
Path redirect
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Nov 2007 at 17:14 UTC
Updated:
6 Dec 2007 at 02:21 UTC
Jump to comment: Most recent file
URLs longer than 80 characters get truncated. I discovered this after installing the module, so here's how I fixed it:
'#maxlength' => 255, to path_redirect.module line 181;
redirect field to varchar(255).Presumably path_redirect.install would need to be fixed too.
Note that this is very similar to an issue for the 5.x version.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | path_redirect-4.x-1.x_maxlength_4.patch | 4.69 KB | HorsePunchKid |
| #3 | path_redirect-5.x-1.x_maxlength_3.patch | 989 bytes | HorsePunchKid |
| #3 | path_redirect-6.x-1.x_maxlength_3.patch | 981 bytes | HorsePunchKid |
| #2 | path_redirect-4.x-1.x_maxlength_2.patch | 4.53 KB | HorsePunchKid |
Comments
Comment #1
HorsePunchKid commentedThanks for submitting this issue. In fact, there are still a number of missing maxlengths and such in the 5.x and 6.x branches, too. These can lead to either errors on insert or silent truncation. I'll get patches ready soon!
Comment #2
HorsePunchKid commentedPlease try out this patch. I've tested it on my D4 test site, and the upgrade went smoothly. Patches for D5 and D6 should be more trivial, since the schema is already updated.
Comment #3
HorsePunchKid commentedHere are patches for 5.x and 6.x.
Comment #4
HorsePunchKid commentedActually, the patch for 4.x should just use the same
path_redirect_update_1that 5.x uses. This patch does that and also updates the default redirect type to match that in 5.x (301 permanent).Comment #5
HorsePunchKid commentedI've committed these patches to the respective branches.
Comment #6
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.