Jeremias Maerki [EMAIL PROTECTED] wrote
on 22.02.2006 18:50:07:
Added a Wiki page, in case anybody needs that in the future:
http://wiki.apache.org/xmlgraphics-fop/HowTo/BasicHttpAuthentication
Seems easy enough even for me to implement :) thank
you
I have a feeling you overlooked some
I have the FopTrunk version on my computer
(JDK 1.3) and testing it for issues I had in previous version FOP, so I
can decide if we change fop version.
This (see history of this mail) was
one of the issues I had (how to pass to fop basic authentication for retrieving
resources from application
I think there's an even easier way to do this, and it's probably the
better one. I've attached a simple class (MyAuthenticator.java) which
you can adjust to your purposes. You can inspect the parameters for the
password authentication and return a username and password depending on
those values.
I will describe my situation.
I have an application server (Domino)
and on it running a web application.
On this web application users have a
basic editor (uses xhtml) to input basic text/formats/tables and upload
images that are included in the document
Images are uploaded in notes database
Did you try this kind of url?
http://user:[EMAIL
PROTECTED]/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif
[EMAIL PROTECTED] a écrit :
I will describe my situation.
I have an application server (Domino) and on it running a web
application.
On this web application users
Yes, I did try this notation and the
error came up the same (Could not load external
SVG: ... error)
If I try to use such url in a web browser
for example, when first requesting this url a page not found
is displayed and all next responses to this
same request retrieve an empty page
(there is
Then i guess your solution is to write a servlet which access files
using the api and get credits token lik this:
http://domino.example.com/myServlet?doc=/0/A3402F5B583F538AC1257093004C41C8/$File/image.gifuser=someUserpass=somePass
If image tag of .fo were to use the InputSource schem of xml
BTW, the redesigned FOP will make things like that easier. You will have
the ability to plug in a URIResolver to manually fetch an InputStream to
a resource based on a URI. This will make work-arounds like David's
servlet unnecessary.
On the other side it's strange that wget is able to get the