[xwiki-users] How to avoid nested space?

2015-12-22 Thread KirbY ZhoU
How to avoid nested space?

Since the new nested space feature, a lot of nested space such as "XXX.YYY" 
appears in the "Space List" in my home page.
If I want to create a sub page, a new nested space created silently. It becomes 
more and more, and bothers our users. 

I want keep the original simple one level space and documents tree model 
instead of the new nested space model. How can I get it?



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


Re: [xwiki-users] openTo attr of documentTree macro DO NOT work

2015-12-22 Thread KirbY ZhoU
Thanks very much.
It works for me now!





在 15/12/15 上午12:35,“users 代表 Marius Dumitru Florea” 写入:

>This works for me:
>
>{{documentTree hierarchyMode="parentchild" showTranslations="false"
>root="document:xwiki:Sandbox.WebHome" openTo="document:Sandbox.SubPage2" /}}
>
>This too:
>
>{{documentTree hierarchyMode="parentchild" showTranslations="false"
>showSpaces="true" root="space:xwiki:Sandbox"
>openTo="document:Sandbox.SubPage2" /}}
>
>Note that the root must be specified as absolute reference for now, see
>http://jira.xwiki.org/browse/XWIKI-12909 . As for the value of openTo, you
>need to check what is the actual reference of the "SubPage2". It depends on
>how you created it. Check the path in the URL, after the /view/ segment.
>You may have to suffix ".WebHome" if you create SubPage2 as non-terminal
>page (default behaviour in XWiki 7.2+).
>
>Hope this helps,
>Marius
>
>On Mon, Dec 14, 2015 at 5:12 AM, KirbY ZhoU  wrote:
>
>> Xwiki-7.3
>>
>> For example:
>> My page hierarchy looks like:
>>
>> Sandbox.WebHome
>> TestPage1
>> TestPage2
>> TestPage3
>> SubPage1
>> SubPage2
>> SubPage3
>> SubPage3-1
>>
>> I want to create a tree open to 'SubPage2'
>>
>> So the tree should like:
>> *Sandbox.WebHome
>> ** TestPage1
>> ** TestPage2
>> ** TestPage3
>> *** SubPage1
>> *** SubPage2
>> *** SubPage3
>>
>>
>>
>> I have a lot of code such like:
>>
>> {{documentTree root="space:Sandbox" showRoot="false"
>> showTranslations="false" hierarchyMode="parentchild"
>> openTo="document:Sandbox.SubPage1"/}}
>>
>> {{documentTree root="space:Sandbox" showRoot="false"
>> showTranslations="false" hierarchyMode="parentchild"
>> openTo="document:Sandbox.TestPage3.SubPage1"/}}
>>
>>
>> But none of it works; the tree view user seen is always NOT expanded! It
>> has just one level:
>>
>> *Sandbox.WebHome
>>
>>
>> My user have to expand the tree hand by hand.
>>
>> Anyone can help me?
>>
>>
>>
>>
>>
>>
>>
>>
>> ___
>> 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

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


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

2015-12-22 Thread vinc...@massol.net
Hi KirbY,

On 22 Dec 2015 at 21:27:47, KirbY ZhoU 
(kirbyz...@gmail.com(mailto:kirbyz...@gmail.com)) wrote:

> How to avoid nested space?
>  
> Since the new nested space feature, a lot of nested space such as "XXX.YYY" 
> appears in the "Space List" in my home page.
> If I want to create a sub page, a new nested space created silently. It 
> becomes more and more, and bothers our users.
>  
> I want keep the original simple one level space and documents tree model 
> instead of the new nested space model. How can I get it?

The issue is that you haven’t upgraded your home page (the dashboard I 
presume). We have replaced the Space widget with a Documents widget. Normally, 
when you have upgrade you should have had the Distribution Wizard kicking in 
and updating the default wiki pages. Please let us know what you’ve done when 
the Distribution Wizard has executed.

The notion of Spaces has been removed starting with XWiki 7.2+

Please see http://platform.xwiki.org/xwiki/bin/view/Features/ContentOrganization

The introduction of Nested Spaces is a large change and we wish to make it as 
seamless as possible to our users. Please let us know any issue you see and 
we’ll try to help you and see if we can improve things by default so that other 
users have less problems upgrading.

Thanks for your help and patience.
-Vincent

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


Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-22 Thread vinc...@massol.net
Hi Giordano,

