Modify

Opened 3 years ago

#8976 new defect

TracImageSVG does not work with port forwarding (ssh)

Reported by: kohler Owned by: richard
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)

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.