Modify

Opened 6 years ago

#8976 new defect

TracImageSVG does not work with port forwarding (ssh)

Reported by: Markus Kohler Owned by: Richard Liao
Priority: normal Component: TracImageSvgMacro
Severity: normal Keywords: port forwarding, ssh
Cc: Trac Release: 0.11

Description

Having setup port forwarding of localhost:8080 to some remote's 80 port, imagesvg did not work because localhost:8080 was wrongly replaced by the firewall's/gateway's URL. The provided patch fixes this issue, so it works with and without port forwarding:

--- web_ui.py-old 2011-06-22 22:53:43.270355531 +0200 +++ web_ui.py 2011-06-22 22:36:40.520862516 +0200 @@ -150,7 +150,7 @@

dimensions = 'width="100%" height="100%"'

data = {

  • "base_url": self.env.base_url,

+ "base_url": formatter.href(),

"module": module, "id": id, "file": file,

(sorry, I seem not to be allowed to submit attachments)

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Richard Liao.

Add Comment


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

 
Note: See TracTickets for help on using tickets.