Re: [xwiki-users] migrating from .war to Debain apt package

2016-01-05 Thread Eduard Moraru
Hi, Make sure you read the error message that says "Check the rights of its last author" (i.e. no the creator). Script rights are checked on the last content author of the document and, if in your migration you haven`t given script rights to that user, all his scripts will stop functioning. Hope

Re: [xwiki-users] XWiki java client authentication

2016-01-05 Thread Eduard Moraru
Hi, As per the documentation [1], have you tried using HTTP Auth? Your application can be Java or it can even be a bash script using the cURL command, just to an HTTP PUT Thanks, Eduard P.S.: The comments section [2] of the documentation doc also seem to have the information you seem to need.

Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net
You might be using some wrong API. I’ve tested this and it works fine: {{velocity}} * Is page Main.TestPage deleted: $xwiki.getDocument('Main.TestPage').isNew() #set ($newDoc = $xwiki.getDocument('Main.TestPage')) #set ($discard = $newDoc.setContent('test')) #set ($discard = $newDoc.save()) * Is

Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Thomas Mortagne
He is talking about XWikiDocument so I guess he is using com.xpn.xwiki.XWiki and not the scripting API. On Tue, Jan 5, 2016 at 4:47 PM, vinc...@massol.net wrote: > Note that there’s no deleteDocument() in the class represented by the $xwiki > binding so IMO you’ve just not

Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Giordano Ninonà
Well, I am not performing these modification from velocity, I am doing it in Java. Following the java method that I expose through the script service: public void removeInstance(String iName) throws XWikiException { XWikiContext xcontext = this.xwikiContextProvider.get(); XWiki

Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net
On 5 Jan 2016 at 18:35:18, Giordano Ninonà (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote: > Well, I am not performing these modification from velocity, I am doing it in > Java. Following the java method that I expose through the script service: > > public void

Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Giordano Ninonà
How can I get the fullname of a page? Giordano. 2016-01-05 16:45 GMT+01:00 vinc...@massol.net : > You might be using some wrong API. > > I’ve tested this and it works fine: > > {{velocity}} > * Is page Main.TestPage deleted: > $xwiki.getDocument('Main.TestPage').isNew() >

Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Marius Dumitru Florea
On Tue, Jan 5, 2016 at 5:20 PM, Giordano Ninonà wrote: > Hi users, > > I'm developing a java component that offer APIs accessed through script > services to perfom modification to the wiki. > > > When I delete a document (thus the related page I guessed) from my java

[xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Giordano Ninonà
Hi users, I'm developing a java component that offer APIs accessed through script services to perfom modification to the wiki. When I delete a document (thus the related page I guessed) from my java code with the "*.deleteDocument(doc, context)*", on my browser I see the last modification as a

Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net
Note that there’s no deleteDocument() in the class represented by the $xwiki binding so IMO you’ve just not deleted anything :) Thanks -Vincent On 5 Jan 2016 at 16:45:30, vinc...@massol.net (vinc...@massol.net) wrote: You might be using some wrong API. I’ve tested this and it works fine:

Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net
Hi, On 5 Jan 2016 at 16:20:52, Giordano Ninonà (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote: > Hi users, > > I'm developing a java component that offer APIs accessed through script > services to perfom modification to the wiki. > > When I delete a document (thus the

Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread vinc...@massol.net
The fact that you see it in the AS is normal and expected. This is a log of everything that was done to documents. However the doc should no longer appear in the Dashboard Tree. Thanks -Vincent On 5 Jan 2016 at 16:39:02, Giordano Ninonà (giordano.nin...@gmail.com) wrote: Hi Vincent, I mean

Re: [xwiki-users] migrating from .war to Debain apt package

2016-01-05 Thread shouldbe q931
On Tue, Jan 5, 2016 at 9:13 AM, Eduard Moraru wrote: > Hi, > > Make sure you read the error message that says "Check the rights of its > last author" (i.e. no the creator). Script rights are checked on the last > content author of the document and, if in your migration you

Re: [xwiki-users] Why deleted page still appear in the UI?

2016-01-05 Thread Giordano Ninonà
Hi Vincent, I mean that I can see the deletion on the Activity Stream, with "tree representation" I mean the pages' tree in the Dashboard and I didn't noticed any error. Thanks, Giordano. 2016-01-05 16:25 GMT+01:00 vinc...@massol.net : > Hi, > > On 5 Jan 2016 at 16:20:52,

Re: [xwiki-users] How to avoid nested space?

2016-01-05 Thread Marius Dumitru Florea
On Tue, Jan 5, 2016 at 4:45 PM, Zhou Tianling wrote: > I have tried this below on 7.3-release. > {{documentTree compact="true" showTranslations="false" > showAttachments="false" root="wiki:xwiki" limit="200" /}} > But “limit” do not works. > Indeed, I just tested on 7.3,

Re: [xwiki-users] How to avoid nested space?

2016-01-05 Thread Zhou Tianling
I have tried this below on 7.3-release. {{documentTree compact="true" showTranslations="false" showAttachments="false" root="wiki:xwiki" limit="200" /}} But “limit” do not works. 在 16/1/5 下午9:35,“users 代表 Marius Dumitru Florea” 写入:

Re: [xwiki-users] New Page Has No Parent

2016-01-05 Thread Eduard Moraru
Hi Randy, From your choice of words (and your continued usage of the now deprecated "spaces" macro on the homepage, as observed in the screenshot you`ve provided), I understand that you still see things in terms of "creating spaces" and "creating documents inside spaces" in 7.4 and, IMO, that`s

Re: [xwiki-users] [myxwiki] new wiki request

2016-01-05 Thread Thomas Mortagne
You can access your new wiki on http://enoughforall.myxwiki.org. Enjoy ! On Tue, Jan 5, 2016 at 2:52 AM, Metamechanic wrote: > Hi. > > I’d like to register a second new community Xwiki please. > > Description: > > It is a wiki called Enough For All. > > It is designed to

Re: [xwiki-users] How to avoid nested space?

2016-01-05 Thread Marius Dumitru Florea
On Tue, Jan 5, 2016 at 2:35 PM, vinc...@massol.net wrote: > Hi, > > On 5 Jan 2016 at 10:09:27, KirbY ZhoU (kirbyz...@gmail.com(mailto: > kirbyz...@gmail.com)) wrote: > > > Sorry for reply so later, I have taken a vacation for days. > > Hope you had some nice holidays! :) > >

Re: [xwiki-users] How to avoid nested space?

2016-01-05 Thread vinc...@massol.net
On 5 Jan 2016 at 14:29:11, Marius Dumitru Florea (mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) wrote: > On Tue, Jan 5, 2016 at 2:35 PM, vinc...@massol.net > wrote: > > > Hi, > > > > On 5 Jan 2016 at 10:09:27, KirbY ZhoU (kirbyz...@gmail.com(mailto: > >

Re: [xwiki-users] How to avoid nested space?

2016-01-05 Thread vinc...@massol.net
Hi, On 5 Jan 2016 at 10:09:27, KirbY ZhoU (kirbyz...@gmail.com(mailto:kirbyz...@gmail.com)) wrote: > Sorry for reply so later, I have taken a vacation for days. Hope you had some nice holidays! :) > Actually, I modified Dashboard.WebHome after upgrade, and use {{spaces}} > macro which comes