On 21 Dec 2015 at 15:20:55, Giordano Ninonà 
(giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:

> Hi users,
>  
> My project in XWiki consists in a java component which offers some APIs
> through a script service called by a Velocity script in a wiki page.
>  
> I put my .jar in the directory C:\XWiki Enterprise
> 7.3\*webapps\xwiki\WEB-INF\lib
> *and this is the Velocity and HTML code that I've put in my XWiki page:
>  
> {{velocity}}
> #if("$!request.evolver" == 1)
> ## Request for creating a new instance
> $services.pars.parse()
> $services.evo.removeInstance("Take bike")
> $response.sendRedirect($xwiki.getURL('Main.WebHome'))
> ## Stop processing, since we already sent a redirect.
> #stop
> #end

[snip]

> Let first say that nothing is happening when I click on the "Evolve" button
> and I don't know why...it looks like it should work, also because creating
> a Main_test class in Eclipse, I can run my software calling exactly the
> same methods and it works!

You could use GET instead of POST and see what you get in the URL (ie whether 
you get the evolver=1 request param).

> Moreover my component must create some files to store some information,
> thus I am wondering where to save those files in order to make them
> accessible by the component.

You can use the XWiki’s permanent directory.

See http://extensions.xwiki.org/xwiki/bin/view/Extension/Environment+Module

Thanks
-Vincent

> Any suggestions?
>  
> Thanks in advance,
> Giordano.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-22 Thread vinc...@massol.net
 


On 22 Dec 2015 at 15:38:48, Giordano Ninonà 
(giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:

> Dear Vincent,
>  
> Tank you for your reply, I would try what you suggested in the afternoon, but 
> regarding the "evolver=1 request param", I've set it equal to 1 together with 
> POST command in order to make it always true ensuring that my component is 
> started every time. My thoughts were wrong?

You said it didn’t work. You just need to debug what’s not working. First thing 
to check is whether you code inside "#if("$!request.evolver" == 1)” is called 
or not.

Also I’d use an #else instead of #stop.

Thanks
-Vincent

> Giordano.
>  
> 2015-12-22 11:31 GMT+01:00 vinc...@massol.net(mailto:vinc...@massol.net) :
> > Hi Giordano,  
> > On 21 Dec 2015 at 15:20:55, Giordano Ninonà 
> > (giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)(mailto:giordano.nin...@gmail.com))
> >  wrote:
> >  
> > > Hi users,
> > >
> > > My project in XWiki consists in a java component which offers some APIs
> > > through a script service called by a Velocity script in a wiki page.
> > >
> > > I put my .jar in the directory C:\XWiki Enterprise
> > > 7.3\*webapps\xwiki\WEB-INF\lib
> > > *and this is the Velocity and HTML code that I've put in my XWiki page:
> > >
> > > {{velocity}}
> > > #if("$!request.evolver" == 1)
> > > ## Request for creating a new instance
> > > $services.pars.parse()
> > > $services.evo.removeInstance("Take bike")
> > > $response.sendRedirect($xwiki.getURL('Main.WebHome'))
> > > ## Stop processing, since we already sent a redirect.
> > > #stop
> > > #end  
> >  
> > [snip]  
> >  
> > > Let first say that nothing is happening when I click on the "Evolve" 
> > > button
> > > and I don't know why...it looks like it should work, also because creating
> > > a Main_test class in Eclipse, I can run my software calling exactly the
> > > same methods and it works!  
> >  
> > You could use GET instead of POST and see what you get in the URL (ie 
> > whether you get the evolver=1 request param).  
> >  
> > > Moreover my component must create some files to store some information,
> > > thus I am wondering where to save those files in order to make them
> > > accessible by the component.  
> >  
> > You can use the XWiki’s permanent directory.  
> >  
> > See http://extensions.xwiki.org/xwiki/bin/view/Extension/Environment+Module 
> >  
> >  
> > Thanks  
> > -Vincent
> >  
> > > Any suggestions?
> > >
> > > Thanks in advance,
> > > Giordano.
>  

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


[xwiki-users] XWiki java client authentication

2015-12-22 Thread Bryn Jeffries
Hello,

I need to write a small Java utility to interact with my XWiki server - it's 
main purpose is to take a file containing paths to various files, and then 
upload (POST) them to the server. It looks as though this cannot be done from 
within the browser directly since sandboxing prevents working with file paths 
directly.

Having read through the RESTful client information 
(http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI) I am not 
sure I need to completely go down this route as I don't need access to 
representations of the XWiki objects. AFAICS I will simply need to GET and POST 
to specific URLs of the wiki. However, I would greatly appreciate advice on how 
best to handle authentication. Guest users are not allowed, so username and 
password should be provided, and in some way a session needs to be maintained. 
Are there any simple examples for logging in to XWiki and maintaining a session 
from within a Java client? I'm wondering if I still might need the RESTful API 
for this, but the documentation doesn't really cover this in detail.

Thanks,

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


[xwiki-users] Active Directory / LDAP lockouts

2015-12-22 Thread Harrison Lambeth
Hey all,

I have an instance of XWiki running that is integrated with Active Directory. 
99% of the time, users are able to log in without issues. However, once in a 
while (every month or two), a user will get kicked off (signed out and their 
credentials no longer work). After a couple hours, they are able to log in 
perfectly fine. During this time, other users have no login issues and using a 
different browser, clearing cookies/cache, etc do not seem to help at all. 
Additionally, the user can still log into other systems that use Active 
Directory with those same credentials. It also doesn't look like this is 
happening because of a password reset as far as I can tell; today a user was 
locked out but their last password reset was last week some time.

Does anyone have any ideas about what might be causing this, or at least know 
how to narrow it down to figure out if it's an XWiki issue or if it's something 
else? I have been poking around through the log files but I haven't been able 
to see anything out of the ordinary.

Thanks,
Harrison


American Express made the following annotations
**
"This message and any attachments are solely for the intended recipient and may 
contain confidential or privileged information. If you are not the intended 
recipient, any disclosure, copying, use, or distribution of the information 
included in this message and any attachments is prohibited. If you have 
received this communication in error, please notify us by reply e-mail and 
immediately and permanently delete this message and any attachments. Thank you."

American Express a ajouté le commentaire suivant le Ce courrier et toute pièce 
jointe qu'il contient sont réservés au seul destinataire indiqué et peuvent 
renfermer des 
renseignements confidentiels et privilégiés. Si vous n'êtes pas le destinataire 
prévu, toute divulgation, duplication, utilisation ou distribution du courrier 
ou de toute pièce jointe est interdite. Si vous avez reçu cette communication 
par erreur, veuillez nous en aviser par courrier et détruire immédiatement le 
courrier et les pièces jointes. Merci.

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


Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-22 Thread Ludovic Dubost
Isn't the problem that it should be

#if("$!request.evolver" == "1")

And not

#if("$!request.evolver" == 1)

Ludo
Le 22 déc. 2015 21:32, "Giordano Ninonà"  a
écrit :

> Dear Vincent,
>
> Tank you for your reply, I would try what you suggested in the afternoon,
> but regarding the "evolver=1 request param", I've set it equal to 1
> together with POST command in order to make it always true ensuring that my
> component is started every time. My thoughts were wrong?
>
> Giordano.
>
> 2015-12-22 11:31 GMT+01:00 vinc...@massol.net :
>
> > Hi Giordano,
> >
> > On 21 Dec 2015 at 15:20:55, Giordano Ninonà (giordano.nin...@gmail.com
> > (mailto:giordano.nin...@gmail.com)) wrote:
> >
> > > Hi users,
> > >
> > > My project in XWiki consists in a java component which offers some APIs
> > > through a script service called by a Velocity script in a wiki page.
> > >
> > > I put my .jar in the directory C:\XWiki Enterprise
> > > 7.3\*webapps\xwiki\WEB-INF\lib
> > > *and this is the Velocity and HTML code that I've put in my XWiki page:
> > >
> > > {{velocity}}
> > > #if("$!request.evolver" == 1)
> > > ## Request for creating a new instance
> > > $services.pars.parse()
> > > $services.evo.removeInstance("Take bike")
> > > $response.sendRedirect($xwiki.getURL('Main.WebHome'))
> > > ## Stop processing, since we already sent a redirect.
> > > #stop
> > > #end
> >
> > [snip]
> >
> > > Let first say that nothing is happening when I click on the "Evolve"
> > button
> > > and I don't know why...it looks like it should work, also because
> > creating
> > > a Main_test class in Eclipse, I can run my software calling exactly the
> > > same methods and it works!
> >
> > You could use GET instead of POST and see what you get in the URL (ie
> > whether you get the evolver=1 request param).
> >
> > > Moreover my component must create some files to store some information,
> > > thus I am wondering where to save those files in order to make them
> > > accessible by the component.
> >
> > You can use the XWiki’s permanent directory.
> >
> > See
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Environment+Module
> >
> > Thanks
> > -Vincent
> >
> > > Any suggestions?
> > >
> > > Thanks in advance,
> > > Giordano.
> >
> ___
> 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


Re: [xwiki-users] Is there a simple way to create a document tree default expand to 3 levels?

2015-12-22 Thread Marius Dumitru Florea
On Tue, Dec 22, 2015 at 7:04 AM, KirbY ZhoU  wrote:

>
>
>
>
>
> 在 15/12/15 上午12:46,“users 代表 Marius Dumitru Florea”<
> users-boun...@xwiki.org 代表 mariusdumitru.flo...@xwiki.com> 写入:
>
> >On Mon, Dec 14, 2015 at 5:28 AM, KirbY ZhoU  wrote:
> >
> >> Is there a simple way to create a document tree default expand to 3
> levels?
> >>
> >
> >No.
> >
> >
> >>
> >> For example:
> >> * Level 1
> >> ** Level 2
> >>
> >> *** Level 3
> >> *** Level 3
> >> ** Level 2
> >>
> >> *** Level 3
> >> ** Level 2
> >> *** Level 3
> >>
> >>
> >>
> >> And, DO NOT use "see more" button to hide items.
> >>
> >
> >Yes, limit="someBigNumber"
> >
>
>

> Excuse me, is it a new feature in Xwiki-7.4+?
>

It is available since 7.3RC1

{{documentTree limit="3" /}}


> >
> >>
> >>
> >> DocumentTree macro seems do not work for this situation.
> >>
> >>
> >>
> >>
> >>
> >>
> >> ___
> >> 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
>
> ___
> 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


Re: [xwiki-users] How to deploy Java Component and save files?

2015-12-22 Thread Marius Dumitru Florea
On Wed, Dec 23, 2015 at 12:30 AM, Ludovic Dubost  wrote:

> Isn't the problem that it should be
>
> #if("$!request.evolver" == "1")
>
> And not
>
>

> #if("$!request.evolver" == 1)
>

I thought so too but I tested and it works. I checked the Velocity
documentation [1] and the explanation is:

"In the last case (when objects are of different classes), the toString()
method is called on each object and the resulting Strings are compared."

Thanks,
Marius

[1]
https://click.apache.org/docs/velocity/vtl-reference-guide.html##if/#elseif/#else%20-%20Output%20conditional%20on%20truth%20of%20statements


>
> Ludo
> Le 22 déc. 2015 21:32, "Giordano Ninonà"  a
> écrit :
>
> > Dear Vincent,
> >
> > Tank you for your reply, I would try what you suggested in the afternoon,
> > but regarding the "evolver=1 request param", I've set it equal to 1
> > together with POST command in order to make it always true ensuring that
> my
> > component is started every time. My thoughts were wrong?
> >
> > Giordano.
> >
> > 2015-12-22 11:31 GMT+01:00 vinc...@massol.net :
> >
> > > Hi Giordano,
> > >
> > > On 21 Dec 2015 at 15:20:55, Giordano Ninonà (giordano.nin...@gmail.com
> > > (mailto:giordano.nin...@gmail.com)) wrote:
> > >
> > > > Hi users,
> > > >
> > > > My project in XWiki consists in a java component which offers some
> APIs
> > > > through a script service called by a Velocity script in a wiki page.
> > > >
> > > > I put my .jar in the directory C:\XWiki Enterprise
> > > > 7.3\*webapps\xwiki\WEB-INF\lib
> > > > *and this is the Velocity and HTML code that I've put in my XWiki
> page:
> > > >
> > > > {{velocity}}
> > > > #if("$!request.evolver" == 1)
> > > > ## Request for creating a new instance
> > > > $services.pars.parse()
> > > > $services.evo.removeInstance("Take bike")
> > > > $response.sendRedirect($xwiki.getURL('Main.WebHome'))
> > > > ## Stop processing, since we already sent a redirect.
> > > > #stop
> > > > #end
> > >
> > > [snip]
> > >
> > > > Let first say that nothing is happening when I click on the "Evolve"
> > > button
> > > > and I don't know why...it looks like it should work, also because
> > > creating
> > > > a Main_test class in Eclipse, I can run my software calling exactly
> the
> > > > same methods and it works!
> > >
> > > You could use GET instead of POST and see what you get in the URL (ie
> > > whether you get the evolver=1 request param).
> > >
> > > > Moreover my component must create some files to store some
> information,
> > > > thus I am wondering where to save those files in order to make them
> > > > accessible by the component.
> > >
> > > You can use the XWiki’s permanent directory.
> > >
> > > See
> > >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Environment+Module
> > >
> > > Thanks
> > > -Vincent
> > >
> > > > Any suggestions?
> > > >
> > > > Thanks in advance,
> > > > Giordano.
> > >
> > ___
> > 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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Errors in Catalina.log

2015-12-22 Thread Tobias Kirchhofer
I am facing the same problem - did you solve it?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Errors-in-Catalina-log-tp7596965p7597300.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] How to deploy Java Component and save files?

