On Mon, 25 Dec 2000, Brandon wrote:

> > I still don't know how to implement it this way, with ambiguous URIs. Once
> > we read the metadata from "blah.html", and notice the
> > MapFile=SSK@blah/blah, how do we remember to use it (and not the normal
> > SSK) when the next request comes in from a link or image on that page?
> 
> You have to cache the map file, of course. And of course you need a mask
> for when to use the map file. So you could have the following:
> KSK@blah/ -> an index page with MapFile=blah.map, Mask=blah/
> At which point blah/images/duck.gif is mapped to the entry
> images/duck.gif. The requirement of course is that you start at
> KSK@blah/. Perhaps that's what people are complaining about.

Yeah, that's what I said and that's why I don't like the idea. When the
cache expires -- and it MUST expire in a reasonable amount of time, or
security is compromised -- everything goes to hell, because FProxy forgets
that "blah/images/duck.gif" really means the CHK in the map file. It also
fucks with the user's intuition, because he won't realize that he can't
bookmark a file or even type "blah/index.html".

I've implemented my original evil colon version, with a "=" delimeter
instead of a space in the mapfile, as you suggested.

I agree, it bloats the keys, but it's a very flexible system.

Should I stick it in the CVS in all its infamy, or wait for the final
verdict? It's two new classes, one line in ProxyServer to instantiate the
MapHandler, and a few lines in HttpHandlerServlet to run applicable keys
through it. (Might bloat a little when I write the automatic removal
stuff.)


-- 
Mark Roberts
[EMAIL PROTECTED]


_______________________________________________
Freenet-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to