<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>In the OpenCMS edit view they look perfectly normal (ie without
the http parts). Those URLs are what you get when looking at the live site (on
the test box) using a browser. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I'll take a look at my templates and see what I can find!<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cheers,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Phil<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;color:#1F497D'>Phil Launchbury<br>
IT & Support Manager<br>
------------------------------------------------------<br>
TSSI Systems Ltd,<br>
Rutland House, Hargreaves Road,<br>
Groundwell Industrial Estate,<br>
Swindon, Wiltshire, SN25 5AZ, U.K.<br>
Tel: +44 (0) 1793 747736<br>
<br>
Support Helpdesk<br>
Tel: +44 (0) 8450 707 898<br>
Email: support@tssi.co.uk<br>
Website: www.tssi.co.uk<br>
<br>
'Securing Business Around the World'<br>
-------------------------------------------------------</span><span
style='color:#1F497D'> </span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>On
Behalf Of </b>Christian Steinert<br>
<b>Sent:</b> Tuesday, February 03, 2009 2:13 PM<br>
<b>To:</b> The OpenCms mailing list<br>
<b>Subject:</b> Re: [opencms-dev] I think I know what is going wrong..<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Dear Phil<br>
<br>
I am a bit confused by what you write.<br>
With my site, I also have links like /sites/default/foo/bar.html and
nonetheless the pages are generated with links like /foo/bar.html<br>
<br>
In which editor do you get links like <a
href="http://www.tssi.co.uk/sites/default/tssi/products/biometric_security/fingerprint_reader_range.html">http://www.tssi.co.uk/sites/default/tssi/products/biometric_security/fingerprint_reader_range.html</a>?<br>
Do you have them in the HTML editor or do you only have them when you do
"edit controlcode"?<br>
<br>
For me, the controlcode uses urls starting with /sites/default but the HTML
editor does not. And when I request page contents from opencms, then opencms
will return working links that have no site root inside of them. Could it be that
your templates are reading the content of your pages in some non-standard way
and that some internal functionality has been restructured so that you now miss
out on the automatic conversion from internal references to their external
representation?<br>
<br>
I hat no problems of this kind during my upgrade from 6 to 7 (I used the
upgrade wizard to update my existing installation which worked fine and also
did not require any changes of the site configuration; My main site is in
/sites/default but I don't think that the folder /sites/default has a special
meaning anywhere in the opencms code).<br>
<br>
Best Regards<br>
Christian<br>
<br>
<br>
<o:p></o:p></p>
<pre>Here is a summary of all the problems I've been having with migrating from<o:p></o:p></pre><pre>6 to 7:<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>==========================================================================<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Modified my hosts file so that when I go to our live website it points at<o:p></o:p></pre><pre>the new server.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Installed OpenCMS 7, imported site. All the site URLs are wrong (when you<o:p></o:p></pre><pre>go to <a
href="http://www.tssi.co.uk">www.tssi.co.uk</a> on the new server all the URLs on the pages have the<o:p></o:p></pre><pre>wrong form - instead of being in the form of<o:p></o:p></pre><pre><a
href="http://www.tssi.co.uk/products/biometric_security/fingerprint_reader_range">http://www.tssi.co.uk/products/biometric_security/fingerprint_reader_range</a><o:p></o:p></pre><pre>.html they will be shown as<o:p></o:p></pre><pre><a
href="http://www.tssi.co.uk/sites/default/tssi/products/biometric_security/finge">http://www.tssi.co.uk/sites/default/tssi/products/biometric_security/finge</a><o:p></o:p></pre><pre>rprint_reader_range.html - which of course doesn't work.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I tried many and various forms of importing our site to the new server<o:p></o:p></pre><pre>(from / to /, from / to /sites/default/tssi etc etc ad nauseum) produce<o:p></o:p></pre><pre>exactly the same result. And trying to use the "rewrite URLS" feature just<o:p></o:p></pre><pre>adds another /sites/default/tssi onto the line to make it<o:p></o:p></pre><pre>/sites/default/tssi/sites/default/tssi.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>The only way I could get it to work was by importing all the website into<o:p></o:p></pre><pre>the root of the OpenCMS heirarchy. Which isn't good. And as soon as I<o:p></o:p></pre><pre>moved it into the proper place we were back at the original error again -<o:p></o:p></pre><pre>almost like the URL parser doesn't know that the site lives in<o:p></o:p></pre><pre>/sites/default/tssi and so is trying to make sure that we can get to it.<o:p></o:p></pre><pre>This may be an artifact of how OpenCMS is set up underneath (in terms of<o:p></o:p></pre><pre>where sites are defined as being in relation to projects) but all the<o:p></o:p></pre><pre>experimentation I did I couldn't duplicate how OpenCMS 6 works in OpenCMS<o:p></o:p></pre><pre>7.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>So - today I tried the other approach:<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Cloned our live site onto the test box (with OpenCMS 6) - test site worked<o:p></o:p></pre><pre>perfectly with all URLs showing up as they should be. Upgraded the test<o:p></o:p></pre><pre>box to OpenCMS 7 - exactly the same errors as the "set up from new"<o:p></o:p></pre><pre>configuration.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>In summary - I can't find any way of moving our site onto OpenCMS 7 in its<o:p></o:p></pre><pre>current form. And having spent 3 days trying to do it I suspect it'll be<o:p></o:p></pre><pre>quicker and easier to find some other way of doing it rather than banging<o:p></o:p></pre><pre>my head against the brick wall. And even manually going through all the<o:p></o:p></pre><pre>files is probably quicker than trying to get it working in OCMS 7.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>==========================================================================<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>It looks like the link parser has got confused and is serving the site as<o:p></o:p></pre><pre>if the site root is / instead of what it should be (sort of like a fail<o:p></o:p></pre><pre>chroot!). The site definition in opencms-system is as follows:<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <default-uri>/sites/default/</default-uri><o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <site server=<a
href="http://www.tssi.co.uk">"http://www.tssi.co.uk"</a> uri="/sites/default/tssi/"/><o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I've edited the settings in opencms-importexport as follows:<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <rfs-prefix>/export</rfs-prefix><o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <vfs-prefix></vfs-prefix><o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <userelativelinks>false</userelativelinks><o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>(The userelativelinks is as standard - I didn't change that at all).<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>These are changes to remove the /opencms/opencms from the site URL.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Is there any way I can force OpenCMS to recognise that the effective<o:p></o:p></pre><pre>chroot of the site is in the /sites/default/tssi directory and not /?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Cheers,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Phil<o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Phil Launchbury<o:p></o:p></pre><pre>IT & Support Manager<o:p></o:p></pre><pre>------------------------------------------------------<o:p></o:p></pre><pre>TSSI Systems Ltd,<o:p></o:p></pre><pre>Rutland House, Hargreaves Road,<o:p></o:p></pre><pre>Groundwell Industrial Estate,<o:p></o:p></pre><pre>Swindon, Wiltshire, SN25 5AZ, U.K.<o:p></o:p></pre><pre>Tel: +44 (0) 1793 747736<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Support Helpdesk<o:p></o:p></pre><pre>Tel: +44 (0) 8450 707 898<o:p></o:p></pre><pre>Email: <a
href="mailto:support@tssi.co.uk">support@tssi.co.uk</a><o:p></o:p></pre><pre>Website: <a
href="http://www.tssi.co.uk">www.tssi.co.uk</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>'Securing Business Around the World'<o:p></o:p></pre><pre>------------------------------------------------------- <o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>This e-mail message (including any attachments) is from TSSI and intended for the addressee only. It may contain information that is privileged and confidential. If you are not the intended recipient, you must not copy, distribute or take any action in reliance of it. If this communication has been sent to you in error, please notify us immediately by either replying to this e-mail or by telephoning our offices on (+44) 1793 747700. TSSI accept no responsibility for any changes made to this message after it has been sent by the original author. This email or any of its attachments may contain data that falls within the scope of the Data Protection Acts. You must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998.<o:p></o:p></pre><pre>TSSI Systems Ltd is a company registered in England And Wales with company number 05433732.<o:p></o:p></pre><pre>The TSSI Systems Ltd Registered Office address is Rutland House, Hargreaves Rd, Groundwell Industrial Estate, Swindon, Wiltshire, SN25 5AZ.<o:p></o:p></pre><pre> <o:p></o:p></pre><pre><o:p> </o:p></pre><pre
style='text-align:center'>
<hr size=4 width="90%" align=center>
</pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>This mail is sent to you from the opencms-dev mailing list<o:p></o:p></pre><pre>To change your list options, or to unsubscribe from the list, please visit<o:p></o:p></pre><pre><a
href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><o:p></o:p></pre>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<BR>
This e-mail message (including any attachments) is from TSSI and intended for the addressee only. It may contain information that is privileged and confidential. If you are not the intended recipient, you must not copy, distribute or take any action in reliance of it. If this communication has been sent to you in error, please notify us immediately by either replying to this e-mail or by telephoning our offices on (+44) 1793 747700. TSSI accept no responsibility for any changes made to this message after it has been sent by the original author. This email or any of its attachments may contain data that falls within the scope of the Data Protection Acts. You must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998.<BR>
TSSI Systems Ltd is a company registered in England And Wales with company number 05433732.<BR>
The TSSI Systems Ltd Registered Office address is Rutland House, Hargreaves Rd, Groundwell Industrial Estate, Swindon, Wiltshire, SN25 5AZ.<BR>
</body>
</html>