2015-12-22 Thread Giordano Ninonà
Dear Vincent,

Tank you for your reply, I would try what you suggested in the afternoon,
but regarding the "evolver=1 request param", I've set it equal to 1
together with POST command in order to make it always true ensuring that my
component is started every time. My thoughts were wrong?

Giordano.

2015-12-22 11:31 GMT+01:00 vinc...@massol.net :

> Hi Giordano,
>
> On 21 Dec 2015 at 15:20:55, Giordano Ninonà (giordano.nin...@gmail.com
> (mailto:giordano.nin...@gmail.com)) wrote:
>
> > Hi users,
> >
> > My project in XWiki consists in a java component which offers some APIs
> > through a script service called by a Velocity script in a wiki page.
> >
> > I put my .jar in the directory C:\XWiki Enterprise
> > 7.3\*webapps\xwiki\WEB-INF\lib
> > *and this is the Velocity and HTML code that I've put in my XWiki page:
> >
> > {{velocity}}
> > #if("$!request.evolver" == 1)
> > ## Request for creating a new instance
> > $services.pars.parse()
> > $services.evo.removeInstance("Take bike")
> > $response.sendRedirect($xwiki.getURL('Main.WebHome'))
> > ## Stop processing, since we already sent a redirect.
> > #stop
> > #end
>
> [snip]
>
> > Let first say that nothing is happening when I click on the "Evolve"
> button
> > and I don't know why...it looks like it should work, also because
> creating
> > a Main_test class in Eclipse, I can run my software calling exactly the
> > same methods and it works!
>
> You could use GET instead of POST and see what you get in the URL (ie
> whether you get the evolver=1 request param).
>
> > Moreover my component must create some files to store some information,
> > thus I am wondering where to save those files in order to make them
> > accessible by the component.
>
> You can use the XWiki’s permanent directory.
>
> See
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Environment+Module
>
> Thanks
> -Vincent
>
> > Any suggestions?
> >
> > Thanks in advance,
> > Giordano.
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [ANN] XWiki 7.4 Release Candidate 1 released

