[opencms-dev] Search bug in Alpha 1
Alexander Kandzior
alex at opencms.org
Wed Oct 13 11:18:34 CEST 2004
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Hans
> van der Linden
> Sent: Wednesday, October 13, 2004 11:03 AM
> To: The OpenCms mailing list
> Subject: [opencms-dev] Search bug in Alpha 1
>
> Hi
>
> I am not 100% sure but I think I found a small but painful
> litle bug... When you have named a website in uppercase for
> example sites/WWW_MYSITE_COM the search will not find any
> results because this part in CmsSearchIndex.java:
>
> // complete the search root
> if (searchRoot != null && !"".equals(searchRoot)) {
> // add the site root to the search root
> searchRoot =
> cms.getRequestContext().getSiteRoot() + searchRoot;
> } else {
> // just use the site root as the search root
> searchRoot = cms.getRequestContext().getSiteRoot();
> }
>
> returns de searchRoot in lowercase and no match can be made.
> Once I renamed it to sites/www_mysite_com (lowercase) I got
> my results..
>
> Can this be true?
Maybe, but it surely is not intentional. It may be an issue in the site
manager since this is what manages the site root, but this needs to be
investigated.
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
More information about the opencms-dev
mailing list