Re: [xwiki-users] XOffice : login problem

2010-02-26 Thread hel-o

Hi,

is there a issue for that now?

We got the same problem and in the documentation theres a description how to
get short URLs which includes that you change the 'xwiki' directory to
'ROOT'

http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs

So i think that you should be able to have that setting. Mayby a advanced
settings option would prevent the normal user to see 'strange settings'.

Thanks
hel.

-
semantic-web.hel.at
h...@hel.at

-- 
View this message in context: 
http://n2.nabble.com/XOffice-login-problem-tp4626421p4637738.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XOffice : login problem

2010-02-26 Thread Florin Ciubotaru
Hi hel,

On 2/26/2010 10:11 AM, hel-o wrote:
 Hi,

 is there a issue for that now?

No there's no jira issue for now. If you need this, please create it and 
I'll implement it.
 We got the same problem and in the documentation theres a description how to
 get short URLs which includes that you change the 'xwiki' directory to
 'ROOT'

 http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs

 So i think that you should be able to have that setting. Mayby a advanced
 settings option would prevent the normal user to see 'strange settings'.

 Thanks
 hel.

 -
 semantic-web.hel.at
 h...@hel.at



___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XOffice : login problem

2010-02-26 Thread Simon Glet
Hi Guillaume,

Off course ! Thanks for the perspective update : the Entreprise
Manager ... If the url path to one of the instances is not
http://server/xwiki then the XOffice login will not work. This is just
a wild guess.

We don't, yet, need multiple instances of xwiki so I won't be testing
XOffice login in such a configuration but I will add a ticket in jira.

Thanks
Simon Glet