2015-12-22 Thread vinc...@massol.net
The XWiki development team is proud to announce the availability of XWiki 7.4 
Release Candidate 1.

This is our last stabilization branch for the XWiki 7.x Cycle. It brings 
polishing and stabilization for the Nested Pages feature and the changes in UI 
that resulted from it.

You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download

Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki74RC1

The following people have contributed code to this release (sorted 
alphabetically):

Guillaume Delhumeau
Sergiu Dumitriu
Marius Dumitru Florea
Vincent Massol
Thomas Mortagne

Thanks for your support
-The XWiki dev team
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Is there a simple way to create a document tree default expand to 3 levels?

2015-12-22 Thread KirbY ZhoU





在 15/12/15 上午12:46,“users 代表 Marius Dumitru Florea” 写入:

>On Mon, Dec 14, 2015 at 5:28 AM, KirbY ZhoU  wrote:
>
>> Is there a simple way to create a document tree default expand to 3 levels?
>>
>
>No.
>
>
>>
>> For example:
>> * Level 1
>> ** Level 2
>>
>> *** Level 3
>> *** Level 3
>> ** Level 2
>>
>> *** Level 3
>> ** Level 2
>> *** Level 3
>>
>>
>>
>> And, DO NOT use "see more" button to hide items.
>>
>
>Yes, limit="someBigNumber"
>

Excuse me, is it a new feature in Xwiki-7.4+?
>
>>
>>
>> DocumentTree macro seems do not work for this situation.
>>
>>
>>
>>
>>
>>
>> ___
>> 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

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