#2161 closed defect (bug) (fixed)
category_name query fails on category assigned parent category
| Reported by: | Kafkaesqui | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.0 |
| Severity: | normal | Keywords: | category_name query IIS bg|has-patch bg|commit |
| Cc: | Focuses: |
Description
A query type of category_name is causing a 404 error for any category assigned to a parent. Setting category to no parent corrects this. This only appears to occur on IIS server. I cannot duplicate the issue elsewhere (i.e. on Apache).
Same problem reported by another user (with query_posts - category parent issue unverified at time of ticket submission):
Attachments (1)
Change History (9)
#2
@
21 years ago
Using category_name=parent-cat/sub-cat worked. I agree about the fallback, but at least there's a workaround.
#3
@
21 years ago
- Keywords bg|has-patch added
Here's a patch for the workaround. Don't know how many bugs it'll cause, though.
#5
@
21 years ago
- Keywords bg|commit added
Tentatively giving it bg|commit. If this breaks things don't tell anyone I wrote the patch ;)
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Try with the full category hierarchy. "parent-cat/sub-cat" We should fallback to matching on just the subcat if the entire hierarchy does not match, but evidently that isn't working.