Modify ↓
#12474 closed defect (fixed)
404 Not Found for Review changes
Reported by: | Owned by: | Jun Omae | |
---|---|---|---|
Priority: | normal | Component: | CodeReviewerPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
This is trac 1.0.5 and the latest svn revision of CodeReviewerPlugin. When reviews state of changes is changed (Open->Passed or also Passed->Open) I always get a 404 Not Found. The status of the change review however is changed successfully after that.
Attachments (0)
Change History (8)
comment:1 Changed 9 years ago by
comment:2 Changed 9 years ago by
Owner: | changed from Rob Guttman to Ryan J Ollos |
---|---|
Status: | new → accepted |
I'll try to take a look soon.
comment:3 Changed 9 years ago by
What is the URL before and after the submit in which the 404 not found results? I suspect the problem is in post_process_request, and that the base path is not being accounted for.
comment:5 Changed 9 years ago by
I consider Href(req.path_info)
leads intentional results when multiple projects are used.
-
codereviewerplugin/1.0/coderev/web_ui.py
diff --git a/codereviewerplugin/1.0/coderev/web_ui.py b/codereviewerplugin/1.0/coderev/web_ui.py index ce9a28f..f8794d6 100644
a b from trac.versioncontrol.api import IRepositoryChangeListener, RepositoryManager 20 20 from trac.versioncontrol.web_ui.changeset import ChangesetModule 21 21 from trac.web.chrome import (ITemplateProvider, add_script, add_script_data, 22 22 add_stylesheet, pretty_timedelta, web_context) 23 from trac.web.href import Href24 23 from trac.web.main import IRequestFilter 25 24 from trac.wiki.formatter import format_to_html 26 25 from trac.wiki.macros import WikiMacroBase … … class CodeReviewerModule(Component): 78 77 req.args['summary']): 79 78 self._update_tickets(review, status_changed) 80 79 tickets = review.tickets 81 href = Href(req.path_info) 82 req.redirect(href(tickets=tickets)) 80 req.redirect(req.href(req.path_info, tickets=tickets)) 83 81 ctx = web_context(req) 84 82 format_summary = functools.partial(format_to_html, self.env, ctx, 85 83 escape_newlines=True)
comment:8 Changed 9 years ago by
Owner: | changed from Ryan J Ollos to Jun Omae |
---|
Note: See
TracTickets for help on using
tickets.
The debug log doesn't tell much:
Current configuration: