Ticket #1140 (new defect)

Opened 2 years ago

Last modified 2 years ago

images do not work when site requires authentication

Reported by: eric@petta-tech.com Assigned to: athomas
Priority: normal Component: PageToPdfPlugin
Severity: normal Keywords: attachments permissions
Cc: Trac Release: 0.10

Description

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

pagetopdf_local_attachments.diff (0.9 kB) - added by eric@petta-tech.com on 01/23/07 19:44:59.
quick and dirty patch I wrote to workaround this problem

Change History

01/23/07 19:44:59 changed by eric@petta-tech.com

  • attachment pagetopdf_local_attachments.diff added.

quick and dirty patch I wrote to workaround this problem

04/04/07 08:30:28 changed 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 10.0.0.1 Satisfy Any

</Location>

Where 10.0.0.1 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.


Add/Change #1140 (images do not work when site requires authentication)




Change Properties
Action