[xwiki-users] Content and diff field are contradicting

2009-06-23 Thread johan.moreau
hello,

I run xwiki 1.9 and I have multiple problems :

* When I edit part of a page, only that part is kept and the rest is lost
* When I edit a page, i lost the history (only SuperAdmin can view and
restore from the history)
* WhatsNew doesn't display modification

All this error appears since the upgrade to 1.9 version

In my log, 2 lines are repeated :
* [WARNING] Deprecated usage of getter [com.xpn.xwiki.api.Document.getWeb]
* WARN  rcs.XWikiPatch - isDiff: Patch is inconsistent. Content and diff
field are contradicting

My installation of xwiki is very very old. I maintain the same bdd
(mysql) since the version 0.7 (and older yet, I think). Early June, I
updated from 1.2 to 1.8 and few days later, 1.8 to 1.9.

Any help would be greatly appreciated.
Thank you very much,

Johan

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


[xwiki-users] Content and diff field are contradicting

2009-06-23 Thread johan.moreau
hello,

I run xwiki 1.9 and I have multiple problems :

* When I edit part of a page, only that part is kept and the rest is lost
* When I edit a page, i lost the history (only SuperAdmin can view and
restore from the history)
* WhatsNew doesn't display modification

All this error appears since the upgrade to 1.9 version

In my log, 2 lines are repeated :
* [WARNING] Deprecated usage of getter [com.xpn.xwiki.api.Document.getWeb]
* WARN  rcs.XWikiPatch - isDiff: Patch is inconsistent. Content and diff
field are contradicting

My installation of xwiki is very very old. I maintain the same bdd
(mysql) since the version 0.7 (and older yet, I think). Early June, I
updated from 1.2 to 1.8 and few days later, 1.8 to 1.9.

Any help would be greatly appreciated.
Thank you very much,

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


Re: [xwiki-users] Problem creating user on XWiki 1.9 on Firefox (Ubuntu Jaunty 64bits)

2009-06-23 Thread Hoani Cross
Looking further on what should be involved in this bug, I analyse the output
HTML code. Thus, the buttons are associated with the following javascript :

...
trtd colspan=3 id=tdAddNewUserOrGroup
  span class=buttonwrappera href=# id=addNewUser
class=addNewUserOrGroupAjouter un nouvel utilisateur/a/span

/td/tr
  /table

   script type=text/javascript
  //![CDATA[
   var ta = new XWiki.widgets.LiveTable(?xpage=getusers,
userstable, displayUsers);
Event.observe($('addNewUser'), click,
makeAddHandler(/kiaora/bin/view/XWiki/XWikiPreferences?xpage=registeruser,
/kiaora/bin/register/XWiki/XWikiPreferences?xpage=registeruser,
/kiaora/bin/admin/XWiki/XWikiPreferences?editor=globaladminsection=Users));
 //]]
...

 as you may noticed, the context of my xwiki install is 'kiaora'. Then I
look for the corresponding js objet XWiki, which, I presume, should be
declared in the header :

