Hi Marius,
There are a lot of AJAX requests, some work, some don't.
All requests have cookie headers.
But it looks like the failed requests have no authorization header, and the other requests do have one.
On the main page I see some failed requests (without authorization header) and right after, the same request again with authorization header that succeeds! Looks like some kind of retry. With the REST request, I do not see this duplicate requests.
Mark
-----Oorspronkelijk bericht-----
Van: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Namens Marius Dumitru Florea
Verzonden: donderdag 14 maart 2013 12:52
Aan: XWiki Users
Onderwerp: Re: [xwiki-users] TRANSPORT_ERROR with SSO in tree view
Ok, so the problem is:
* either the AJAX requests don't have the necessary authentication information
* or the REST system doesn't understand or doesn't handle properly the authentication information from the request.
All AJAX requests should have all the cookies that the main request (for the edit mode) has. So if the authentication information is stored in cookies then it is send with the AJAX requests. The first thing to check is if the AJAX requests (logged in the Firebug console) have the authentication information.
I don't know how the Kerberos SSO works nor if it integrates well with REST. We need the help of a REST guru here :)
Thanks,
Marius
On Thu, Mar 14, 2013 at 1:37 PM, Mark Jas <mark(a)nieuwenborg.nl> wrote:
> Forgot to mention:
> Catalina.out shows me this:
>
> 2013-03-14 12:35:58,430 [http://xwiki/xwiki/bin/get/Main/WebHome?xpage=xpart&vm=commentsinline.vm] WARN a.t.TrustedLDAPAuthServiceImpl - Failed to resolve remote user. It usually mean that no SSO information has been provided to XWiki.
>
> -----Oorspronkelijk bericht-----
> Van: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Namens
> Mark Jas
> Verzonden: donderdag 14 maart 2013 12:34
> Aan: XWiki Users
> Onderwerp: Re: [xwiki-users] TRANSPORT_ERROR with SSO in tree view
>
> Hi Marius,
>
> I used firebug like you said. Here my findings:
> - Scheme is ok. (all http)
> - hostname is ok (all "xwiki")
> - the console shows me a lot of request with a "401 authorization required" (not only on the tree page, but also on other pages)
> - all the REST request on the tree page have "401 authorization required" responses.
> - No authentication errors in apache logs
> - http://xwiki/xwiki/rest/ with SSO gives me an "Internal Server Error" (no error in apache logs)
> - http://xwiki/xwiki/rest/ without SSO gives me some XML
> - All REST requests I see in the console are the same: http://xwiki/xwiki/rest/wikis/xwiki/spaces?r=221031
>
> Hope you can help.
> Thanks.
> Mark
>
> -----Oorspronkelijk bericht-----
> Van: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Namens
> Marius Dumitru Florea
> Verzonden: donderdag 14 maart 2013 8:22
> Aan: XWiki Users
> Onderwerp: Re: [xwiki-users] TRANSPORT_ERROR with SSO in tree view
>
> On Wed, Mar 13, 2013 at 9:06 PM, Mark Jas <mark(a)nieuwenborg.nl> wrote:
>> Hello,
>>
>>
>> I get a popup with the error “Server returned TRANSPORT_ERROR with no error message.” If I select the tree view in the document index.
>>
>> I’m using xwiki 4.5 with kerberos SSO. If I disable kerberos in apache and use the normal login, everything works just fine.
>>
>> Is this a bug?
>
> Could be. TRANSPORT_ERROR normally happens when a request made by the tree fails (usually because the URL is bad). The tree uses the REST system to fetch its data, so all requests made by the tree are /rest/ requests. It would be of great help if you could tell us what requests are failing (their URL is important). In order to check this you can use Firefox with its Firebug extension. This extension has a Console tab where you can see all the (AJAX) requests made by the editor and its tree, if the console was opened before the page was loaded, otherwise you need to reload the page. The failed requests are displayed in red so they are easy to notice. You can click on each request to get more information, but more importantly you can right click to get the full URL with parameters. Post here the bad URLs and also the URL for the edit mode.
>
> The things to check are:
> * are the REST URLs using the same scheme (HTTP/HTTPS) as the edit mode URL?
> * do they have the same domain?
> * is the REST system working when Kerberos SSO is enabled?
>
> Thanks,
> Marius
>
>>
>>
>> Mark
>>
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Forgot to mention:
Catalina.out shows me this:
2013-03-14 12:35:58,430 [http://xwiki/xwiki/bin/get/Main/WebHome?xpage=xpart&vm=commentsinline.vm] WARN a.t.TrustedLDAPAuthServiceImpl - Failed to resolve remote user. It usually mean that no SSO information has been provided to XWiki.
-----Oorspronkelijk bericht-----
Van: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Namens Mark Jas
Verzonden: donderdag 14 maart 2013 12:34
Aan: XWiki Users
Onderwerp: Re: [xwiki-users] TRANSPORT_ERROR with SSO in tree view
Hi Marius,
I used firebug like you said. Here my findings:
- Scheme is ok. (all http)
- hostname is ok (all "xwiki")
- the console shows me a lot of request with a "401 authorization required" (not only on the tree page, but also on other pages)
- all the REST request on the tree page have "401 authorization required" responses.
- No authentication errors in apache logs
- http://xwiki/xwiki/rest/ with SSO gives me an "Internal Server Error" (no error in apache logs)
- http://xwiki/xwiki/rest/ without SSO gives me some XML
- All REST requests I see in the console are the same: http://xwiki/xwiki/rest/wikis/xwiki/spaces?r=221031
Hope you can help.
Thanks.
Mark
-----Oorspronkelijk bericht-----
Van: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Namens Marius Dumitru Florea
Verzonden: donderdag 14 maart 2013 8:22
Aan: XWiki Users
Onderwerp: Re: [xwiki-users] TRANSPORT_ERROR with SSO in tree view
On Wed, Mar 13, 2013 at 9:06 PM, Mark Jas <mark(a)nieuwenborg.nl> wrote:
> Hello,
>
>
> I get a popup with the error “Server returned TRANSPORT_ERROR with no error message.” If I select the tree view in the document index.
>
> I’m using xwiki 4.5 with kerberos SSO. If I disable kerberos in apache and use the normal login, everything works just fine.
>
> Is this a bug?
Could be. TRANSPORT_ERROR normally happens when a request made by the tree fails (usually because the URL is bad). The tree uses the REST system to fetch its data, so all requests made by the tree are /rest/ requests. It would be of great help if you could tell us what requests are failing (their URL is important). In order to check this you can use Firefox with its Firebug extension. This extension has a Console tab where you can see all the (AJAX) requests made by the editor and its tree, if the console was opened before the page was loaded, otherwise you need to reload the page. The failed requests are displayed in red so they are easy to notice. You can click on each request to get more information, but more importantly you can right click to get the full URL with parameters. Post here the bad URLs and also the URL for the edit mode.
The things to check are:
* are the REST URLs using the same scheme (HTTP/HTTPS) as the edit mode URL?
* do they have the same domain?
* is the REST system working when Kerberos SSO is enabled?
Thanks,
Marius
>
>
> Mark
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Forgot to mention
-----Oorspronkelijk bericht-----
Van: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Namens Mark Jas
Verzonden: donderdag 14 maart 2013 12:34
Aan: XWiki Users
Onderwerp: Re: [xwiki-users] TRANSPORT_ERROR with SSO in tree view
Hi Marius,
I used firebug like you said. Here my findings:
- Scheme is ok. (all http)
- hostname is ok (all "xwiki")
- the console shows me a lot of request with a "401 authorization required" (not only on the tree page, but also on other pages)
- all the REST request on the tree page have "401 authorization required" responses.
- No authentication errors in apache logs
- http://xwiki/xwiki/rest/ with SSO gives me an "Internal Server Error" (no error in apache logs)
- http://xwiki/xwiki/rest/ without SSO gives me some XML
- All REST requests I see in the console are the same: http://xwiki/xwiki/rest/wikis/xwiki/spaces?r=221031
Hope you can help.
Thanks.
Mark
-----Oorspronkelijk bericht-----
Van: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Namens Marius Dumitru Florea
Verzonden: donderdag 14 maart 2013 8:22
Aan: XWiki Users
Onderwerp: Re: [xwiki-users] TRANSPORT_ERROR with SSO in tree view
On Wed, Mar 13, 2013 at 9:06 PM, Mark Jas <mark(a)nieuwenborg.nl> wrote:
> Hello,
>
>
> I get a popup with the error “Server returned TRANSPORT_ERROR with no error message.” If I select the tree view in the document index.
>
> I’m using xwiki 4.5 with kerberos SSO. If I disable kerberos in apache and use the normal login, everything works just fine.
>
> Is this a bug?
Could be. TRANSPORT_ERROR normally happens when a request made by the tree fails (usually because the URL is bad). The tree uses the REST system to fetch its data, so all requests made by the tree are /rest/ requests. It would be of great help if you could tell us what requests are failing (their URL is important). In order to check this you can use Firefox with its Firebug extension. This extension has a Console tab where you can see all the (AJAX) requests made by the editor and its tree, if the console was opened before the page was loaded, otherwise you need to reload the page. The failed requests are displayed in red so they are easy to notice. You can click on each request to get more information, but more importantly you can right click to get the full URL with parameters. Post here the bad URLs and also the URL for the edit mode.
The things to check are:
* are the REST URLs using the same scheme (HTTP/HTTPS) as the edit mode URL?
* do they have the same domain?
* is the REST system working when Kerberos SSO is enabled?
Thanks,
Marius
>
>
> Mark
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hi Marius,
I used firebug like you said. Here my findings:
- Scheme is ok. (all http)
- hostname is ok (all "xwiki")
- the console shows me a lot of request with a "401 authorization required" (not only on the tree page, but also on other pages)
- all the REST request on the tree page have "401 authorization required" responses.
- No authentication errors in apache logs
- http://xwiki/xwiki/rest/ with SSO gives me an "Internal Server Error" (no error in apache logs)
- http://xwiki/xwiki/rest/ without SSO gives me some XML
- All REST requests I see in the console are the same: http://xwiki/xwiki/rest/wikis/xwiki/spaces?r=221031
Hope you can help.
Thanks.
Mark
-----Oorspronkelijk bericht-----
Van: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] Namens Marius Dumitru Florea
Verzonden: donderdag 14 maart 2013 8:22
Aan: XWiki Users
Onderwerp: Re: [xwiki-users] TRANSPORT_ERROR with SSO in tree view
On Wed, Mar 13, 2013 at 9:06 PM, Mark Jas <mark(a)nieuwenborg.nl> wrote:
> Hello,
>
>
> I get a popup with the error “Server returned TRANSPORT_ERROR with no error message.” If I select the tree view in the document index.
>
> I’m using xwiki 4.5 with kerberos SSO. If I disable kerberos in apache and use the normal login, everything works just fine.
>
> Is this a bug?
Could be. TRANSPORT_ERROR normally happens when a request made by the tree fails (usually because the URL is bad). The tree uses the REST system to fetch its data, so all requests made by the tree are /rest/ requests. It would be of great help if you could tell us what requests are failing (their URL is important). In order to check this you can use Firefox with its Firebug extension. This extension has a Console tab where you can see all the (AJAX) requests made by the editor and its tree, if the console was opened before the page was loaded, otherwise you need to reload the page. The failed requests are displayed in red so they are easy to notice. You can click on each request to get more information, but more importantly you can right click to get the full URL with parameters. Post here the bad URLs and also the URL for the edit mode.
The things to check are:
* are the REST URLs using the same scheme (HTTP/HTTPS) as the edit mode URL?
* do they have the same domain?
* is the REST system working when Kerberos SSO is enabled?
Thanks,
Marius
>
>
> Mark
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hello,
I get a popup with the error “Server returned TRANSPORT_ERROR with no error message.” If I select the tree view in the document index.
I’m using xwiki 4.5 with kerberos SSO. If I disable kerberos in apache and use the normal login, everything works just fine.
Is this a bug?
Mark
Hello guys,
I'm checking page about database administration [1], as I would like to
"sanitize" a bit my indexes before going futher with migration to 4.x.
(reason is that clearing problematic data from my stats tables takes
forever, and I think it could be improved with the correct indexes).
>From that page [1], I get the full list of indexes created for xwiki < 3.2,
and the list of indexes that can be created manually, adding to the indexes
created automatically by XWiki.
But the info I would like, is the list of indexes that I should expect to
be created when on XWiki 3.5.
My purpose, is that my "show index" from xwikistatsvisit, for example,
displays a number of duplicate indexes, some using lowercase others
uppercase (waste of space to the least). Also apart from duplications, I'm
now unsure that there are no excessive indexes created to start with (8
indexes on a table seems a bit too much, but I'm no DBA and xwiki schema is
particular).
I could install another xwiki 3.5 instance, on an empty database, and check
the indexes, but if there is a way to find it from the code I'd clearly
prefer ;-) So if you have any pointer on the right location, that would be
very nice.
I'm on MySQL 5.1 by the way.
Thanks & regards,
Jeremie
[1]
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Database+Administration…
Hello,
i have installed the latest XWiki 4.5.1 with the debian package and
installed all content via the new application manager. But now I have an old
XWiki 3.5 instance I want to migrate several spaces from.
I tried to export the wiki as xar and import it again. But the xar file is
over 70mb large and the importer would not accept this large file. I tried
the plugin 'large xar imprter' but it did not work.
So how can I migrate my spaces from the old xwiki to the new one? They
contains just simple pages with text content and some attachments.
--
View this message in context: http://xwiki.475771.n2.nabble.com/migrate-single-spaces-tp7584247.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Check out http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments on how to increase the maximum upload size.
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of DrSarez
Sent: Tuesday, March 12, 2013 5:19 PM
To: users(a)xwiki.org
Subject: [xwiki-users] migrate single spaces
Hello,
i have installed the latest XWiki 4.5.1 with the debian package and installed all content via the new application manager. But now I have an old XWiki 3.5 instance I want to migrate several spaces from.
I tried to export the wiki as xar and import it again. But the xar file is over 70mb large and the importer would not accept this large file. I tried the plugin 'large xar imprter' but it did not work.
So how can I migrate my spaces from the old xwiki to the new one? They contains just simple pages with text content and some attachments.
--
View this message in context: http://xwiki.475771.n2.nabble.com/migrate-single-spaces-tp7584247.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hi all,
I admit that I am a Tomcat rookie. That being said, I have been
struggling with out-of-memory/permgen issues for a while now with no
progress. I have looked at this:
http://www.xwiki.org/xwiki/bin/view/FAQ/HowToSolveAJavaHeapMemoryError
...but I have not been successful in adjusting my settings. I am running
on Windows 2008 R2 64-bit with 12gb available RAM. I am trying to allocate
at least 4gb to run Xwiki, since nothing else is running on this server
(other than MySQL). I run Tomcat as a service, if that matters. I have
been using the Groovy function "${Runtime.getRuntime().maxMemory()}" to
keep an eye on my heap size. It stays at 259522560 bytes (247.5mb) no
matter what I do. I have tried setting a CATALINA_OPTS system variable
with the following settings:
-Xms2096m -Xmx=4096m -XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled
I have also tried going into the Java tab on the Tomcat properties window
and setting the values there:
-DXms2096m
-DXmx4096m
-DXX:MaxPermSize=1024m
-DXX:+CMSClassUnloadingEnabled
-DXX:+CMSPermGenSweepingEnabled
So what am I doing wrong? Or is it my understanding that is off - is that
Groovy function not really telling me the allocated memory? Any advice
would be greatly appreciated.
Thanks!
- Matt L.
Hi xwikiers,
I just released a new authenticator on
http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+Authenticator+Tr…
.
* extract the user id from the remote user and automatically create related
XWiki user profile
* allow using different LDAP configuration depending on what is in the
remote user
* synchronize user related information and group membership from LDAP (use
the standard LDAP authenticator for this actually)
Enjoy :)
--
Thomas Mortagne