[xwiki-users] Damaged wiki-pages because of getURL returns incorect URL
I have a strange situation in my wiki. Some of elements at a standart wiki-pages are damaged. For example - Main.Spaces, all user profiles, Blogs.WebHome and many-many others (but not all). You can see how they are damaged on a attached images. http://n2.nabble.com/forum/FileDownload.jtp?type=n&id=4992332&name=UserProfi... http://n2.nabble.com/forum/FileDownload.jtp?type=n&id=4992332&name=Spaces_da... This situation exists on fresh XWiki installations on all versions (I tried XWiki starting from 2.0), different servlets (I tried jetty & glassfish), different DB (I tried Oracle & HSQLDB & MySQL). I started to analyze situation. Interest, but when I use local server address (http://localhost:8080/xwiki) - all is ok, problem shows ONLY if I connecting through my internet domain name (http://mysite.com/xwiki). I started to compare html-generated code and found, that function getURL returns different strings! When I addresses through http://localhost:8080/xwiki getURL returns /xwiki/bin/view/ColorThemes/ with class="wikilink". But when I adresses through my site getURL returns http://mysite.com/xwiki/bin/view/Main/SpaceIndex?space=ColorThemes with class="wikiexternallink". If I put option {{html wiki="false"}} - these links are ok, but another portions of code (where using wiki-syntax inside of html) started to damaged. Ok - I can one-by-one for all pages put {{html wiki="false"}} and change wiki-syntax inside of html for a truly html ... I already did it successfully for a Main.Spaces. But pages with same problems quite enough ... Maybe exists another variant? How to say absolutely for a getURL function to returns internal link? Or maybe problem with my site config? Unfortunately, site-configuration is not under my control ... My Xwiki server placed inside internal local network domain, and exists "link" between my XWiki-Server and address on a external site (which is hosted on another server, another network). How this "link" is configured - I don't no. I only said for external-site administrators internal path (http://servername:8080/xwiki) - and they did link. If it is problem with external-site address config - I need to say something for administrators what need to change, because now all looks like that problem is with programming code of XWiki ... Thanks beforehand! Eugen -- View this message in context: http://xwiki.475771.n2.nabble.com/Damaged-wiki-pages-because-of-getURL-retur... Sent from the XWiki- Users mailing list archive at Nabble.com.
Is this a XEM install ? You havé something which triggers absolute URL. Génération and many places don't protect URLs from wiki syntax (it's a bug) Envoyé de mon iPhone Le 2 mai 2010 à 09:46, Colesnicov Eugen <[email protected]> a écrit :
I have a strange situation in my wiki. Some of elements at a standart wiki-pages are damaged. For example - Main.Spaces, all user profiles, Blogs.WebHome and many-many others (but not all). You can see how they are damaged on a attached images.
http://n2.nabble.com/forum/FileDownload.jtp?type=n&id=4992332&name=UserProfi...
http://n2.nabble.com/forum/FileDownload.jtp?type=n&id=4992332&name=Spaces_da...
This situation exists on fresh XWiki installations on all versions (I tried XWiki starting from 2.0), different servlets (I tried jetty & glassfish), different DB (I tried Oracle & HSQLDB & MySQL).
I started to analyze situation. Interest, but when I use local server address (http://localhost:8080/xwiki) - all is ok, problem shows ONLY if I connecting through my internet domain name (http://mysite.com/xwiki).
I started to compare html-generated code and found, that function getURL returns different strings! When I addresses through http://localhost:8080/xwiki getURL returns /xwiki/bin/view/ ColorThemes/ with class="wikilink". But when I adresses through my site getURL returns http://mysite.com/xwiki/bin/view/Main/SpaceIndex?space=ColorThemes with class="wikiexternallink".
If I put option {{html wiki="false"}} - these links are ok, but another portions of code (where using wiki-syntax inside of html) started to damaged.
Ok - I can one-by-one for all pages put {{html wiki="false"}} and change wiki-syntax inside of html for a truly html ... I already did it successfully for a Main.Spaces. But pages with same problems quite enough ...
Maybe exists another variant? How to say absolutely for a getURL function to returns internal link? Or maybe problem with my site config? Unfortunately, site-configuration is not under my control ... My Xwiki server placed inside internal local network domain, and exists "link" between my XWiki- Server and address on a external site (which is hosted on another server, another network). How this "link" is configured - I don't no. I only said for external-site administrators internal path (http://servername:8080/xwiki ) - and they did link. If it is problem with external-site address config - I need to say something for administrators what need to change, because now all looks like that problem is with programming code of XWiki ...
Thanks beforehand! Eugen -- View this message in context: http://xwiki.475771.n2.nabble.com/Damaged-wiki-pages-because-of-getURL-retur... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
No. I have simple XE install. This situation exists also with "pre-configured" variants of XE instalations (also with 2.3). -- View this message in context: http://xwiki.475771.n2.nabble.com/Damaged-wiki-pages-because-of-getURL-retur... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, your screenshots remind me of a problem I had one month ago configuring public xwiki access for my local installation. I finally solved it by modifying the <VirtualHost> section of the httpd deamon which serves all my incoming internet traffic. Although my situation may not apply in detail to yours it might be a "hint" for further research with your system administrators. Heres the link: http://xwiki.475771.n2.nabble.com/Short-Urls-configuration-tt4869739.html#a4... best regards Andreas Colesnicov Eugen schrieb:
I have a strange situation in my wiki. Some of elements at a standart wiki-pages are damaged. For example - Main.Spaces, all user profiles, Blogs.WebHome and many-many others (but not all). You can see how they are damaged on a attached images.
http://n2.nabble.com/forum/FileDownload.jtp?type=n&id=4992332&name=UserProfi...
http://n2.nabble.com/forum/FileDownload.jtp?type=n&id=4992332&name=Spaces_da...
This situation exists on fresh XWiki installations on all versions (I tried XWiki starting from 2.0), different servlets (I tried jetty & glassfish), different DB (I tried Oracle & HSQLDB & MySQL).
I started to analyze situation. Interest, but when I use local server address (http://localhost:8080/xwiki) - all is ok, problem shows ONLY if I connecting through my internet domain name (http://mysite.com/xwiki).
I started to compare html-generated code and found, that function getURL returns different strings! When I addresses through http://localhost:8080/xwiki getURL returns /xwiki/bin/view/ColorThemes/ with class="wikilink". But when I adresses through my site getURL returns http://mysite.com/xwiki/bin/view/Main/SpaceIndex?space=ColorThemes with class="wikiexternallink".
If I put option {{html wiki="false"}} - these links are ok, but another portions of code (where using wiki-syntax inside of html) started to damaged.
Ok - I can one-by-one for all pages put {{html wiki="false"}} and change wiki-syntax inside of html for a truly html ... I already did it successfully for a Main.Spaces. But pages with same problems quite enough ...
Maybe exists another variant? How to say absolutely for a getURL function to returns internal link? Or maybe problem with my site config? Unfortunately, site-configuration is not under my control ... My Xwiki server placed inside internal local network domain, and exists "link" between my XWiki-Server and address on a external site (which is hosted on another server, another network). How this "link" is configured - I don't no. I only said for external-site administrators internal path (http://servername:8080/xwiki) - and they did link. If it is problem with external-site address config - I need to say something for administrators what need to change, because now all looks like that problem is with programming code of XWiki ...
Thanks beforehand! Eugen
Thanks Andreas! Your information will be very useful for me! Eugen -- View this message in context: http://xwiki.475771.n2.nabble.com/Damaged-wiki-pages-because-of-getURL-retur... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Andreas Hahn -
Colesnicov Eugen -
Ludovic Dubost