Modify

Opened 6 years ago

Closed 6 years ago

#3507 closed defect (fixed)

plugin doesn't work if Trac is behind firewall

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

Description

Hello!

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 6 years ago.
stack trace

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by scratcher

stack trace

comment:1 Changed 6 years ago by lei

  • Status changed from new to assigned

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. 89.54.123.456, 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 6 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 6 years ago by markm

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

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).

Add Comment

Modify Ticket

Action
as closed The owner will remain lei.
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.