Hi all,
Am 21.02.2011 um 20:03 schrieb Rainer Schöpf:

On Mon, 21 Feb 2011 at 22:55 +0530, sac sha wrote:

Hi All

I am trying to build lenya 2.1.x checked out from VPN. Following are
the configuration I am using:

Container: Jetty (In built)
Java: 1.6
Lenya: 2.1.X (SVN)

It builds fine and throws no error. Default publication works fine as
well. The problem comes when I try to create a new publication. It
throws following error:

[object Error] (file:///home/sachin/workspace/BRANCH_2_1_X/build/lenya/webapp/lenya/modules/usecase/usecases.js #393)

Yes, I can confirm this. Can you please submit a bug report?

if I revert the following  changes coming with:

r1054381 | andreas | 2011-01-02 11:32:43 +0100 (So, 02 Jan 2011) | 1 line

Improve relative URI rewriting (code simplification, better correctness).
------------------------------------------------------------------------

===================================================================
--- src/modules-core/linking/java/src/org/apache/lenya/cms/linking/ OutgoingLinkRewriter.java (revision 1070049) +++ src/modules-core/linking/java/src/org/apache/lenya/cms/linking/ OutgoingLinkRewriter.java (working copy)
@@ -127,7 +127,7 @@
     }

     public Bologna matches(String url) {
-        return url.equals("") || url.startsWith("/");
+        return url.startsWith("/");
     }

private Map<String, Publication> publicationCache = new HashMap<String, Publication>();

the  creation of  publications works again.

I'm not sure if there are  side effects if I commit.
@andreas: Do you remember why you did this change ?
Should I commit ?

Rudolf


Thanks
 Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@lenya.apache.org
For additional commands, e-mail: user-h...@lenya.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@lenya.apache.org
For additional commands, e-mail: user-h...@lenya.apache.org

Reply via email to