HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Bug - 404 appears when category path is a number or a numeric string
When I set a category path to a numeric string, page 404 will appear when I visit this category.
Not so sure if this is a bug.
Tagged:
0
Comments
This is a duplicate of http://vanillaforums.org/discussion/21609/is-this-a-bug-404-appears-when-category-path-was-set-in-numeric#latest
Could you perhaps give a more detailed description of your problem?
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
I closed that other thread. More information is needed for this thread to stay alive.
There was an error rendering this rich post.
Sorry for duplicate posting.
The earlier thread maybe posted in the wrong category, so I posted here.
I don't know what else information you may interesting, so listed some blow.
I'm running vanilla under nginx 1.2.4 with a rule of
location / {
try_files $uri $uri/ /index.php?p=$uri&$args;
}
When I set category path in the dashboard in /vanilla/settings/managecategories and edit the category Url in /vanilla/settings/editcategory/2 to a numeric string.
Then visit the certain url, page 404 will be appear.
That was exactly what was needed, thanks! I can verify this "bug"-thingy with Vanilla 2.1a24, I get the same results as you when changing the category URL to a numeric string: A 404 page. Here's some debug info if anyone can use it:
Debug Information
Cache Information
7 queries in 0.0132577419281s
Gdn_Model->GetWhere(array('UserID' => '1'))0.003892s PermissionModel->PermissionColumns()0.000537s PermissionModel->CachePermissions('1')0.000918s CategoryModel::Categories('123')0.001654s CategoryModel::JoinRecentPosts(array('-1' => array(26), '1' => array(26), '2' => array(26)))0.000509s CategoryModel::JoinRecentPosts(array('-1' => array(26), '1' => array(26), '2' => array(26)))0.002148s CategoryModel::JoinUserData(array('-1' => array(31), '1' => array(30), '2' => array(30)), 1)0.001077sPage completed in 1.3909s
Controller Data
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
Thanks for reply.
Debugger plugin sames useful, I will give these messages next time when I find something strange.
I submitted an issue here