#2161 closed defect (bug) (fixed)
category_name query fails on category assigned parent category
Reported by: | Kafkaesqui | Owned by: | ryan |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0 |
Component: | General | Keywords: | category_name query IIS bg|has-patch bg|commit |
Focuses: | Cc: |
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
@
19 years ago
Using category_name=parent-cat/sub-cat
worked. I agree about the fallback, but at least there's a workaround.
#3
@
19 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
@
19 years ago
- Keywords bg|commit added
Tentatively giving it bg|commit. If this breaks things don't tell anyone I wrote the patch ;)
Note: See
TracTickets for help on using
tickets.
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.