Re: [xwiki-users] debian installer

2012-01-18 Thread Guillaume Fenollar
Hi,

It is planned, I still have some things to do on this documentation before
the publish it. Moreover, we have still some problems with this package
(during a reinstallation for example).
I will notify you here when it'll be done

Have a nice day

Guillaume Fenollar

2012/1/17 Guillaume Lerouge guilla...@xwiki.com

 Hi Guillaume,

 in the end, did you publish the updated documentation? It would be cool to
 have this on XWiki.org.

 Thanks in advance,

 Guillaume

 On Fri, Dec 30, 2011 at 12:19 AM, Guillaume Fenollar 
 guillaume.fenol...@xwiki.com wrote:

  Hi Volker, and sorry for the delay.
 
  @Vincent : The documentation is in the writting process. I hope I'll have
  some time to work on it.
 
  Ok, so to answer the questions, the debian package is installing XWiki
  package in a common way, putting the configuration files (+ classes,
 fonts,
  etc...) in /etc/xwiki/, and the other files in /usr/lib/xwiki/.
  If you take for example the xwiki-tomcat-mysql package, it depends on
  (which mean they will be installed):
 
- tomcat6. You'll find the configuration files in /etc/tomcat6/. You
 can
configure the process to run in /etc/default/tomcat6 file. a tomcat6
 user
