W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1997

MirrorDirectory filters broken?

From: Anselm Baird_Smith <Anselm.Baird_Smith@sophia.inria.fr>
Date: Mon, 4 Aug 1997 09:02:01 +0200 (MET DST)
Message-Id: <199708040702.JAA26677@www43.inria.fr>
To: Chris Hubick <hubick@defiant.synapse.med.ualberta.ca>
Cc: www-jigsaw@w3.org
Chris Hubick writes:
 > 	The lookup method of the MirrorDirectory resource does not add
 > its filters to the LookupResult.

That's correct and hasn't been fixed in 1.0beta. The fix is to call
super.lookup without even checking the result, eg:

    public boolean lookup(LookupState ls, LookupResult lr)
        throws HTTPException
        boolean superResult = super.lookup(ls, lr);

        // Get the full URL from the request:
        Request request = ls.getRequest();
        URL     url     = request.getURL() ;
        if ( ls.isInternal() )
            return superResult;
        // Is this really belonging to the site we are mirroring ?
        if ( mirrors != null ) {
            return true;
        // Emit a not found:
        Reply error = request.makeReply(HTTP.NOT_FOUND);
        error.setContent("Target resource not found.");
        return true;

[this ifx has been added, and will be included in 1.0beta1 - the
public version of 1.0beta]

Received on Monday, 4 August 1997 03:02:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:31 UTC