Hi Karel,
On 06/15/2011 01:54 PM, Karel Gardas wrote:
Hello Sergiu,
thanks a lot for you hint, when I renamed
xwiki-enterprise-web-3.1-SNAPSHOT to simple xwiki, then after clicking
on<save and view> button I got to normal login screen and when I log in
the page is really created.
If you look at my first reply (with initial suggestions), you`ll see
that I suggested that the actual Save action when completing the
creation of a page should be performed by your wizard`s Finish button
(sending a HTTP request with all the parameters set), otherwise you mix
up the user by having 2 sets of buttons (XWiki`s and the wizard`s).
Now, the only question is how to make authentication
data kind of
persistent between pages so no login page is shown in the wizard.
I don`t really
understand why the Browser does not send back the cookie
received from XWiki (jsessionid). You could use a sniffer and see the
HTTP traffic and check if the cookie is sent by the Browser on the
second request (clicking Save). I have some problems with my Eclipse
setup that prevents me from testing the Browser component.
Thanks,
Eduard
Thanks!
Karel
On 06/15/11 10:44 AM, Sergiu Dumitriu wrote:
On 06/15/2011 09:58 AM, Karel Gardas wrote:
Hi Eduard,
thanks a lot for your prompt reply. The URL I pass directly into
browser's setUrl method is correct. The problem is this is somehow
corrupted xwiki server reply -- I'm talking about this attempt to load
login page. I really set just
http://localhost:8080/xwiki-enterprise-web-3.1-SNAPSHOT/....
Thanks to your help with authentication in setUrl, I've used that and
now I see the browser correctly load the page. Now the problem appears
when I click on<save and view> (or<preview>,<save and continue>),
the
result of this is always redirection to the login page which fails with
the same result like before:
HTTP Status 404 -
/xwiki-enterprise-web-3.1-SNAPSHOThttp://localhost:8080/xwiki-enterprise-web-3.1-SNAPSHOT/bin/login/XWiki/XWikiLogin;jsessionid=7001CAC3C899FC78CA5481E87AA82D06
There are still some problems when the webapp name contains dashes. Try
to rename the application to something without dashes, like simply "xwiki".
> type Status report
>
> message
>
/xwiki-enterprise-web-3.1-SNAPSHOThttp://localhost:8080/xwiki-enterprise-web-3.1-SNAPSHOT/bin/login/XWiki/XWikiLogin;jsessionid=7001CAC3C899FC78CA5481E87AA82D06
>
> description The requested resource
>
(/xwiki-enterprise-web-3.1-SNAPSHOThttp://localhost:8080/xwiki-enterprise-web-3.1-SNAPSHOT/bin/login/XWiki/XWikiLogin;jsessionid=7001CAC3C899FC78CA5481E87AA82D06)
> is not available.
> Apache Tomcat/7.0.12
>
>
> Now my question is how to get the session cookie back from the browser
> after displaying the page? It seems I can use .getCookie method, but I
> don't know cookie's name in this case.
>
> Also I've submitted
http://jira.xwiki.org/jira/browse/XECLIPSE-153 -- as
> per your advice.
>
> Thanks!
> Karel
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs