Get resource from request
VotePlugin needs to get the resource
for a request. It currently does this in a way that isn't entirely robust, see resource_from_path. See also th:#11073.
The reason the method isn't robust is that it assume the path /
corresponds to wiki/WikiStart
, but this depends on [trac] default_handler and the session preference for default handler.
I seem to remember the issue coming up for other plugins (BookmarkPlugin?) as well, and it may be needed for #11078.
I've considered adding a function resource_from_request
. The resource realm, id, parent realm/id and version can be parsed from the URL. However, I'm unsure how to get the resource
for a request to /
. Any ideas?
Change History
(6)
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Milestone: |
next-dev-1.3.x → next-major-releases
|
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Milestone: |
next-major-releases
|
Resolution: |
→ wontfix
|
Status: |
new → closed
|
A solution was implemented for VotePlugin so that
resource_from_path
is no longer needed. See comment:7:ticket:11073.