...
script type=text/javascript
src=/kiaora/bin/skin/resources/js/xwiki/xwiki.js/script
...

 When I resolve the following link in my browser (
http://kiaora.globotraders-tahiti.com/kiaora/bin/skin/resources/js/xwiki/xwiki.js),
I get the following output JS code :

Ajax.XWikiRequest = Class.create();

Object.extend(Object.extend(Ajax.XWikiRequest.prototype,
Ajax.Request.prototype), {
  initialize: function(space, docName, options) {

this.transport = Ajax.getTransport();
this.setOptions(options);
this.baseUrl = /xwiki/bin/view;

var onComplete = this.options.onComplete || Prototype.emptyFunction;
this.options.onComplete = (function() {
  this.returnValue(onComplete);
  //onComplete(this.transport);
}).bind(this);

this.request(this.generateUrl(space, docName));
  },

generateUrl: function(space, docName){
return this.baseUrl + / + space + / + docName;
  },

  returnValue: function(callBack) {

if (callBack)
callBack(this.transport);
else
alert(error, callback);
  }
});



var XWiki = Class.create();

XWiki.prototype = {
initialize: function(wikiUrl){this.wikiUrl = wikiUrl;},
getSpaces: function(callBack){
var params = '';
var myAjax = new Ajax.XWikiRequest( Ajax, getSpaces,
{method: 'get', parameters: params, onComplete: getSpacesCallBack} );
},

getSpacesCallBack: function(ajaxResponse){
var xml = ajaxResponse.responseXML;

}
}

 The first thing I noticed is the this.baseUrl = '/xwiki/bin/view' which
should be this.baseUrl = '/kiaora/bin/view'.

I tried to look at the /resources/js/xwiki/xwiki.js file in my exploded war
installation but I did not managed to get any correspondance...
Is this the problem with the button inactivity ?


2009/6/22 Hoani Cross hoani.cr...@globotraders.com

 I opened a bug on Jira : http://jira.xwiki.org/jira/browse/XE-459

 Have a nice day.

 2009/6/22 Hoani Cross hoani.cr...@globotraders.com

 Hi,

 I've just installed XWiki 1.9 in Tomcat using a PostgreSQL database which
 completed *nearly* flawlessly. However, using either the superadmin or the
 Admin user, through the Users panel in the admin, clicking on the 'Add new
 user' button (link : '#') does NOTHING. I need to fix it ASAP since I have
 an important demo tomorrow for one of my clients. Thx.

 --
 Hoani CROSS
 Globotraders Tahiti Founder [http://globotraders-tahiti.com]




 --
 Hoani CROSS
 Globotraders Tahiti Founder [http://globotraders-tahiti.com]




-- 
Hoani CROSS
Globotraders Tahiti Founder [http://globotraders-tahiti.com]
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Problem creating user on XWiki 1.9 on Firefox (Ubuntu Jaunty 64bits)

2009-06-23 Thread Hoani Cross
After analysing the problem further, seems that Tomcat completely messed-up
with the resolve of its URL, thus the
/kiaora/bin/skin/resources/js/xwiki/xwiki.js URL pointed to my
/xwikicontext for a reason I can't determined. Restarting Tomcat
resolved
everything.

2009/6/23 Hoani Cross hoani.cr...@globotraders.com

 Looking further on what should be involved in this bug, I analyse the
 output HTML code. Thus, the buttons are associated with the following
 javascript :

 ...
 trtd colspan=3 id=tdAddNewUserOrGroup
   span class=buttonwrappera href=# id=addNewUser 
 class=addNewUserOrGroupAjouter un nouvel utilisateur/a/span

 /td/tr
   /table

script type=text/javascript
   //![CDATA[
var ta = new XWiki.widgets.LiveTable(?xpage=getusers, userstable, 
 displayUsers);

 Event.observe($('addNewUser'), click, 
 makeAddHandler(/kiaora/bin/view/XWiki/XWikiPreferences?xpage=registeruser, 
 /kiaora/bin/register/XWiki/XWikiPreferences?xpage=registeruser, 
 /kiaora/bin/admin/XWiki/XWikiPreferences?editor=globaladminsection=Users));

  //]]
 ...

  as you may noticed, the context of my xwiki install is 'kiaora'. Then I
 look for the corresponding js objet XWiki, which, I presume, should be
 declared in the header :

 ...
 script type=text/javascript 
 src=/kiaora/bin/skin/resources/js/xwiki/xwiki.js/script

 ...

  When I resolve the following link in my browser (
 http://kiaora.globotraders-tahiti.com/kiaora/bin/skin/resources/js/xwiki/xwiki.js),
 I get the following output JS code :

 Ajax.XWikiRequest = Class.create();

 Object.extend(Object.extend(Ajax.XWikiRequest.prototype, 
 Ajax.Request.prototype), {

   initialize: function(space, docName, options) {

 this.transport = Ajax.getTransport();
 this.setOptions(options);
 this.baseUrl = /xwiki/bin/view;

 var onComplete = this.options.onComplete || Prototype.emptyFunction;
 this.options.onComplete = (function() {

   this.returnValue(onComplete);
   //onComplete(this.transport);
 }).bind(this);

 this.request(this.generateUrl(space, docName));
   },

 generateUrl: function(space, docName){
 return this.baseUrl + / + space + / + docName;

   },

   returnValue: function(callBack) {

 if (callBack)
 callBack(this.transport);
 else

 alert(error, callback);
   }
 });



 var XWiki = Class.create();

 XWiki.prototype = {

 initialize: function(wikiUrl){this.wikiUrl = wikiUrl;},
 getSpaces: function(callBack){
 var params = '';
 var myAjax = new Ajax.XWikiRequest( Ajax, getSpaces, {method: 
 'get', parameters: params, onComplete: getSpacesCallBack} );

 },

 getSpacesCallBack: function(ajaxResponse){
 var xml = ajaxResponse.responseXML;

 }
 }

  The first thing I noticed is the this.baseUrl = '/xwiki/bin/view' which
 should be this.baseUrl = '/kiaora/bin/view'.

 I tried to look at the /resources/js/xwiki/xwiki.js file in my exploded
 war installation but I did not managed to get any correspondance...
 Is this the problem with the button inactivity ?


 2009/6/22 Hoani Cross hoani.cr...@globotraders.com

 I opened a bug on Jira : http://jira.xwiki.org/jira/browse/XE-459

 Have a nice day.

 2009/6/22 Hoani Cross hoani.cr...@globotraders.com

 Hi,

 I've just installed XWiki 1.9 in Tomcat using a PostgreSQL database which
 completed *nearly* flawlessly. However, using either the superadmin or the
 Admin user, through the Users panel in the admin, clicking on the 'Add new
 user' button (link : '#') does NOTHING. I need to fix it ASAP since I have
 an important demo tomorrow for one of my clients. Thx.

 --
 Hoani CROSS
 Globotraders Tahiti Founder [http://globotraders-tahiti.com]




 --
 Hoani CROSS
 Globotraders Tahiti Founder [http://globotraders-tahiti.com]




 --
 Hoani CROSS
 Globotraders Tahiti Founder [http://globotraders-tahiti.com]




-- 
Hoani CROSS
Globotraders Tahiti Founder [http://globotraders-tahiti.com]
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Problem creating user on XWiki 1.9 on Firefox (Ubuntu Jaunty 64bits)

2009-06-23 Thread Guillaume Lerouge
Hi Hoani,

On Tue, Jun 23, 2009 at 1:19 PM, Hoani Cross
hoani.cr...@globotraders.comwrote:

 After analysing the problem further, seems that Tomcat completely messed-up
 with the resolve of its URL, thus the
 /kiaora/bin/skin/resources/js/xwiki/xwiki.js URL pointed to my
 /xwikicontext for a reason I can't determined. Restarting Tomcat
 resolved
 everything.


Glad you found a solution to your issue prior to the demo :-)

Guillaume

2009/6/23 Hoani Cross hoani.cr...@globotraders.com

  Looking further on what should be involved in this bug, I analyse the
  output HTML code. Thus, the buttons are associated with the following
  javascript :
 
  ...
  trtd colspan=3 id=tdAddNewUserOrGroup
span class=buttonwrappera href=# id=addNewUser
 class=addNewUserOrGroupAjouter un nouvel utilisateur/a/span
 
  /td/tr
/table
 
 script type=text/javascript
//![CDATA[
 var ta = new XWiki.widgets.LiveTable(?xpage=getusers,
 userstable, displayUsers);
 
  Event.observe($('addNewUser'), click,
 makeAddHandler(/kiaora/bin/view/XWiki/XWikiPreferences?xpage=registeruser,
 /kiaora/bin/register/XWiki/XWikiPreferences?xpage=registeruser,
 /kiaora/bin/admin/XWiki/XWikiPreferences?editor=globaladminsection=Users));
 
   //]]
  ...
 
   as you may noticed, the context of my xwiki install is 'kiaora'. Then I
  look for the corresponding js objet XWiki, which, I presume, should be
  declared in the header :
 
  ...
  script type=text/javascript
 src=/kiaora/bin/skin/resources/js/xwiki/xwiki.js/script
 
  ...
 
   When I resolve the following link in my browser (
 
 http://kiaora.globotraders-tahiti.com/kiaora/bin/skin/resources/js/xwiki/xwiki.js
 ),
  I get the following output JS code :
 
  Ajax.XWikiRequest = Class.create();
 
  Object.extend(Object.extend(Ajax.XWikiRequest.prototype,
 Ajax.Request.prototype), {
 
initialize: function(space, docName, options) {
 
  this.transport = Ajax.getTransport();
  this.setOptions(options);
  this.baseUrl = /xwiki/bin/view;
 
  var onComplete = this.options.onComplete || Prototype.emptyFunction;
  this.options.onComplete = (function() {
 
this.returnValue(onComplete);
//onComplete(this.transport);
  }).bind(this);
 
  this.request(this.generateUrl(space, docName));
},
 
  generateUrl: function(space, docName){
  return this.baseUrl + / + space + / + docName;
 
},
 
returnValue: function(callBack) {
 
  if (callBack)
  callBack(this.transport);
  else
 
  alert(error, callback);
}
  });
 
 
 
  var XWiki = Class.create();
 
  XWiki.prototype = {
 
  initialize: function(wikiUrl){this.wikiUrl = wikiUrl;},
  getSpaces: function(callBack){
  var params = '';
  var myAjax = new Ajax.XWikiRequest( Ajax, getSpaces,
 {method: 'get', parameters: params, onComplete: getSpacesCallBack} );
 
  },
 
  getSpacesCallBack: function(ajaxResponse){
  var xml = ajaxResponse.responseXML;
 
  }
  }
 
   The first thing I noticed is the this.baseUrl = '/xwiki/bin/view' which
  should be this.baseUrl = '/kiaora/bin/view'.
 
  I tried to look at the /resources/js/xwiki/xwiki.js file in my exploded
  war installation but I did not managed to get any correspondance...
  Is this the problem with the button inactivity ?
 
 
  2009/6/22 Hoani Cross hoani.cr...@globotraders.com
 
  I opened a bug on Jira : http://jira.xwiki.org/jira/browse/XE-459
 
  Have a nice day.
 
  2009/6/22 Hoani Cross hoani.cr...@globotraders.com
 
  Hi,
 
  I've just installed XWiki 1.9 in Tomcat using a PostgreSQL database
 which
  completed *nearly* flawlessly. However, using either the superadmin or
 the
  Admin user, through the Users panel in the admin, clicking on the 'Add
 new
  user' button (link : '#') does NOTHING. I need to fix it ASAP since I
 have
  an important demo tomorrow for one of my clients. Thx.
 
  --
  Hoani CROSS
  Globotraders Tahiti Founder [http://globotraders-tahiti.com]
 
 
 
 
  --
  Hoani CROSS
  Globotraders Tahiti Founder [http://globotraders-tahiti.com]
 
 
 
 
  --
  Hoani CROSS
  Globotraders Tahiti Founder [http://globotraders-tahiti.com]
 



 --
 Hoani CROSS
 Globotraders Tahiti Founder [http://globotraders-tahiti.com]
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
Guillaume Lerouge
Product Manager - XWiki
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XWiki will be on Stand 107 in Halle 7.2a at LinuxTag Berlin

2009-06-23 Thread Guillaume Lerouge
Hi XWikiers,
LinuxTag will be held in Berlin from tomorrow to saturday onwards. I'll be
there to talk about XWiki.

From their website ( http://www.linuxtag.org/ ):

LinuxTag is the most important place for Linux and open source software in
Europe. In 2009, the 15th LinuxTag presents news for professional users,
decision makers, developers, beginners and the Linux community - from 24th
until 27th June on the Fairground in Berlin.

If you're around please come say hello and ask all your questions about
XWiki ;-)

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