Re: Error creating a new publication in lenya 2.1.x
Rainer Schöpf <[email protected]> Thu, 24 Feb 2011 11:54:09 +0100 (CET)
| Newsgroups | gmane.comp.cms.lenya.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Andreas,
> Hi Rudolf,
>
> Am 22.02.11 20:03, schrieb Rudolf Korhummel:
>
> […]
>
> > public Bologna matches(String url) {
> ^
> LOL – was that the spell checker of your email client? :)
>
> > - 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 ?
>
> I'll take a look at it as soon as I find the time.
FWIW: the bug triggers an error in the OutgoingLinkRewriterTest.
I wonder whether empty strings should be matched only for a relative URL.
Rainer