cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jasha Joachimsthal <j.joachimst...@onehippo.com>
Subject WebDAVTransformer: errormessage in config does not match code
Date Tue, 06 Jul 2010 14:27:53 GMT
In oac,transformation.WebDAVTransformer there's this block of code:

if (m_target.startsWith(WEBDAV_SCHEME)) {
    m_target = HTTP_SCHEME + m_target.substring(WEBDAV_SCHEME.length());
}
else {
    throw new SAXException("Illegal value for target, must be an http:// or
webdav:// URL");
}

Which means that even if your target attribute starts with http:// you get
an error message saying "Illegal value for target, must be an http:// or
webdav:// URL". Shall I change the error message or add an extra check if
the target starts with http:// ?

Jasha Joachimsthal

j.joachimsthal@onehippo.com - jasha@apache.org

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
San Francisco - Hippo USA Inc. 185 H Street, suite B, Petaluma CA 94952 +1
(707) 7734646

Mime
View raw message