On 01/02/2012 06:18 PM, Anton Kronseder wrote:
Hi all,
perhaps someone has the same problem (hopefully already solved):
After migrating from 1.x to 2.x and now to 3.1 and 3.2 I have some
problems :-(
a)
All links to the xwiki Main-Space look like the following example:
xwiki:$s:MyPage
regardless if I use [[Main.MyPage]] or [[MyPage]] the only solution
would be:
[[MyPage>>Main.MyPage]]
If the page is not in the xwiki Main-Space everything works fine.
I see that your xwiki.properties file contains this:
rendering.linkLabelFormat = %w:$s:%p
This is the cause of problem a), and it seems to be partially
intentional. This is a bad copy/paste from the documentation above,
where it says that %w:%s:%p would be a possible format (notice that it
says %s and not $s). Just remove that line from xwiki.properties and
restart the container.
b)
My Quicklinks Panel look horrible:
<https://www.smartics.eu/xwiki/bin/view/Administration/ServerAdministration>
Looks like it is in xwiki 1.0 Syntax, but 2.0 is expected.
Is there a possibility to get to the history of the quicklinks panel, to
restore my old one?
Is there a posibillity to change the xwiki syntax for a panel?
Indeed, the document has been switched to the xwiki/2.0 syntax, while
the content was preserved to the xwiki/1.0 syntax. You can either update
the content to use the 2.0 syntax, or change back the document's syntax
to 1.0. Actually I took the liberty to edit the panel myself, it should
be working fine now.
c)
And last but not least
After logging in I am forwarded to:
http://www.smartics.eu/xwiki/bin/loginsubmit/XWiki/%2Fxwiki%2Fbin%2Fview%2F…
Looks like to be an apache problem, but i use ProxyPass to forward
(proxy) all to my tomcat and RewriteEngine to redirect https:
80:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ProxyPass /xwiki
http://www.smartics.eu:8080/xwiki
ProxyPassReverse /xwiki
http://www.smartics.eu:8080/xwiki
443:
ProxyPass /xwiki
http://www.smartics.eu:8080/xwiki
ProxyPassReverse /xwiki
http://www.smartics.eu:8080/xwiki
What happens:
I go to
http://www.smartics.eu/xwiki
I am redirected to
https://www.smartics.eu/xwiki
I do the login: and than I am forwarded to
http://www.smartics.eu/xwiki/bin/loginsubmit/......
And here somehow the redirect to https does not work and the page can
not be delivered, as apache states "Not Found".
Looks like both (Rewrite and ProxyPass) are pypassed somehow.
But when I now enter manually (in the same browser)
"https://www.smartics.eu/xwiki" I am logged in.
Any idea what might be wrong?
You shouldn't use proxy_http but proxy_ajp, which is faster and better
for performance in general. The problem is that XWiki doesn't know that
the connection was secure in the first place, since it sees the request
on the 8080 port. Using the ajp protocol would fix this since it uses
exactly the request that Apache received, with the right hostname and
port. If mod_proxy_ajp is installed, it should be enough to just change
the configuration from http://...:8080/ to ajp://...:8009/
There is a fix that doesn't involve switching the proxy protocol, but I
don't remember it exactly. If you'd like to know it, I'll dig deeper, or
someone more experienced with server setup could answer.
Any help to my problems would be highly appreciated.
Best wishes for the new year.
Best regards,
Anton Kronseder
--
Sergiu Dumitriu
http://purl.org/net/sergiu/