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

2015-12-23 Thread vinc...@massol.net
Hi,

The default dashboard is located in Dashboard.WebHome. When you upgraded you 
should have had the Distribution Wizard upgrade that page. Was that the case? 
Could you check the history for that page?

Now two things could have happened:

1) you overwrote the changes brought by the Distribution Wizard by importing 
old versions of pages from your previous wiki. If you’ve done that then you’ve 
most likely broken the upgrade process since you’ve removed all the upgrades 
that were required to all default wiki pages! :) See 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade for the canonical 
way of upgrading an XWiki instance. If you’ve done that I suggest that you redo 
the upgrade.

2) you have modified Dashboard.WebHome. If this is the case then you’ll need to 
update your version to use the {{documentTree}} macro instead of the spaces 
macro.

As I’ve mentioned already in my reply the notion of Spaces have been removed 
from the UI (I’ve linked you to some page with the explanation, have you been 
able to read that page? was it clear? should we improve things there with more 
explanations?).

Thanks
Hope it helps,
-Vincent


On 23 Dec 2015 at 12:19:45, KirbY ZhoU (kirbyz...@gmail.com) wrote:

I belived that I have use the space widget version 7.3.
I created a new Xwiki-7.3, and then import the old spaces one by one, excluding 
'Main', 'XWiki' and all spaces coming with Xwiki default pages.

I just want to get a simple space list.




发件人: Vincent Massol  代表 "vinc...@massol.net" 

日期: 2015年12月23日 星期三 上午4:41
至: XWiki Users 
抄送: KirbY ZhoU 
主题: Re: [xwiki-users] How to avoid nested space?

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] Active Directory / LDAP lockouts

2015-12-23 Thread Thomas Mortagne
On Mon, Dec 21, 2015 at 6:49 PM, Harrison Lambeth
 wrote:
> 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.

The best when it happen again would be to enable debug log (see
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HEnableLDAPdebuglog)
to see in detail what XWiki is doing during the failing
authentication.

>
> 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
>



-- 
Thomas Mortagne
___
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-23 Thread vinc...@massol.net


On 23 Dec 2015 at 16:56:20, Giordano Ninonà 
(giordano.nin...@gmail.com(mailto:giordano.nin...@gmail.com)) wrote:

> Hi users,
>  
> Thanks for your answers, anyway it wasn't a String problem, and also change
> to GET doesn't produce anything. Maybe I've found my problem, when I start
> my component, the very first thing to do is to parse an XML file thus my
> script service provide a "parseBPXML()" method. The problem is where can i
> store this file in order to make accessible by my component, I've already
> Injected the Environment component but I can't understand where to put my
> file (i.e. which is the "permanent directory") and how to access it.

Check your xwiki.properties file and search for permanentDirectory.

Thanks
-Vincent

> Thank you,
> Giordano.
>  
> 2015-12-23 6:51 GMT+01:00 Marius Dumitru Florea <
> mariusdumitru.flo...@xwiki.com>:
>  
> > 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
> >
> ___
> 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-23 Thread Giordano Ninonà
Hi users,

Thanks for your answers, anyway it wasn't a String problem, and also change
to GET doesn't produce anything. Maybe I've found my problem, when I start
my component, the very first thing to do is to parse an XML file thus my
script service provide a "parseBPXML()" method. The problem is where can i
store this file in order to make accessible by my component, I've already
Injected the Environment component but I can't understand where to put my
file (i.e. which is the "permanent directory") and how to access it.

Thank you,
Giordano.

2015-12-23 6:51 GMT+01:00 Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com>:

> 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
>
___
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-23 Thread Giordano Ninonà
Thanks Vincent,

I found everything I need but I got a nullpointer exeptioneverytime I use
the *environment.getTemporaryDirectory() *method in my code.
I thought it could be the component manager, so I've tried to inizialize it
but I got an error every time I call the method "initialize()", as
suggested in [1] and [2].

Any ideas why it is not working?

Thanks,
Giordano

[1] http://extensions.xwiki.org/xwiki/bin/view/Extension/Environment+Module
[2]
http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module#HComponentManagerInitialization


2015-12-23 16:59 GMT+01:00 vinc...@massol.net :

>
>
> On 23 Dec 2015 at 16:56:20, Giordano Ninonà (giordano.nin...@gmail.com
> (mailto:giordano.nin...@gmail.com)) wrote:
>
> > Hi users,
> >
> > Thanks for your answers, anyway it wasn't a String problem, and also
> change
> > to GET doesn't produce anything. Maybe I've found my problem, when I
> start
> > my component, the very first thing to do is to parse an XML file thus my
> > script service provide a "parseBPXML()" method. The problem is where can
> i
> > store this file in order to make accessible by my component, I've already
> > Injected the Environment component but I can't understand where to put my
> > file (i.e. which is the "permanent directory") and how to access it.
>
> Check your xwiki.properties file and search for permanentDirectory.
>
> Thanks
> -Vincent
>
> > Thank you,
> > Giordano.
> >
> > 2015-12-23 6:51 GMT+01:00 Marius Dumitru Florea <
> > mariusdumitru.flo...@xwiki.com>:
> >
> > > 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
> > > > > >
> > > >
> 

Re: [xwiki-users] Active Directory / LDAP lockouts

2015-12-23 Thread Harrison Lambeth
Hi Thomas,

Thanks for the quick response. I've enabled this and will see what comes up 
next time this issue occurs.

Thanks,
Harrison

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
Sent: Wednesday, December 23, 2015 9:02 AM
To: XWiki Users
Subject: Re: [xwiki-users] Active Directory / LDAP lockouts

On Mon, Dec 21, 2015 at 6:49 PM, Harrison Lambeth  
wrote:
> 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.

The best when it happen again would be to enable debug log (see
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HEnableLDAPdebuglog)
to see in detail what XWiki is doing during the failing authentication.

>
> 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
>



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


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