Opened 16 years ago

Closed 15 years ago

#3507 closed defect (fixed)

plugin doesn't work if Trac is behind firewall

Reported by: scratcher Owned by: Lucas Eisenzimmer
Priority: normal Component: PageToDocIntegration
Severity: blocker Keywords:
Cc: Trac Release: 0.11



Thanks for very useful plugin! Unfortunatelly our server located in corporate intranet behind firewall so it has two IP addresses - internal and external. From server itself it is impossible to open it's external address in browser. The problem - all pictures in page cannot be opened by URL retrieve as their URL (captured from page) - are external URL. Would be nice to have an option to automatically replace some IP address in links to localhost - may be with additional parameter in trac.ini.

Attachments (1)

page2doc.png (77.4 KB) - added by scratcher 16 years ago.
stack trace

Download all attachments as: .zip

Change History (4)

Changed 16 years ago by scratcher

Attachment: page2doc.png added

stack trace

comment:1 Changed 16 years ago by Lucas Eisenzimmer

Status: newassigned

Hi scratcher, do I get you right? Some pictures are linked with the external IP, so you need some option to substitute this IP, e.g., with localhost.

I am quite busy right now, but I will see if I can come up with a solution until mid-end of August.

comment:2 Changed 16 years ago by scratcher

Yes, all pictures in HTML of wiki page have external address in their URLs despite they all are attachments and stored locally in Trac wiki. May be this problem could be solved in other ways, I just suggested a possible solution with replacement.

comment:3 Changed 15 years ago by markm

Resolution: fixed
Status: assignedclosed

I have just checked in a change [5401] to implement your suggestion. Note that while testing this it seemed to work sometimes and other times not. Though this could be becuase #4563 also needs to be fixed (and one of my test machines has Apache with Basic Authentication).

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Lucas Eisenzimmer.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.