On Thu, Feb 25, 2010 at 6:16 PM, Guillaume Lerouge guilla...@xwiki.com wrote:
 Hi Simon,

 On Thu, Feb 25, 2010 at 9:46 PM, Simon Glet simon.g...@gmail.com wrote:

 I see ... Well, I find that renaming the deployment directory to xwiki
 doesn't allow having multiple versions or instances of XWiki at the
 same time. I don't know if it's a realistic scenario but it came to
 mind first.


 You could use XWiki Enterprise Manager (http://manager.xwiki.org/) if you
 need to have multiple XWiki instances though...

 Guillaume

 Thanks for the workarounds, I will try them and keep you posted.

 Best Regards
 Simon Glet

 On Thu, Feb 25, 2010 at 10:55 AM, Florin Ciubotaru
 florin.ciubot...@xwiki.com wrote:
  Hi Simon,
 
  Looks like your wiki is redirecting to the login page. This happens
  because XOffice only uses xwiki as an application context, and
  detects the xmlrpc servlet mapping in a wrong manner.
  I now remember thinking at this potential issue since I developed the
  connectivity module. I've been hesitating to allow more flexibility on
  this because nobody requested it until now and because this will force
  every user to fill in more strange settings in XOffice. I tend to think
  it's more efficient having an admin configuring some settings then all
  users doing the same thing ;)
 
  There are two quick fixes for this:
  1) Redeploy XWiki using an xwiki directory instead of
  xwiki-enterprise-web-2.2
  2) Reconfigure the xmlrpc servler mapping to fit the XOffice request. In
  order to do this, go to /WEB-INF/web.xml and  look for:
 
  servlet-mapping
  servlet-namexmlrpc/servlet-name
  url-pattern/xmlrpc/*/url-pattern
  /servlet-mapping
 
  Then change /xmlrpc/* with *xmlrpc/.
 
  I think going for option 1) is best.
  If you feel more flexibility is still needed then please create a jira
  issue and I'll try to implement in one of the following releases.
 
  Florin Ciubotaru
 
  On 2/25/2010 3:41 PM, Simon Glet wrote:
  Sure no problem.
 
  The POST is :
 
  POST /xwiki-enterprise-web-2.2/xwiki/xmlrpc HTTP/1.1
  Content-Type: text/xml
  User-Agent: XML-RPC.NET
  Host: localhost:8088
  Content-Length: 301
  Connection: Keep-Alive
 
  ?xml version=1.0?
  methodCall
     methodNameconfluence1.login/methodName
     params
       param
         value
           stringglets/string
         /value
       /param
       param
         value
           stringglets/string
         /value
       /param
     /params
  /methodCallGET
 
 /xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin;jsessionid=1F2EB5326C1409EEFC1EE399CFF89426?srid=zBr9ZDFG
  HTTP/1.1
  Content-Type: text/xml
  User-Agent: XML-RPC.NET
  Host: localhost:8088
  Cookie: JSESSIONID=1F2EB5326C1409EEFC1EE399CFF89426
 
  and the response is :
 
  HTTP/1.1 302 Moved Temporarily
  Server: Apache-Coyote/1.1
  Set-Cookie: JSESSIONID=1F2EB5326C1409EEFC1EE399CFF89426;
  Path=/xwiki-enterprise-web-2.2
  Location:
 http://localhost:8088/xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin;jsessionid=1F2EB5326C1409EEFC1EE399CFF89426?srid=zBr9ZDFG
  Content-Type: text/html;charset=ISO-8859-1
  Content-Language: fr
  Content-Length: 0
  Date: Thu, 25 Feb 2010 13:37:56 GMT
 
  HTTP/1.1 401 Unauthorized
  Server: Apache-Coyote/1.1
  Pragma: no-cache
  Cache-Control: no-cache
  Expires: Wed, 31 Dec 1969 23:59:59 GMT
  Content-Type: text/html;charset=UTF-8
  Content-Language: fr
  Content-Length: 9381
  Date: Thu, 25 Feb 2010 13:37:56 GMT
 
  ?xml version=1.0 encoding=UTF-8 ?
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
       http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
  html xmlns=http://www.w3.org/1999/xhtml; lang=fr xml:lang=fr
     head
                       meta http-equiv=Content-Type
  content=text/html; charset=UTF-8 /
                                       titleXWikiLogin
  (XWiki.XWikiLogin) - XWiki/title
                   meta http-equiv=Content-Script-Type
  content=text/javascript /
                           meta http-equiv=imagetoolbar content=no/
                                               meta name=document
  content=XWiki.XWikiLogin/
       meta name=space content=XWiki/
       meta name=page content=XWikiLogin/
       meta name=version content=1.1/
                       meta name=gwt:property content=locale=fr /
                   meta http-equiv=Content-Type content=text/html;
  charset=UTF-8 /
  meta name=revisit-after content=7 days /
  meta name=description content=XWikiLogin /
  meta name=keywords content=wiki /
  meta name=distribution content=GLOBAL /
  meta name=rating content=General /
  meta name=author content= /
  meta 

Re: [xwiki-users] XOffice : login problem

2010-02-25 Thread Florin Ciubotaru
Hi,

On 2/24/2010 5:16 PM, Simon Glet wrote:
 Hi,

 In order to track my XOffice login problem I installed a HTTP
 forwarder,logger TcpTrace V0.8.1.717. The tool forwards everything
 from 8088 to 8090 and back.

 With the following configuration in XOffice:
 Server URL : 
 http://localhost:8088/xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin

This should be:

http://localhost:8088/xwiki-enterprise-web-2.2

You previously said that this failes too. Please post the response for 
this url.

Thanks,
Florin Ciubotaru
 User Name : glets
 Password : glets

 The POST is :
 POST /xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin/xwiki/xmlrpc 
 HTTP/1.1
 Content-Type: text/xml
 User-Agent: XML-RPC.NET
 Host: localhost:8088
 Content-Length: 301
 Connection: Keep-Alive

 ?xml version=1.0?
 methodCall
methodNameconfluence1.login/methodName
params
  param
value
  stringglets/string
/value
  /param
  param
value
  stringglets/string
/value
  /param
/params
 /methodCall

 And the reply is :

 HTTP/1.1 401 Unauthorized
 Server: Apache-Coyote/1.1
 Set-Cookie: JSESSIONID=ADA423739BC3AEC52BBDE47074073A15;
 Path=/xwiki-enterprise-web-2.2
 Pragma: no-cache
 Cache-Control: no-cache
 Expires: Wed, 31 Dec 1969 23:59:59 GMT
 Content-Type: text/html;charset=UTF-8
 Content-Language: fr
 Content-Length: 9329
 Date: Wed, 24 Feb 2010 14:57:18 GMT

 ?xml version=1.0 encoding=UTF-8 ?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; lang=fr xml:lang=fr
head
  meta http-equiv=Content-Type
 content=text/html; charset=UTF-8 /
  titleXWikiLogin
 (XWiki.XWikiLogin) - XWiki/title
  meta http-equiv=Content-Script-Type
 content=text/javascript /
  meta http-equiv=imagetoolbar content=no/
  meta name=document
 content=XWiki.XWikiLogin/
  meta name=space content=XWiki/
  meta name=page content=XWikiLogin/
  meta name=version content=1.1/
  meta name=gwt:property content=locale=fr /
  meta http-equiv=Content-Type content=text/html;
 charset=UTF-8 /
 meta name=revisit-after content=7 days /
 meta name=description content=XWikiLogin /
 meta name=keywords content=wiki /
 meta name=distribution content=GLOBAL /
 meta name=rating content=General /
 meta name=author content= /
 meta http-equiv=reply-to content= /
 meta name=language content=fr /

  !-- com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin --
  link 
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/style.css
 rel=stylesheet type=text/css media=all /
 link href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/print.css
 rel=stylesheet type=text/css media=print /
  !--[if IE]
link 
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/ie%2Dall.css
 rel=stylesheet type=text/css /
 ![endif]--
 !--[if IE 6]
link 
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/ie%2D6.css
 rel=stylesheet type=text/css /
 ![endif]--

 link rel='stylesheet' type='text/css'
 href='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/widgets/modalPopup.css'/link
 rel='stylesheet' type='text/css'
 href='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/widgets/jumpToPage.css'/link
 rel='stylesheet' type='text/css'
 href='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/uicomponents/widgets/confirmationBox.css'/link
 rel='stylesheet' type='text/css'
 href='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/uicomponents/widgets/notification.css'/


  link 
 href=/xwiki%2Denterprise%2Dweb%2D2.2/resources/js/xwiki/suggest/ajaxSuggest.css
 rel=stylesheet type=text/css /
 link 
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/lightbox/lightbox.css
 rel=stylesheet type=text/css /
 !--[if IE]
link 
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/lightbox/lightboxIE.css
 rel=stylesheet type=text/css /
 ![endif]--

 script type=text/javascript
 src=/xwiki%2Denterprise%2Dweb%2D2.2/resources/js/prototype/prototype.js/script
 script type=text/javascript
 src=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/xwiki.js/script
 script type=text/javascript
 src=/xwiki%2Denterprise%2Dweb%2D2.2/resources/js/xwiki/suggest/ajaxSuggest.js/script
 script type=text/javascript
 //![CDATA[
 XWiki.webapppath = xwiki-enterprise-web-2.2/;
 XWiki.servletpath = bin/;
 XWiki.contextPath = /xwiki-enterprise-web-2.2;
 XWiki.mainWiki = xwiki;
 XWiki.currentWiki = xwiki;
 XWiki.currentSpace = XWiki;
 XWiki.editor = ;
 XWiki.viewer = ;
 XWiki.contextaction = login;
 XWiki.docisnew = true;
 XWiki.docsyntax = xwiki/2.0;
 XWiki.blacklistedSpaces = [
 

Re: [xwiki-users] XOffice : login problem

2010-02-25 Thread Simon Glet
Sure no problem.

The POST is :

POST /xwiki-enterprise-web-2.2/xwiki/xmlrpc HTTP/1.1
Content-Type: text/xml
User-Agent: XML-RPC.NET
Host: localhost:8088
Content-Length: 301
Connection: Keep-Alive

?xml version=1.0?
methodCall
  methodNameconfluence1.login/methodName
  params
param
  value
stringglets/string
  /value
/param
param
  value
stringglets/string
  /value
/param
  /params
/methodCallGET
/xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin;jsessionid=1F2EB5326C1409EEFC1EE399CFF89426?srid=zBr9ZDFG
HTTP/1.1
Content-Type: text/xml
User-Agent: XML-RPC.NET
Host: localhost:8088
Cookie: JSESSIONID=1F2EB5326C1409EEFC1EE399CFF89426

and the response is :

HTTP/1.1 302 Moved Temporarily
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=1F2EB5326C1409EEFC1EE399CFF89426;
Path=/xwiki-enterprise-web-2.2
Location: 
http://localhost:8088/xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin;jsessionid=1F2EB5326C1409EEFC1EE399CFF89426?srid=zBr9ZDFG
Content-Type: text/html;charset=ISO-8859-1
Content-Language: fr
Content-Length: 0
Date: Thu, 25 Feb 2010 13:37:56 GMT

HTTP/1.1 401 Unauthorized
Server: Apache-Coyote/1.1
Pragma: no-cache
Cache-Control: no-cache
Expires: Wed, 31 Dec 1969 23:59:59 GMT
Content-Type: text/html;charset=UTF-8
Content-Language: fr
Content-Length: 9381
Date: Thu, 25 Feb 2010 13:37:56 GMT

?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html xmlns=http://www.w3.org/1999/xhtml; lang=fr xml:lang=fr
  head
meta http-equiv=Content-Type
content=text/html; charset=UTF-8 /
titleXWikiLogin
(XWiki.XWikiLogin) - XWiki/title
meta http-equiv=Content-Script-Type
content=text/javascript /
meta http-equiv=imagetoolbar content=no/
meta name=document
content=XWiki.XWikiLogin/
meta name=space content=XWiki/
meta name=page content=XWikiLogin/
meta name=version content=1.1/
meta name=gwt:property content=locale=fr /
meta http-equiv=Content-Type content=text/html;
charset=UTF-8 /
meta name=revisit-after content=7 days /
meta name=description content=XWikiLogin /
meta name=keywords content=wiki /
meta name=distribution content=GLOBAL /
meta name=rating content=General /
meta name=author content= /
meta http-equiv=reply-to content= /
meta name=language content=fr /

!-- com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin --
link 
href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/style.css
rel=stylesheet type=text/css media=all /
link href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/print.css
rel=stylesheet type=text/css media=print /
!--[if IE]
  link 
href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/ie%2Dall.css
rel=stylesheet type=text/css /
![endif]--
!--[if IE 6]
  link href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/ie%2D6.css
rel=stylesheet type=text/css /
![endif]--

link rel='stylesheet' type='text/css'
href='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/widgets/modalPopup.css'/link
rel='stylesheet' type='text/css'
href='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/widgets/jumpToPage.css'/link
rel='stylesheet' type='text/css'
href='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/uicomponents/widgets/confirmationBox.css'/link
rel='stylesheet' type='text/css'
href='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/uicomponents/widgets/notification.css'/


link 
href=/xwiki%2Denterprise%2Dweb%2D2.2/resources/js/xwiki/suggest/ajaxSuggest.css
rel=stylesheet type=text/css /
link 
href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/lightbox/lightbox.css
rel=stylesheet type=text/css /
!--[if IE]
  link 
href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/lightbox/lightboxIE.css
rel=stylesheet type=text/css /
![endif]--










script type=text/javascript
src=/xwiki%2Denterprise%2Dweb%2D2.2/resources/js/prototype/prototype.js/script
script type=text/javascript
src=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/xwiki.js/script
script type=text/javascript
src=/xwiki%2Denterprise%2Dweb%2D2.2/resources/js/xwiki/suggest/ajaxSuggest.js/script
script type=text/javascript
// ![CDATA[
XWiki.webapppath = xwiki-enterprise-web-2.2/;
XWiki.servletpath = bin/;
XWiki.contextPath = /xwiki-enterprise-web-2.2;
XWiki.mainWiki = xwiki;
XWiki.currentWiki = xwiki;
XWiki.currentSpace = XWiki;
XWiki.editor = ;
XWiki.viewer = ;
XWiki.contextaction = login;
XWiki.docisnew = true;
XWiki.docsyntax = xwiki/2.0;
XWiki.blacklistedSpaces = [
Import,Panels,Scheduler,Stats,XAppClasses,XAppSheets,XAppTemplates,XWiki,WatchCode,WatchSheets,XApp,WatchAdmin,Watch,ColorThemes
];
XWiki.hasEdit = false;
window.docviewurl = /xwiki%2Denterprise%2Dweb%2D2.2/bin/view/XWiki/XWikiLogin;

Re: [xwiki-users] XOffice : login problem

2010-02-25 Thread Florin Ciubotaru
Hi Simon,

Looks like your wiki is redirecting to the login page. This happens 
because XOffice only uses xwiki as an application context, and 
detects the xmlrpc servlet mapping in a wrong manner.
I now remember thinking at this potential issue since I developed the 
connectivity module. I've been hesitating to allow more flexibility on 
this because nobody requested it until now and because this will force 
every user to fill in more strange settings in XOffice. I tend to think 
it's more efficient having an admin configuring some settings then all 
users doing the same thing ;)

There are two quick fixes for this:
1) Redeploy XWiki using an xwiki directory instead of 
xwiki-enterprise-web-2.2
2) Reconfigure the xmlrpc servler mapping to fit the XOffice request. In 
order to do this, go to /WEB-INF/web.xml and  look for:

servlet-mapping
servlet-namexmlrpc/servlet-name
url-pattern/xmlrpc/*/url-pattern
/servlet-mapping