will be created.
- mysql5.x . It will create a xwiki database, granting the xwiki
user to use it. You can configure the credentials of database user for
xwiki in /etc/dbconfig-common/xwiki.com, if you choose to use dbconfig
during the installation.
- And of course, java.
 
  The script to restart tomcat (and of course xwiki) will be
  /etc/init.d/tomcat6. To change the port, you have to check
  /etc/tomcat6/server.xml. The file is well documented. Finally, to check
 the
  xwiki/tomcat logs, the file you need is /var/log/tomcat6/catalina.out.
 
  To put a Apache in a reverse proxy mode, you have to do it manually. It's
  easy to let him work together. What you have to do is to take a look to
 ajp
  module (ProxyPass ajp://yourserver/xwiki). Perhaps we'll add in the
  future an Apache installation package to configure it automatically.
 
  We encourage you to test the packages and the report the errors you may
  meet, especially during the tomcat's start, through the logs.
 
  Regards,
 
  Guillaume Fenollar.
  2011/12/21 Vincent Massol vinc...@massol.net
 
   And also: Do we have a documentation page somewhere on xwiki.org?
  
   Thanks
   -Vincent
  
   On Dec 20, 2011, at 10:47 PM, Legeinfo wrote:
  
Thanks for reply!
What do the package?
Making a MySQL database?
What is the name of database?
How to start Xwiki? ... /etc/init.d/xwiki start
Where to change the port?
Is Apache and Tomcat working together? (I have apache2 on my servers)
...
Volker
  
   ___
   users mailing list
   users@xwiki.org
   http://lists.xwiki.org/mailman/listinfo/users
  
 
 
 
  --
  Guillaume Fenollar
  XWiki SysAdmin
  Tel : +33 (0)1.83.62.65.97
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
Guillaume Fenollar
XWiki SysAdmin
Tel : +33 (0)1.83.62.65.97
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Can't attach files to wiki

2012-01-18 Thread goldring, richard
Turns out all my wiki problems with disappeared attachment, scripts not
running, etc were down to partition /var running out of disk space! So moved
default locations of apache tomcat and mysql to a much bigger partition
using symbolic links to link to the new locations and now all seems well.
Should have checked the obvious (disk space) first! So if anyone else gets
strange behaviour with xwiki - check your disk space first and save yourself
a lot of time and hassle chasing down these 'problems'! 

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
goldring, richard
Sent: 16 January 2012 08:18
To: 'XWiki Users'
Subject: Re: [xwiki-users] Can't attach files to wiki

Yes its strange,

This has happened since migrating from version 2.7 to 3.2. The import of the
wiki pages via Exported xar files seemed to work ok, and the attachments are
listed at the bottom of the wiki pages, butwhen you cick on them to view the
attachments the wiki displays aa error message that the The attachment does
not exist.

Has anyone any idea what's happened and how to fix it?

Thanks.

Regards,

Richard


-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Marius Dumitru Florea
Sent: 13 January 2012 17:32
To: XWiki Users
Subject: Re: [xwiki-users] Can't attach files to wiki

Hi Richard,

Are you talking about the standard Attachments tab at the bottom of a wiki
page? Does it happen all the time? You should get this only if the session
expires. See
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterprise
32#HCSRFpreventionisenabledbydefault
. In XWiki Enterprise 3.2 CSRF has been enabled by default. I haven't heard
any complains so far, at least not related to the attachments upload form.

Hope this helps,
Marius

On Fri, Jan 13, 2012 at 2:36 PM, goldring, richard
richard.goldr...@uk.thalesgroup.com wrote:
 When try to attach files to a wiki page get the following warning page



 Warning

 This request contains an invalid authentication information.

 This might happen in the following situations:

    * You left the editor open in another window/tab and logged off and 
 on again
    * Your authentication token exipired after a long period of 
 inactivity
    * Somebody tried to perform a CSRF attack

 If you are sure that none of these situations apply in your case, you 
 might have found a bug. We are sorry about that, please report it on 
 XWiki JIRA

 Do you want to resend the request? If unsure, say No.
 no


 ... Anyone know what's happening and how to fix it? I'm using XWIKI 
 3.2, Tomcat 5.5 and MySQL 5.

 Thanks.

 Regards,

 Richard

 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On 
 Behalf Of goldring, richard
 Sent: 13 January 2012 09:25
 To: 'XWiki Users'
 Subject: Re: [xwiki-users] Backing up xwiki using mysql

  Thanks Guillaume - it worked a treat - I'll setting up the my.cnf 
 another time, but at least I can backup now!

 Does anyone know more about the recycle bin - don't seem able to 
 access from the wiki, and (I guess any deleted wiki pages or 
 attachments go into it?) the code snippet didn't seem to empty it from 
 the database - any ideas how to empty it?

 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On 
 Behalf Of Guillaume Fenollar
 Sent: 13 January 2012 08:55
 To: XWiki Users
 Subject: Re: [xwiki-users] Backing up xwiki using mysql

 Hi Richard,

 Here a quickfix: use max_allow_packet directive directly into your 
 dump command.

 mysqldump --max_allowed_packet=512m nms_wiki  backup.sql


 If you want to understand this more, you should try to change my.cnf, 
 in the section [mysqldump] (just like there is [client], you could 
 create it if you
 haven't) and try the command without putting max_allowed_packet into 
 the command, it should work too.

 Sincerely,

 --
 Guillaume Fenollar
 XWiki SysAdmin
 Tel : +33 (0)1.83.62.65.97

 2012/1/13 goldring, richard richard.goldr...@uk.thalesgroup.com

 Hi All,

 Running ...
 mysqldump nms_wiki  backup.sql

 Returns ...
 mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet'
 bytes when dumping table `xwikiattrecyclebin` at row: 2

 I did have some rather large import attachments - which I deleted but 
 they seem to have gone into the recycle bin - so I used the code 
 snippet 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Empty+Trash+Bin

 To supposedly empty the bin, but get the same error above when I try 
 and dump the database seeming to indicate the recycle bin isn't empty.

 Tried increasing the max_allowed_packet when I run mysql, but doesn't 
 seem to have any affect - is something overriding it? We're running 
 on
 Solaris.

 Any ideas/help would be appreciated so I can backup the wiki 
 successfully on mysql

 Thanks.

 Regards,

 Richard
 ___
 users mailing list
 

Re: [xwiki-users] Can't attach files to wiki

2012-01-18 Thread Guillaume Lerouge
Hi Richard,

it would be very helpful if you could document the symptoms you experienced
as well as the solution on the new XWiki FAQ:
http://www.xwiki.org/xwiki/bin/view/FAQ/WebHomeNew

Thanks in advance,

Guillaume

On Wed, Jan 18, 2012 at 10:41 AM, goldring, richard 
richard.goldr...@uk.thalesgroup.com wrote:

 Turns out all my wiki problems with disappeared attachment, scripts not
 running, etc were down to partition /var running out of disk space! So
 moved
 default locations of apache tomcat and mysql to a much bigger partition
 using symbolic links to link to the new locations and now all seems well.
 Should have checked the obvious (disk space) first! So if anyone else gets
 strange behaviour with xwiki - check your disk space first and save
 yourself
 a lot of time and hassle chasing down these 'problems'!

 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
 Of
 goldring, richard
 Sent: 16 January 2012 08:18
 To: 'XWiki Users'
 Subject: Re: [xwiki-users] Can't attach files to wiki

 Yes its strange,

 This has happened since migrating from version 2.7 to 3.2. The import of
 the
 wiki pages via Exported xar files seemed to work ok, and the attachments
 are
 listed at the bottom of the wiki pages, butwhen you cick on them to view
 the
 attachments the wiki displays aa error message that the The attachment
 does
 not exist.

 Has anyone any idea what's happened and how to fix it?

 Thanks.

 Regards,

 Richard


 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
 Of
 Marius Dumitru Florea
 Sent: 13 January 2012 17:32
 To: XWiki Users
 Subject: Re: [xwiki-users] Can't attach files to wiki

 Hi Richard,

 Are you talking about the standard Attachments tab at the bottom of a wiki
 page? Does it happen all the time? You should get this only if the session
 expires. See

 http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterprise
 32#HCSRFpreventionisenabledbydefault
 . In XWiki Enterprise 3.2 CSRF has been enabled by default. I haven't heard
 any complains so far, at least not related to the attachments upload form.

 Hope this helps,
 Marius

 On Fri, Jan 13, 2012 at 2:36 PM, goldring, richard
 richard.goldr...@uk.thalesgroup.com wrote:
  When try to attach files to a wiki page get the following warning page
 
 
 
  Warning
 
  This request contains an invalid authentication information.
 
  This might happen in the following situations:
 
 * You left the editor open in another window/tab and logged off and
  on again
 * Your authentication token exipired after a long period of
  inactivity
 * Somebody tried to perform a CSRF attack
 
  If you are sure that none of these situations apply in your case, you
  might have found a bug. We are sorry about that, please report it on
  XWiki JIRA
 
  Do you want to resend the request? If unsure, say No.
  no
 
 
  ... Anyone know what's happening and how to fix it? I'm using XWIKI
  3.2, Tomcat 5.5 and MySQL 5.
 
  Thanks.
 
  Regards,
 
  Richard
 
  -Original Message-
  From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On
  Behalf Of goldring, richard
  Sent: 13 January 2012 09:25
  To: 'XWiki Users'
  Subject: Re: [xwiki-users] Backing up xwiki using mysql
 
   Thanks Guillaume - it worked a treat - I'll setting up the my.cnf
  another time, but at least I can backup now!
 
  Does anyone know more about the recycle bin - don't seem able to
  access from the wiki, and (I guess any deleted wiki pages or
  attachments go into it?) the code snippet didn't seem to empty it from
  the database - any ideas how to empty it?
 
  -Original Message-
  From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On
  Behalf Of Guillaume Fenollar
  Sent: 13 January 2012 08:55
  To: XWiki Users
  Subject: Re: [xwiki-users] Backing up xwiki using mysql
 
  Hi Richard,
 
  Here a quickfix: use max_allow_packet directive directly into your
  dump command.
 
  mysqldump --max_allowed_packet=512m nms_wiki  backup.sql
 
 
  If you want to understand this more, you should try to change my.cnf,
  in the section [mysqldump] (just like there is [client], you could
  create it if you
  haven't) and try the command without putting max_allowed_packet into
  the command, it should work too.
 
  Sincerely,
 
  --
  Guillaume Fenollar
  XWiki SysAdmin
  Tel : +33 (0)1.83.62.65.97
 
  2012/1/13 goldring, richard richard.goldr...@uk.thalesgroup.com
 
  Hi All,
 
  Running ...
  mysqldump nms_wiki  backup.sql
 
  Returns ...
  mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet'
  bytes when dumping table `xwikiattrecyclebin` at row: 2
 
  I did have some rather large import attachments - which I deleted but
  they seem to have gone into the recycle bin - so I used the code
  snippet
  http://extensions.xwiki.org/xwiki/bin/view/Extension/Empty+Trash+Bin
 
  To supposedly empty the bin, but get the same error 

Re: [xwiki-users] Can't attach files to wiki

2012-01-18 Thread Joris Dirks
Interesting! I've had similar, vague problems with other apps due to
write errors due to full disk. I always wonder why the applications
can't give clearer error messages in these cases :)

On Wed, Jan 18, 2012 at 3:48 PM, Guillaume Lerouge guilla...@xwiki.com wrote:
 Hi Richard,

 it would be very helpful if you could document the symptoms you experienced
 as well as the solution on the new XWiki FAQ:
 http://www.xwiki.org/xwiki/bin/view/FAQ/WebHomeNew

 Thanks in advance,

 Guillaume

 On Wed, Jan 18, 2012 at 10:41 AM, goldring, richard 
 richard.goldr...@uk.thalesgroup.com wrote:

 Turns out all my wiki problems with disappeared attachment, scripts not
 running, etc were down to partition /var running out of disk space! So
 moved
 default locations of apache tomcat and mysql to a much bigger partition
 using symbolic links to link to the new locations and now all seems well.
 Should have checked the obvious (disk space) first! So if anyone else gets
 strange behaviour with xwiki - check your disk space first and save
 yourself
 a lot of time and hassle chasing down these 'problems'!

 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
 Of
 goldring, richard
 Sent: 16 January 2012 08:18
 To: 'XWiki Users'
 Subject: Re: [xwiki-users] Can't attach files to wiki

 Yes its strange,

 This has happened since migrating from version 2.7 to 3.2. The import of
 the
 wiki pages via Exported xar files seemed to work ok, and the attachments
 are
 listed at the bottom of the wiki pages, butwhen you cick on them to view
 the
 attachments the wiki displays aa error message that the The attachment
 does
 not exist.

 Has anyone any idea what's happened and how to fix it?

 Thanks.

 Regards,

 Richard


 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
 Of
 Marius Dumitru Florea
 Sent: 13 January 2012 17:32
 To: XWiki Users
 Subject: Re: [xwiki-users] Can't attach files to wiki

 Hi Richard,

 Are you talking about the standard Attachments tab at the bottom of a wiki
 page? Does it happen all the time? You should get this only if the session
 expires. See

 http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterprise
 32#HCSRFpreventionisenabledbydefault
 . In XWiki Enterprise 3.2 CSRF has been enabled by default. I haven't heard
 any complains so far, at least not related to the attachments upload form.

 Hope this helps,
 Marius

 On Fri, Jan 13, 2012 at 2:36 PM, goldring, richard
 richard.goldr...@uk.thalesgroup.com wrote:
  When try to attach files to a wiki page get the following warning page
 
 
 
  Warning
 
  This request contains an invalid authentication information.
 
  This might happen in the following situations:
 
     * You left the editor open in another window/tab and logged off and
  on again
     * Your authentication token exipired after a long period of
  inactivity
     * Somebody tried to perform a CSRF attack
 
  If you are sure that none of these situations apply in your case, you
  might have found a bug. We are sorry about that, please report it on
  XWiki JIRA
 
  Do you want to resend the request? If unsure, say No.
  no
 
 
  ... Anyone know what's happening and how to fix it? I'm using XWIKI
  3.2, Tomcat 5.5 and MySQL 5.
 
  Thanks.
 
  Regards,
 
  Richard
 
  -Original Message-
  From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On
  Behalf Of goldring, richard
  Sent: 13 January 2012 09:25
  To: 'XWiki Users'
  Subject: Re: [xwiki-users] Backing up xwiki using mysql
 
   Thanks Guillaume - it worked a treat - I'll setting up the my.cnf
  another time, but at least I can backup now!
 
  Does anyone know more about the recycle bin - don't seem able to
  access from the wiki, and (I guess any deleted wiki pages or
  attachments go into it?) the code snippet didn't seem to empty it from
  the database - any ideas how to empty it?
 
  -Original Message-
  From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On
  Behalf Of Guillaume Fenollar
  Sent: 13 January 2012 08:55
  To: XWiki Users
  Subject: Re: [xwiki-users] Backing up xwiki using mysql
 
  Hi Richard,
 
  Here a quickfix: use max_allow_packet directive directly into your
  dump command.
 
  mysqldump --max_allowed_packet=512m nms_wiki  backup.sql
 
 
  If you want to understand this more, you should try to change my.cnf,
  in the section [mysqldump] (just like there is [client], you could
  create it if you
  haven't) and try the command without putting max_allowed_packet into
  the command, it should work too.
 
  Sincerely,
 
  --
  Guillaume Fenollar
  XWiki SysAdmin
  Tel : +33 (0)1.83.62.65.97
 
  2012/1/13 goldring, richard richard.goldr...@uk.thalesgroup.com
 
  Hi All,
 
  Running ...
  mysqldump nms_wiki  backup.sql
 
  Returns ...
  mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet'
  bytes when dumping table `xwikiattrecyclebin` at row: 2
 
  I 

[xwiki-users] Problem with document history

2012-01-18 Thread Guillaume Delhumeau
Let me explain you.

1) We have a MyTests.TestClass class which contains a unique field date
of type date.

2) The current document have a single object of type MyTests.TestClass.
You can set whatever you want for the value of the field date.

3) The current document code is:

{{velocity}}
= History =
#set($revs = $doc.getRecentRevisions(10))
#foreach($rev in $revs)
  #set($oldDoc = $doc.getDocumentRevision($rev))
  #set($prop =
$oldDoc.getObject('MyTests.TestClass').getProperty('date').getValue())
  == Rev : $rev ==
  * Class: $prop.class.name
  * Value : $prop
