Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.9
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2010 at 13:45 UTC
Updated:
10 Aug 2010 at 22:40 UTC
A view name cannot be numeric. This results in a "page not found" on the front and edit/delete links that don't do anything in the back.
This is caused by the load function, that checks if the argument is numeric, and if so, passes the argument as "vid" instead of "name" to the select query. (D6-2.9 includes/view.inc line 1297). This is the same for D5.
There is no validation in the UI to prevent this. The alphanumeric check should be changed so that numeric names aren't allowed.
I added 2 patches, for 5.x-1.7 and 6.x-2.9, where I just added "is_numeric" to the existing check and some extra info in the validation error. Please review these.
| Comment | File | Size | Author |
|---|---|---|---|
| views_name_validation_d6_29.patch | 605 bytes | ducktape | |
| views_name_validation_d5.patch | 628 bytes | ducktape |
Comments
Comment #1
dawehnerI think this is really just minor
Comment #2
dawehnerbump up
Comment #3
esmerel commentedThis makes it impossible to access or delete a view. That's bad :)
Comment #4
merlinofchaos commentedCommitted to D6 and D7 branches. No one is maintaining D5 except for security patches, so not going to commit to D5.