Opened 13 years ago

Last modified 11 years ago

#8597 closed defect

Incorrect URL return when voting for ticket — at Version 7

Reported by: slevin@… Owned by: Ryan J Ollos
Priority: normal Component: VotePlugin
Severity: normal Keywords: path URL
Cc: Trac Release: 0.12

Description (last modified by Ryan J Ollos)

We're have many different tracs for some departments, usually URLs of that tracs looks like: http://trac.x/Trac_Name/

With voting for wiki or for milestones allways is ok. But when I'm try to vote for ticket I receive the error message like that:

Not Found

The requested URL /ticket/3246 was not found on this server.

URL after receiving the error notificaion

Please make the patch if it possible.

Change History (9)

Changed 13 years ago by URL of trac

Attachment: vote_test_url.jpeg added

Changed 13 years ago by slevin@…

Attachment: vote_test_err.jpeg added

URL after receiving the error notificaion

comment:1 Changed 13 years ago by yannpaul@…

There is an error at the end of the process_request routine. Line 157 of __init__.py should be changed to

        req.redirect(self.env.abs_href()+'/'+resource)

At least this change has worked for me.

comment:3 Changed 13 years ago by Ryan J Ollos

Description: modified (diff)

comment:4 Changed 12 years ago by Ryan J Ollos

Similar issue to what I just dealt with in #7399 for the MenusPlugin. It will be fixed shortly.

comment:5 Changed 12 years ago by Ryan J Ollos

Status: newassigned

comment:6 Changed 12 years ago by Ryan J Ollos

Similar to #8628.

comment:7 Changed 12 years ago by Ryan J Ollos

Description: modified (diff)

I was having trouble reproducing in the development environment, but the last changeset should hopefully fix any possible issues.

If you are able to test and report back, I'd appreciate it. Please include the revision of the plugin you were running before the upgrade as well.

comment:7 Changed 12 years ago by Ryan J Ollos

(In [11793]) Refs #8597: Redirect to URL accounts for path to Trac environment.

Note: See TracTickets for help on using tickets.