<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: medium;">Today I had time for investigating a little bit more.</span></div><div><span class="Apple-style-span" style="font-size: medium;">I figured out: If the user's default site points to the site in which the file should be edited everything works fine.</span></div><div><span class="Apple-style-span" style="font-size: medium;"><br></span></div><div><span class="Apple-style-span" style="font-size: medium;">This has something to do with the initialization of the workplace. </span></div><div><span class="Apple-style-span" style="font-size: medium;">Class <span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">org.opencms.workplace.<span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">CmsWorkplace#<span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">initWorkplaceCmsContext(...)</span></span></span></span></div><div><span class="Apple-style-span" style="font-size: medium; "><br></span></div><div><span class="Apple-style-span" style="font-size: medium;">...</span></div><div><span class="Apple-style-span" style="font-size: medium;"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(63, 127, 95); "><span class="Apple-tab-span" style="white-space:pre"> </span>// check site setting</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> <span style="color: #7f0055">if</span> (!(settings.getSite().equals(reqCont.getSiteRoot()))) {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(63, 127, 95); "><span style="color: #000000"> </span>// site was switched, set new site root</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> reqCont.setSiteRoot(settings.getSite());</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(63, 127, 95); "><span style="color: #000000"> </span>// removed setting explorer resource to "/" to get the stored folder</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "> }</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;">Here the current site of the requestContext is overwritten with the site of an initially created CmsWorkplaceSettings object.</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;"><br></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;">Maybe this message helps somebody with the same problem or even it is an inspiration for the opencms development team for changing this behaviour of opencms ;-)</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;"><br></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;"><br></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;">All the best,</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;">Ludwig</span></font></div></span></div></div></span></div></span> </div><br><div><div>Am 10.08.2009 um 11:05 schrieb Claus Priisholm:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>It rings a bell... I had a similar problem with version 6. I did use the <br>mod_jk rewrite setup, but I seem to recall that problem persisted when <br>testing directly on tomcat (same port, but a different entry different <br>from "default" in the sites-folder). I.e. both sites and the workplace <br>editor used the same "base" url.<br><br>As I recall it there were some parts during direct edit that would try <br>to look up stuff from /sites/default even though it everything was <br>stored in the other site. I never found the actual problem though as it <br>turned out the two sites were better of running as separate OpenCms <br>instances (so each had their own /sites/default).<br><br>So no solution, but if you have Firefox I would suggest to install <br>HttpFox and look at what is being requested - it sounds like one or more <br>requests ends up on the wrong path. Also try the setup without the fancy <br>front-end setup (as mentioned I recall that I still had the problem, but <br>it was in version 6 so it could be that whatever caused the problem then <br>has been fixed in 7, and it may be something entirely different bugging <br>your setup)<br><br>Ludwig wrote:<br><blockquote type="cite">Hi all,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">has anybody got experiences with a frontend- login and directedit <br></blockquote><blockquote type="cite">functionality in the non-default site? (OpenCms 7.5)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">My situation:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I have got a site /sites/xyz and use a login form, based on the <br></blockquote><blockquote type="cite">login.jsp of the templatetwo demo content. Site xyz is reachable over <br></blockquote><blockquote type="cite">the domain <a href="http://localhost:8081">http://localhost:8081</a>. The domain of the default site and <br></blockquote><blockquote type="cite">the workplace is <a href="http://localhost:8080">http://localhost:8080</a>.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Problem:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The login works perfectly fine but editing content through directedit <br></blockquote><blockquote type="cite">doesn't work. If I try to do so the editor.jsp just redirects me back <br></blockquote><blockquote type="cite">to where I come from without showing the editor- form.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I assume that this behaivour is in connection with the fact that I'm <br></blockquote><blockquote type="cite">even after login "under" the localhost:8081 URL. But if I try to <br></blockquote><blockquote type="cite">manually switch to localhost:8080 (URL of the workplace) I run into <br></blockquote><blockquote type="cite">other problems while trying to use directedit (then the site switches <br></blockquote><blockquote type="cite">from xyz to default).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Has anybody faced similiar problems and solved them?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks a lot & regards,<br></blockquote><blockquote type="cite">Ludwig<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Ludwig Hunecke<br></blockquote><blockquote type="cite">Kramerstr. 18<br></blockquote><blockquote type="cite">D-38122 Braunschweig<br></blockquote><blockquote type="cite">Tel.: +49 (151) 14818950<br></blockquote><blockquote type="cite">GnuPG Key-ID: 8CEAB267<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">This mail is sent to you from the opencms-dev mailing list<br></blockquote><blockquote type="cite">To change your list options, or to unsubscribe from the list, please visit<br></blockquote><blockquote type="cite"><a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote><blockquote type="cite"><br></blockquote><br>-- <br>Claus Priisholm, CodeDroids ApS<br>Phone: +45 48 22 46 46<br>cpr (you know what) codedroids.com - <a href="http://www.codedroids.com">http://www.codedroids.com</a><br>cpr (you know what) interlet.dk - <a href="http://www.interlet.dk">http://www.interlet.dk</a><br>-- <br>Javadocs and other OpenCms stuff: <br><a href="http://www.codedroids.com/community/opencms">http://www.codedroids.com/community/opencms</a><br><br>_______________________________________________<br>This mail is sent to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit<br>http://lists.opencms.org/mailman/listinfo/opencms-dev<br></div></blockquote></div><br></body></html>