Modify

Opened 8 years ago

Closed 2 years ago

#1140 closed defect (wontfix)

images do not work when site requires authentication

Reported by: eric@… Owned by: 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 (1)

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

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by eric@…

quick and dirty patch I wrote to workaround this problem

comment:1 Changed 7 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 2 years ago by rjollos

Deprecated, please see the TracWikiToPdfPlugin.

comment:3 Changed 2 years ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from athomas. Next status will be 'closed'.
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.