You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Tim Larson <ti...@keow.org> on 2005/01/18 22:32:17 UTC

MountTableMatcher '/' change?

Would it hurt anything to make this
change in the MountTableMatcher?

From:
    // Append a '/' at the end of the prefix
    // this avoids flat uri matching which would cause
    // exceptions in the sub sitemap!
    if (!prefix.endsWith("/")) {
        prefix = prefix + '/';
    }

To:
    // Append a '/' at the end of a not-empty prefix
    // this avoids flat uri matching which would cause
    // exceptions in the sub sitemap!
    if (!prefix.endsWith("/") && prefix.length() != 0) {
        prefix = prefix + '/';
    }

This change is to allow a mount-table to perform a
similar function as a passthrough mount, permitting
the mount-table'ed sitemap to match at the same
level as the "parent" sitemap.

WDYT?
--Tim Larson