#end
= End History =
{{/velocity}}

4) Do some edit in order to have something to display in the history

5) Here are my results:

History
Rev : 17.1

Class: java.sql.Timestamp
Value : 2012-12-10 00:00:00.0

Rev : 16.1

Class: java.util.Date
Value : Mon Dec 10 00:00:00 CET 2012

Rev : 15.1

Class: java.util.Date
Value : Mon Dec 10 00:00:00 CET 2012

6) The problem is that the field date is a java.sql.Timestamp for the
current version but then become a java.util.Date.

Is it normal ?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Problem with document history

2012-01-18 Thread Sergiu Dumitriu

On 01/18/2012 11:36 AM, Guillaume Delhumeau wrote:

Let me explain you.

1) We have a MyTests.TestClass class which contains a unique field date
of type date.

2) The current document have a single object of type MyTests.TestClass.
You can set whatever you want for the value of the field date.

3) The current document code is:

{{velocity}}
= History =
#set($revs = $doc.getRecentRevisions(10))
#foreach($rev in $revs)
   #set($oldDoc = $doc.getDocumentRevision($rev))
   #set($prop =
$oldDoc.getObject('MyTests.TestClass').getProperty('date').getValue())
   == Rev : $rev ==
   * Class: $prop.class.name
   * Value : $prop
