Modify

Opened 3 years ago

Closed 2 years ago

Last modified 20 months ago

#8597 closed defect (fixed)

Incorrect URL return when voting for ticket

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

Description (last modified by rjollos)

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.

Attachments (2)

vote_test_url.jpeg (42.6 KB) - added by URL of trac 3 years ago.
vote_test_err.jpeg (22.6 KB) - added by slevin@… 3 years ago.
URL after receiving the error notificaion

Download all attachments as: .zip

Change History (11)

Changed 3 years ago by URL of trac

Changed 3 years ago by slevin@…

URL after receiving the error notificaion

comment:1 Changed 3 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 3 years ago by rjollos

  • Description modified (diff)

comment:4 Changed 2 years ago by rjollos

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

comment:5 Changed 2 years ago by rjollos

  • Status changed from new to assigned

comment:6 Changed 2 years ago by rjollos

Similar to #8628.

comment:7 Changed 2 years ago by rjollos

  • 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 2 years ago by rjollos

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

comment:8 Changed 2 years ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:9 Changed 20 months ago by rjollos

#7597 is a duplicate.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from rjollos. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.