Opened 18 years ago
Closed 12 years ago
#1140 closed defect (wontfix)
images do not work when site requires authentication
Reported by: | 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)
Change History (4)
Changed 18 years ago by
Attachment: | pagetopdf_local_attachments.diff added |
---|
comment:1 Changed 18 years ago by
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:3 Changed 12 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
quick and dirty patch I wrote to workaround this problem