Modify

Opened 16 years ago

Closed 12 years ago

#3147 closed defect (wontfix)

Handling of images

Reported by: anonymous Owned by: Alec Thomas
Priority: normal Component: PageToPdfPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

Images do not show up in the generated PDF on some of our instances, while it works ok on others.

I've been digging into it, and I think I found a possible explanation (note that I'm a total python newbie, so please forgive any error):

Could the problem on some instance be due to the fact that it is accessed via https? As far as I can tell, the pagetopdf.py code converts images tags as follows:

page = re.sub('<img src="(?!\w+://)', '<img src="%s://%s:%d' % (req.scheme, req.server_name, req.server_port), page)

The 'scheme' used to request the page (https for our instance) is copied in the image URL. I don't think this can work, i.e. that htmldoc can retrieve the image without credential. This may be the reason why granting access to anonymous users (as indicated in #1056) makes it work better (but this is not an acceptable option for us).

Please contact me ("m/i/c/h/e/l --at-- m/a/k/a/l/u/m/e/d/i/a/./c/o/m" - remove spaces, slashes and put the real at-sign) if you want to discuss or need more info.

Attachments (0)

Change History (2)

comment:1 Changed 16 years ago by anonymous

It's me again. FYI: we have changed our instance to http instead of https, and this didn't help. Any idea?

comment:2 Changed 12 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Deprecated, please see the TracWikiToPdfPlugin.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
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.