Modify

Opened 10 years ago

Closed 5 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

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 (1)

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

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by eric@…

quick and dirty patch I wrote to workaround this problem

comment:1 Changed 10 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 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.

comment:2 Changed 5 years ago by Ryan J Ollos

Deprecated, please see the TracWikiToPdfPlugin.

comment:3 Changed 5 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

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.