Mark Lundquist wrote:
On Oct 10, 2005, at 12:49 AM, Carsten Ziegeler wrote:
We wanted to release 2.1.8 as soon as possible after the GT.
Now the question is, are there any open issues?
I know it's just a little thing, but then I could stop maintaining
this local patch... any chance of getting this committed into 2.1.8?:
http://issues.apache.org/bugzilla/show_bug.cgi?id=32762
IMO we don't even need complicated URL-scheme checking machinery, as by
definition cocoon.sendPage() calls a pipeline, which translates to
redirecting to a "cocoon:" URL.
So we may (but why?) want to allow people to explicitely write the full
URL in their flowscript, but then we just have to check if the given URL
starts with "cocoon:/" to avoid prepending the prefix twice.
So the code would simply be:
forwardTo(String uri...) {
if (!uri.startsWith("cocoon:/")) {
uri = "cocoon:/" + uri;
}
etc...
Thoughts?
Sylvain
--
Sylvain Wallez Anyware Technologies
http://people.apache.org/~sylvain http://www.anyware-tech.com
Apache Software Foundation Member Research & Technology Director