Uploaded image for project: 'XWiki MS Office Integration'
  1. XWiki MS Office Integration
  2. XOFFICE-217

Login fails when app context is not set to "xwiki"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 1.2 M2
    • 1.1 M2
    • Connectivity, UI Commons
    • None
    • Any servlet container, Windows XP or higher, XWiki 2.0.4 or newer.

    Description

      if the url to XWiki is not http://serverAdressOrName/xwiki then XOffice can't login

      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>
      <methodName>confluence1.login</methodName>
      <params>
      <param>
      <value>
      <string>glets</string>
      </value>
      </param>
      <param>
      <value>
      <string>glets</string>
      </value>
      </param>
      </params>
      </methodCall>GET
      /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

      • Show quoted text -

      <?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" />
      <title>XWikiLogin
      (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";
      window.docediturl = "/xwiki%2Denterprise%2Dweb%2D2.2/bin/edit/XWiki/XWikiLogin";
      window.docsaveurl = "/xwiki%2Denterprise%2Dweb%2D2.2/bin/save/XWiki/XWikiLogin";
      // ]]>
      </script>
      <script type='text/javascript'
      src='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/scriptaculous/effects.js'></script><script
      type='text/javascript'
      src='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/widgets/modalPopup.js'></script><script
      type='text/javascript'
      src='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/widgets/jumpToPage.js'></script><script
      type='text/javascript'
      src='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/uicomponents/widgets/confirmationBox.js'></script><script
      type='text/javascript'
      src='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/uicomponents/widgets/confirmedAjaxRequest.js'></script><script
      type='text/javascript'
      src='/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/uicomponents/widgets/notification.js'></script>
      <script type='text/javascript'
      src='/xwiki%2Denterprise%2Dweb%2D2.2/bin/jsx/XWiki/WebDAV?language=fr'></script>
      <script type="text/javascript"
      src="/xwiki%2Denterprise%2Dweb%2D2.2/bin/skin/resources/js/xwiki/compatibility.js"></script>

      </head>
      <body id="body" class="xwiki loginbody hideleft">
      <div id="xwikimaincontainer">
      <div id="xwikimaincontainerinner">

      <div id="menuview">
      <div id="mainmenu" class="layoutsubsection actionmenu">
      <strong id="xwikimenutitle" class="hidden">Actions générales :</strong>
      <div class="rightmenu">
      <div id="tmRegister" class="tmRegister topmenuentry "><a class="tme"
      href="/xwiki%2Denterprise%2Dweb%2D2.2/bin/register/XWiki/Register"><strong>Inscription</strong></a></div>
      </div>
      <div class="leftmenu">
      <div id="tmWiki" class="tmWiki topmenuentry hasIcon"><a class="tme"
      href="/xwiki%2Denterprise%2Dweb%2D2.2/bin/view/Main/"><strong>xwiki</strong></a></div>
      <div id="tmSpace" class="tmSpace topmenuentry hasIcon"><a
      class="tme" href="/xwiki%2Denterprise%2Dweb%2D2.2/bin/view/XWiki/"><strong>XWiki</strong></a></div>
      </div>
      </div>

      </div>
      <div id="headerglobal" class="layoutsection">
      <div class="minwidthd"></div>
      <div id="company">
      <div id="companylogo">
      <a href="/xwiki%2Denterprise%2Dweb%2D2.2/bin/view/Main/"
      title="Home" rel="home">
      <img src="/xwiki%2Denterprise%2Dweb%2D2.2/skins/colibri/logo.png"
      alt="Wiki Logo"/>
      </a>
      </div> </div> <div id="globallinks">
      <form action="/xwiki%2Denterprise%2Dweb%2D2.2/bin/view/Main/WebSearch">
      <div class="globalsearch">
      <label class="hidden"
      for="headerglobalsearchinput">Recherche</label><input
      class="globalsearchinput withTip" id="headerglobalsearchinput"
      type="text" name="text" value="Chercher..." size="15"/><input
      class="button" type="image" value="Go" alt="Go"
      src="/xwiki%2Denterprise%2Dweb%2D2.2/resources/icons/xwiki/search.png"/>
      </div>
      </form>
      <span class="glink" id="headerlanguages">
      <a href="/xwiki%2Denterprise%2Dweb%2D2.2/bin/view/XWiki/XWikiLogin?language=default"
      class="language-default language-current">default</a>
      </span>
      </div> <div class="clearfloats"></div>
      </div>

      <div class="contenthideleft" id="contentcontainer">
      <div id="contentcontainerinner">
      <div class="leftsidecolumns">
      <div id="contentcolumn">
      <div class="main layoutsubsection">
      <div id="mainContentArea">
      <form id="loginForm"
      action="/xwiki%2Denterprise%2Dweb%2D2.2/bin/loginsubmit/XWiki/XWikiLogin"
      method="post">
      <div class="hidden"><input type="hidden" name="xredirect" value=""/>
      <input type="hidden" name="srid" value="zBr9ZDFG"/>

      • Hide quoted text -
        </div>
        <div class="centered">
        <fieldset class="xwikimessage">
        <legend>Identification</legend>
        <p class="xwikimessage"></p>
        <table class="xwikilogintable" summary="loginform">
        <tr><th><label for="j_username">Nom d'Utilisateur:</label></th>
        <td><input type="text" id="j_username" name="j_username" value=""/></td></tr>
        <tr><th><label for="j_password">Mot de Passe:</label></th>
        <td><input type="password" id="j_password" name="j_password"
        value=""/></td></tr>
        <tr><td colspan="2" style="text-align: left;"><input id="rememberme"
        type="checkbox" name="j_rememberme" value="true"/><label
        for="rememberme">Retenez mes identifiants</label></td></tr>
        </table>
        <div class="buttons"><span class="buttonwrapper"><input type="submit"
        class="button" value="Identification"/></span></div>
        <div style="font-size: 70%; margin-top: 2em;">Forgot your <a
        href="/xwiki%2Denterprise%2Dweb%2D2.2/bin/view/XWiki/ForgotUsername">username</a>
        or <a href="/xwiki%2Denterprise%2Dweb%2D2.2/bin/view/XWiki/ResetPassword">password</a>?</div>
        </fieldset>
        </div>
        </form>
        </div></div><script type="text/javascript">
        //<![CDATA[
        document.forms.loginForm.j_username.focus();
        //]]>
        </script>
        </div>
        </div><div id="rightPanels" class="panels right">
        </div>

      <div class="clearfloats"></div>
      </div></div><div id="footerglobal" class="layoutsection">
      <div class="minwidth"></div>
      <hr/>
      <div id="xwikilicence">This wiki is licensed under a <a
      href="http://creativecommons.org/licenses/by/2.0/">Creative Commons
      2.0</a> license</div>
      <div id="xwikiplatformversion">XWiki Enterprise 2.2.27100 -
      <a onclick="openURL('http://enterprise.xwiki.org/xwiki/bin/view/Main/Documentation',
      '_blank'); return false;"
      href="http://www.xwiki.org/xwiki/bin/view/Main/Documentation">Documentation</a></div>
      <hr/>
      </div>

      </div></div></body>
      </html>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              simonglet@gmail.com Simon Glet
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: