Opened 11 years ago

Closed 6 years ago

#1140 closed defect (wontfix)

images do not work when site requires authentication

Reported by: eric@… Owned by: Alec Thomas
Priority: normal Component: PageToPdfPlugin
Severity: normal Keywords: attachments permissions
Cc: Trac Release: 0.10


htmldoc does not know how to authenticate to sites requiring a login and password, which a Trac installation I use requires.

Therefore it's better to use absolute local paths ('file://' won't work for htmldoc, either).

I have a quick and dirty patch attached (w/hardcoded attachment path) that works for me. Somebody more familiar with Trac and Python should be able to modify it to support all repositories.

Attachments (1)

pagetopdf_local_attachments.diff (941 bytes) - added by eric@… 11 years ago.
quick and dirty patch I wrote to workaround this problem

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by eric@…

quick and dirty patch I wrote to workaround this problem

comment:1 Changed 11 years ago by anonymous

Another workaround is to configure your webserver not to ask for authentication when coming from the host itself. For example:

<Location "/trac">

Order Deny,Allow Deny from all Allow from Satisfy Any


Where is the ip that the plugin is trying to access via http. This is what I am currently using and appears to be the easiest solution for me, since no users can open up a browser from the server itself.

comment:2 Changed 6 years ago by Ryan J Ollos

Deprecated, please see the TracWikiToPdfPlugin.

comment:3 Changed 6 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Alec Thomas.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.