Then change /xmlrpc/* with *xmlrpc/.

I think going for option 1) is best.
If you feel more flexibility is still needed then please create a jira 
issue and I'll try to implement in one of the following releases.

Florin Ciubotaru

On 2/25/2010 3:41 PM, Simon Glet wrote:
 Sure no problem.

 The POST is :

 POST /xwiki-enterprise-web-2.2/xwiki/xmlrpc HTTP/1.1
 Content-Type: text/xml
 User-Agent: XML-RPC.NET
 Host: localhost:8088
 Content-Length: 301
 Connection: Keep-Alive

 ?xml version=1.0?
 methodCall
methodNameconfluence1.login/methodName
params
  param
value
  stringglets/string
/value
  /param
  param
value
  stringglets/string
/value
  /param
/params
 /methodCallGET
 /xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin;jsessionid=1F2EB5326C1409EEFC1EE399CFF89426?srid=zBr9ZDFG
 HTTP/1.1
 Content-Type: text/xml
 User-Agent: XML-RPC.NET
 Host: localhost:8088
 Cookie: JSESSIONID=1F2EB5326C1409EEFC1EE399CFF89426

 and the response is :

 HTTP/1.1 302 Moved Temporarily
 Server: Apache-Coyote/1.1
 Set-Cookie: JSESSIONID=1F2EB5326C1409EEFC1EE399CFF89426;
 Path=/xwiki-enterprise-web-2.2
 Location: 
 http://localhost:8088/xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin;jsessionid=1F2EB5326C1409EEFC1EE399CFF89426?srid=zBr9ZDFG
 Content-Type: text/html;charset=ISO-8859-1
 Content-Language: fr
 Content-Length: 0
 Date: Thu, 25 Feb 2010 13:37:56 GMT

 HTTP/1.1 401 Unauthorized
 Server: Apache-Coyote/1.1
 Pragma: no-cache
 Cache-Control: no-cache
 Expires: Wed, 31 Dec 1969 23:59:59 GMT
 Content-Type: text/html;charset=UTF-8
 Content-Language: fr
 Content-Length: 9381
 Date: Thu, 25 Feb 2010 13:37:56 GMT

 ?xml version=1.0 encoding=UTF-8 ?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; lang=fr xml:lang=fr
head
  meta http-equiv=Content-Type
 content=text/html; charset=UTF-8 /
  titleXWikiLogin
 (XWiki.XWikiLogin) - XWiki/title
  meta http-equiv=Content-Script-Type
 content=text/javascript /
  meta http-equiv=imagetoolbar content=no/
  meta name=document
 content=XWiki.XWikiLogin/
  meta name=space content=XWiki/
  meta name=page content=XWikiLogin/
  meta name=version content=1.1/
  meta name=gwt:property content=locale=fr /
  meta http-equiv=Content-Type content=text/html;
 charset=UTF-8 /
 meta name=revisit-after content=7 days /
 meta name=description content=XWikiLogin /
 meta name=keywords content=wiki /
 meta name=distribution content=GLOBAL /
 meta name=rating content=General /
 meta name=author content= /
 meta http-equiv=reply-to content= /
 meta name=language content=fr /

  !-- com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin --
  link 
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/style.css
 rel=stylesheet type=text/css media=all /
 link href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/print.css
 rel=stylesheet type=text/css media=print /
  !--[if IE]
link 
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/ie%2Dall.css
 rel=stylesheet type=text/css /
 ![endif]--
 !--[if IE 6]
link 
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/ie%2D6.css
 rel=stylesheet type=text/css /
 ![endif]--

 link rel='stylesheet' type='text/css'
 href='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/widgets/modalPopup.css'/link
 rel='stylesheet' type='text/css'
 href='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/widgets/jumpToPage.css'/link
 rel='stylesheet' type='text/css'
 href='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/uicomponents/widgets/confirmationBox.css'/link
 rel='stylesheet' type='text/css'
 href='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/uicomponents/widgets/notification.css'/


  link 
 

Re: [xwiki-users] XOffice : login problem

2010-02-25 Thread Simon Glet
I see ... Well, I find that renaming the deployment directory to xwiki
doesn't allow having multiple versions or instances of XWiki at the
same time. I don't know if it's a realistic scenario but it came to
mind first.

Thanks for the workarounds, I will try them and keep you posted.

Best Regards
Simon Glet

On Thu, Feb 25, 2010 at 10:55 AM, Florin Ciubotaru
florin.ciubot...@xwiki.com wrote:
 Hi Simon,

 Looks like your wiki is redirecting to the login page. This happens
 because XOffice only uses xwiki as an application context, and
 detects the xmlrpc servlet mapping in a wrong manner.
 I now remember thinking at this potential issue since I developed the
 connectivity module. I've been hesitating to allow more flexibility on
 this because nobody requested it until now and because this will force
 every user to fill in more strange settings in XOffice. I tend to think
 it's more efficient having an admin configuring some settings then all
 users doing the same thing ;)

 There are two quick fixes for this:
 1) Redeploy XWiki using an xwiki directory instead of
 xwiki-enterprise-web-2.2
 2) Reconfigure the xmlrpc servler mapping to fit the XOffice request. In
 order to do this, go to /WEB-INF/web.xml and  look for:

 servlet-mapping
 servlet-namexmlrpc/servlet-name
 url-pattern/xmlrpc/*/url-pattern
 /servlet-mapping

 Then change /xmlrpc/* with *xmlrpc/.

 I think going for option 1) is best.
 If you feel more flexibility is still needed then please create a jira
 issue and I'll try to implement in one of the following releases.

 Florin Ciubotaru

 On 2/25/2010 3:41 PM, Simon Glet wrote:
 Sure no problem.

 The POST is :

 POST /xwiki-enterprise-web-2.2/xwiki/xmlrpc HTTP/1.1
 Content-Type: text/xml
 User-Agent: XML-RPC.NET
 Host: localhost:8088
 Content-Length: 301
 Connection: Keep-Alive

 ?xml version=1.0?
 methodCall
    methodNameconfluence1.login/methodName
    params
      param
        value
          stringglets/string
        /value
      /param
      param
        value
          stringglets/string
        /value
      /param
    /params
 /methodCallGET
 /xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin;jsessionid=1F2EB5326C1409EEFC1EE399CFF89426?srid=zBr9ZDFG
 HTTP/1.1
 Content-Type: text/xml
 User-Agent: XML-RPC.NET
 Host: localhost:8088
 Cookie: JSESSIONID=1F2EB5326C1409EEFC1EE399CFF89426

 and the response is :

 HTTP/1.1 302 Moved Temporarily
 Server: Apache-Coyote/1.1
 Set-Cookie: JSESSIONID=1F2EB5326C1409EEFC1EE399CFF89426;
 Path=/xwiki-enterprise-web-2.2
 Location: 
 http://localhost:8088/xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin;jsessionid=1F2EB5326C1409EEFC1EE399CFF89426?srid=zBr9ZDFG
 Content-Type: text/html;charset=ISO-8859-1
 Content-Language: fr
 Content-Length: 0
 Date: Thu, 25 Feb 2010 13:37:56 GMT

 HTTP/1.1 401 Unauthorized
 Server: Apache-Coyote/1.1
 Pragma: no-cache
 Cache-Control: no-cache
 Expires: Wed, 31 Dec 1969 23:59:59 GMT
 Content-Type: text/html;charset=UTF-8
 Content-Language: fr
 Content-Length: 9381
 Date: Thu, 25 Feb 2010 13:37:56 GMT

 ?xml version=1.0 encoding=UTF-8 ?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
      http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; lang=fr xml:lang=fr
    head
                      meta http-equiv=Content-Type
 content=text/html; charset=UTF-8 /
                                      titleXWikiLogin
 (XWiki.XWikiLogin) - XWiki/title
                  meta http-equiv=Content-Script-Type
 content=text/javascript /
                          meta http-equiv=imagetoolbar content=no/
                                              meta name=document
 content=XWiki.XWikiLogin/
      meta name=space content=XWiki/
      meta name=page content=XWikiLogin/
      meta name=version content=1.1/
                      meta name=gwt:property content=locale=fr /
                  meta http-equiv=Content-Type content=text/html;
 charset=UTF-8 /
 meta name=revisit-after content=7 days /
 meta name=description content=XWikiLogin /
 meta name=keywords content=wiki /
 meta name=distribution content=GLOBAL /
 meta name=rating content=General /
 meta name=author content= /
 meta http-equiv=reply-to content= /
 meta name=language content=fr /

                  !-- com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin --
      link 
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/style.css
 rel=stylesheet type=text/css media=all /
 link href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/print.css
 rel=stylesheet type=text/css media=print /
          !--[if IE]
    link 
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/ie%2Dall.css
 rel=stylesheet type=text/css /
 ![endif]--
 !--[if IE 6]
    link 
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/ie%2D6.css
 rel=stylesheet type=text/css /
 ![endif]--

 link rel='stylesheet' type='text/css'
 href='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/widgets/modalPopup.css'/link
 

Re: [xwiki-users] XOffice : login problem

2010-02-25 Thread Jeremie BOUSQUET
It's possible but you have to update xwiki.cfg to indicate the name of the
new wiki, and possibly create another catalog in database, and update
hibernate.hbm.xml accordingly.

(This is from memory as I don't have access to my instances right now)

Jeremie

2010/2/25 Simon Glet simon.g...@gmail.com

 I see ... Well, I find that renaming the deployment directory to xwiki
 doesn't allow having multiple versions or instances of XWiki at the
 same time. I don't know if it's a realistic scenario but it came to
 mind first.

 Thanks for the workarounds, I will try them and keep you posted.

 Best Regards
 Simon Glet

 On Thu, Feb 25, 2010 at 10:55 AM, Florin Ciubotaru
 florin.ciubot...@xwiki.com wrote:
  Hi Simon,
 
  Looks like your wiki is redirecting to the login page. This happens
  because XOffice only uses xwiki as an application context, and
  detects the xmlrpc servlet mapping in a wrong manner.
  I now remember thinking at this potential issue since I developed the
  connectivity module. I've been hesitating to allow more flexibility on
  this because nobody requested it until now and because this will force
  every user to fill in more strange settings in XOffice. I tend to think
  it's more efficient having an admin configuring some settings then all
  users doing the same thing ;)
 
  There are two quick fixes for this:
  1) Redeploy XWiki using an xwiki directory instead of
  xwiki-enterprise-web-2.2
  2) Reconfigure the xmlrpc servler mapping to fit the XOffice request. In
  order to do this, go to /WEB-INF/web.xml and  look for:
 
  servlet-mapping
  servlet-namexmlrpc/servlet-name
  url-pattern/xmlrpc/*/url-pattern
  /servlet-mapping
 
  Then change /xmlrpc/* with *xmlrpc/.
 
  I think going for option 1) is best.
  If you feel more flexibility is still needed then please create a jira
  issue and I'll try to implement in one of the following releases.
 
  Florin Ciubotaru
 
  On 2/25/2010 3:41 PM, Simon Glet wrote:
  Sure no problem.
 
  The POST is :
 
  POST /xwiki-enterprise-web-2.2/xwiki/xmlrpc HTTP/1.1
  Content-Type: text/xml
  User-Agent: XML-RPC.NET
  Host: localhost:8088
  Content-Length: 301
  Connection: Keep-Alive
 
  ?xml version=1.0?
  methodCall
 methodNameconfluence1.login/methodName
 params
   param
 value
   stringglets/string
 /value
   /param
   param
 value
   stringglets/string
 /value
   /param
 /params
  /methodCallGET
 
 /xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin;jsessionid=1F2EB5326C1409EEFC1EE399CFF89426?srid=zBr9ZDFG
  HTTP/1.1
  Content-Type: text/xml
  User-Agent: XML-RPC.NET
  Host: localhost:8088
  Cookie: JSESSIONID=1F2EB5326C1409EEFC1EE399CFF89426
 
  and the response is :
 
  HTTP/1.1 302 Moved Temporarily
  Server: Apache-Coyote/1.1
  Set-Cookie: JSESSIONID=1F2EB5326C1409EEFC1EE399CFF89426;
  Path=/xwiki-enterprise-web-2.2
  Location:
 http://localhost:8088/xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin;jsessionid=1F2EB5326C1409EEFC1EE399CFF89426?srid=zBr9ZDFG
  Content-Type: text/html;charset=ISO-8859-1
  Content-Language: fr
  Content-Length: 0
  Date: Thu, 25 Feb 2010 13:37:56 GMT
 
  HTTP/1.1 401 Unauthorized
  Server: Apache-Coyote/1.1
  Pragma: no-cache
  Cache-Control: no-cache
  Expires: Wed, 31 Dec 1969 23:59:59 GMT
  Content-Type: text/html;charset=UTF-8
  Content-Language: fr
  Content-Length: 9381
  Date: Thu, 25 Feb 2010 13:37:56 GMT
 
  ?xml version=1.0 encoding=UTF-8 ?
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
  html xmlns=http://www.w3.org/1999/xhtml; lang=fr xml:lang=fr
 head
   meta http-equiv=Content-Type
  content=text/html; charset=UTF-8 /
   titleXWikiLogin
  (XWiki.XWikiLogin) - XWiki/title
   meta http-equiv=Content-Script-Type
  content=text/javascript /
   meta http-equiv=imagetoolbar content=no/
   meta name=document
  content=XWiki.XWikiLogin/
   meta name=space content=XWiki/
   meta name=page content=XWikiLogin/
   meta name=version content=1.1/
   meta name=gwt:property content=locale=fr /
   meta http-equiv=Content-Type content=text/html;
  charset=UTF-8 /
  meta name=revisit-after content=7 days /
  meta name=description content=XWikiLogin /
  meta name=keywords content=wiki /
  meta name=distribution content=GLOBAL /
  meta name=rating content=General /
  meta name=author content= /
  meta http-equiv=reply-to content= /
  meta name=language content=fr /
 
   !-- com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin --
   link
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/style.css
  rel=stylesheet type=text/css media=all /
  link
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/print.css
  rel=stylesheet type=text/css media=print /
   

Re: [xwiki-users] XOffice : login problem

2010-02-25 Thread Guillaume Lerouge
Hi Simon,

On Thu, Feb 25, 2010 at 9:46 PM, Simon Glet simon.g...@gmail.com wrote:

 I see ... Well, I find that renaming the deployment directory to xwiki
 doesn't allow having multiple versions or instances of XWiki at the
 same time. I don't know if it's a realistic scenario but it came to
 mind first.


You could use XWiki Enterprise Manager (http://manager.xwiki.org/) if you
need to have multiple XWiki instances though...

Guillaume

Thanks for the workarounds, I will try them and keep you posted.

 Best Regards
 Simon Glet

 On Thu, Feb 25, 2010 at 10:55 AM, Florin Ciubotaru
 florin.ciubot...@xwiki.com wrote:
  Hi Simon,
 
  Looks like your wiki is redirecting to the login page. This happens
  because XOffice only uses xwiki as an application context, and
  detects the xmlrpc servlet mapping in a wrong manner.
  I now remember thinking at this potential issue since I developed the
  connectivity module. I've been hesitating to allow more flexibility on
  this because nobody requested it until now and because this will force
  every user to fill in more strange settings in XOffice. I tend to think
  it's more efficient having an admin configuring some settings then all
  users doing the same thing ;)
 
  There are two quick fixes for this:
  1) Redeploy XWiki using an xwiki directory instead of
  xwiki-enterprise-web-2.2
  2) Reconfigure the xmlrpc servler mapping to fit the XOffice request. In
  order to do this, go to /WEB-INF/web.xml and  look for:
 
  servlet-mapping
  servlet-namexmlrpc/servlet-name
  url-pattern/xmlrpc/*/url-pattern
  /servlet-mapping
 
  Then change /xmlrpc/* with *xmlrpc/.
 
  I think going for option 1) is best.
  If you feel more flexibility is still needed then please create a jira
  issue and I'll try to implement in one of the following releases.
 
  Florin Ciubotaru
 
  On 2/25/2010 3:41 PM, Simon Glet wrote:
  Sure no problem.
 
  The POST is :
 
  POST /xwiki-enterprise-web-2.2/xwiki/xmlrpc HTTP/1.1
  Content-Type: text/xml
  User-Agent: XML-RPC.NET
  Host: localhost:8088
  Content-Length: 301
  Connection: Keep-Alive
 
  ?xml version=1.0?
  methodCall
 methodNameconfluence1.login/methodName
 params
   param
 value
   stringglets/string
 /value
   /param
   param
 value
   stringglets/string
 /value
   /param
 /params
  /methodCallGET
 
 /xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin;jsessionid=1F2EB5326C1409EEFC1EE399CFF89426?srid=zBr9ZDFG
  HTTP/1.1
  Content-Type: text/xml
  User-Agent: XML-RPC.NET
  Host: localhost:8088
  Cookie: JSESSIONID=1F2EB5326C1409EEFC1EE399CFF89426
 
  and the response is :
 
  HTTP/1.1 302 Moved Temporarily
  Server: Apache-Coyote/1.1
  Set-Cookie: JSESSIONID=1F2EB5326C1409EEFC1EE399CFF89426;
  Path=/xwiki-enterprise-web-2.2
  Location:
 http://localhost:8088/xwiki-enterprise-web-2.2/bin/login/XWiki/XWikiLogin;jsessionid=1F2EB5326C1409EEFC1EE399CFF89426?srid=zBr9ZDFG
  Content-Type: text/html;charset=ISO-8859-1
  Content-Language: fr
  Content-Length: 0
  Date: Thu, 25 Feb 2010 13:37:56 GMT
 
  HTTP/1.1 401 Unauthorized
  Server: Apache-Coyote/1.1
  Pragma: no-cache
  Cache-Control: no-cache
  Expires: Wed, 31 Dec 1969 23:59:59 GMT
  Content-Type: text/html;charset=UTF-8
  Content-Language: fr
  Content-Length: 9381
  Date: Thu, 25 Feb 2010 13:37:56 GMT
 
  ?xml version=1.0 encoding=UTF-8 ?
  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
  html xmlns=http://www.w3.org/1999/xhtml; lang=fr xml:lang=fr
 head
   meta http-equiv=Content-Type
  content=text/html; charset=UTF-8 /
   titleXWikiLogin
  (XWiki.XWikiLogin) - XWiki/title
   meta http-equiv=Content-Script-Type
  content=text/javascript /
   meta http-equiv=imagetoolbar content=no/
   meta name=document
  content=XWiki.XWikiLogin/
   meta name=space content=XWiki/
   meta name=page content=XWikiLogin/
   meta name=version content=1.1/
   meta name=gwt:property content=locale=fr /
   meta http-equiv=Content-Type content=text/html;
  charset=UTF-8 /
  meta name=revisit-after content=7 days /
  meta name=description content=XWikiLogin /
  meta name=keywords content=wiki /
  meta name=distribution content=GLOBAL /
  meta name=rating content=General /
  meta name=author content= /
  meta http-equiv=reply-to content= /
  meta name=language content=fr /
 
   !-- com.xpn.xwiki.plugin.skinx.LinkExtensionPlugin --
   link
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/style.css
  rel=stylesheet type=text/css media=all /
  link
 href=/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/skins/colibri/print.css
  rel=stylesheet type=text/css media=print /
   !--[if IE]
 link