#end
= End History =
{{/velocity}}

4) Do some edit in order to have something to display in the history

5) Here are my results:

History
Rev : 17.1

 Class: java.sql.Timestamp
 Value : 2012-12-10 00:00:00.0

Rev : 16.1

 Class: java.util.Date
 Value : Mon Dec 10 00:00:00 CET 2012

Rev : 15.1

 Class: java.util.Date
 Value : Mon Dec 10 00:00:00 CET 2012

6) The problem is that the field date is a java.sql.Timestamp for the
current version but then become a java.util.Date.

Is it normal ?


It's somewhat normal, meaning that the two classes are compatible, and 
straight from the database we get a Timestamp. I fixed a similar problem 
a long time ago. You should report this on Jira.

--
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Xwiki 2.2.3

2012-01-18 Thread Marius Dumitru Florea
On Mon, Jan 16, 2012 at 6:01 PM, Muthu Vaidyanathan vmsman...@gmail.com wrote:
 Hello Everyone-
 I have two basic requests that I need help on.

 I have installed xwiki (war file) on Jboss app server and made LDAP
 authentication for editing purposes.

 (1) How can I add additional layer of security for certain pages only for a
 specific LDAP sub-group (security group).


 (2) What do I need to do to have the capability of importing MS Office
 documents directly into Xwiki. It is error out stating Open Office Plug-in
 server is not running. I do have Open Office installed and updated the
 config file.

Either the configuration is wrong (double check) or you're trying to
use the latest Open Office (3.3) with XWiki Enterprise 2.2.3 which
doesn't work, see http://jira.xwiki.org/browse/XWIKI-6832 .

Hope this helps,
Marius


 Greatly appreciate the help!
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users