[opencms-dev] Start with folder settings doesn't work
Zdenek Mach
zdenek.mach at qbizm.cz
Wed Aug 24 14:45:15 CEST 2011
So, I have looked into the source code and from my point of view it is a bug
- in class org.opencms.workplace.CmsWorkplace, method initWorkplaceSettings.
There is a check of existence of folder "Start with folder". But this check
is always performed using "currentSite", because of finally block on line
544: cms.getRequestContext().setSiteRoot(currentSite);
The check should be performed using "Start with site", which is read on line
516: String siteRoot = settings.getUserSettings().getStartSite();
As I see this bug is also in 7.5.x versions. The new version 8 has different
implementation of this check where it should be ok.
Best regards,
Zdenek Mach
From: Zdenek Mach [mailto:zdenek.mach at qbizm.cz]
Sent: Friday, August 19, 2011 10:55 AM
To: opencms-dev at opencms.org
Subject: Start with folder settings doesn't work
Hi all,
I have fresh installation of OpenCms 7.0.5, logged as Admin. When I set
preferences "Start with site"="/sites/default/" and "Start with
folder"="/demopages/" it works - after login I have desired site and folder
selected.
Then I created new site "zmach" according to
http://opencms-wiki.org/MultiSite_configuration_instructions. When I now
change the preferences "Start with site"="/sites/zmach/" and "Start with
folder"="/myfolder/" and login again, the site is selected but the folder
is ignored - I am in the root of my new site.
Is it a bug or I created site badly?
Thanks and regards,
--
Zdeněk Mach
Qbizm technologies, a.s. ... the art of information.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110824/50637758/attachment.htm>
More information about the opencms-dev
mailing list