Re: [xwiki-users] getting translated title

2012-02-16 Thread Marius Dumitru Florea
Hi Ricardo,

On Fri, Feb 17, 2012 at 2:35 AM,
 wrote:
> Hello,
>
> Please, how could I get the title of a translated document to be used in a 
> Velocity script? Please, see an example:
>
> http://atrium_km.idisantiago.es/bin/XWiki/XWikiIDISAreaEndocrinology
>
> Whatever language I select, group names are already show in Spanish even 
> though group names exist in all three languages. For instance...
>
> atrium_km.idisantiago.es/bin/XWiki/XWikiIDISC01

I don't see the problem. For both groups, XWikiIDISAreaEndocrinology
and XWikiIDISC01, the title changes when I change the language from
the top right corner, below the search box. For
XWikiIDISAreaEndocrinology I get: Endocrinology (en), Endocrinología
(es) and Endocrinoloxía (gl). What exactly are you trying to achieve?

Hope this helps,
Marius

>
> Thanks for your help!
>
> Ricardo
>
> --
> Ricardo Rodríguez
> Research Management and Promotion Technician
> Health Research Institute of Santiago de Compostela (IDIS)
> http://www.idisantiago.es
>
> Nota: A información contida nesta mensaxe e os seus posibles documentos 
> adxuntos é privada e confidencial e está dirixida únicamente ó seu 
> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, 
> por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.
>
> Nota: La información contenida en este mensaje y sus posibles documentos 
> adjuntos es privada y confidencial y está dirigida únicamente a su 
> destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
> por favor elimínelo. La distribución o copia de este mensaje no está 
> autorizada.
>
> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
> ___
> 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


[xwiki-users] getting translated title

2012-02-16 Thread Ricardo.Julio.Rodriguez.Fernandez
Hello,

Please, how could I get the title of a translated document to be used in a 
Velocity script? Please, see an example:

http://atrium_km.idisantiago.es/bin/XWiki/XWikiIDISAreaEndocrinology

Whatever language I select, group names are already show in Spanish even though 
group names exist in all three languages. For instance...

atrium_km.idisantiago.es/bin/XWiki/XWikiIDISC01

Thanks for your help!

Ricardo

--
Ricardo Rodríguez
Research Management and Promotion Technician
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es

Nota: A información contida nesta mensaxe e os seus posibles documentos 
adxuntos é privada e confidencial e está dirixida únicamente ó seu 
destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por 
favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

Nota: La información contenida en este mensaje y sus posibles documentos 
adjuntos es privada y confidencial y está dirigida únicamente a su 
destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
por favor elimínelo. La distribución o copia de este mensaje no está autorizada.

See more languages: http://www.sergas.es/aviso_confidencialidad.htm
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] on XWiki.XWikiGroupSheet

2012-02-16 Thread Ricardo.Julio.Rodriguez.Fernandez
Hi!
>> 
>> From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of 
>> Rodriguez Fernandez, Ricardo Julio
>> Sent: 15 February 2012 01:12
>> To: users@xwiki.org
>> Subject: Re: [xwiki-users] on XWiki.XWikiGroupSheet
>>
>> Still one more entry trying to better define de question:
>>
>> The prettyname for an user is mapped to first_name + last-name. It is not 
>> posible to map the same way in the case of a group!
>>
>> Please, could you help me to map prettyname to the title of the document? 
>> Thanks!

The the labels of the items' label to be are described in 
/templates/getgroupmembers.vm.

Edit and upload the new the file and refresh to automagically see the resaults.

HTH to anybody!

Ricardo

>> --
>> Ricardo Rodríguez
>> Research Management and Promotion Technician
>> Health Research Institute of Santiago de Compostela (IDIS)
>> http://www.idisantiago.es
>> 
>> From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of 
>> Rodriguez Fernandez, Ricardo Julio
>> Sent: 14 February 2012 00:18
>> To: users@xwiki.org
>> Subject: Re: [xwiki-users] on XWiki.XWikiGroupSheet
>>
>> Some more info on this issue. Please, check this:
>>
>> When I use ?xpage=getgroupmembers with a group formed by users, I get this:
>>
>> {
>> "totalrows": 10,
>> "returnedrows":  0 ,
>> "offset": 0,
>> "rows": [
>> {
>> "fullname" : "XWiki.AngelaRodriguezGarciaRendueles",
>> "prettyname"   : "Ángela Rodríguez García-Rendueles 
>> (XWiki.AngelaRodriguezGarciaRendueles)",
>> ...
>>
>> But if members are groups, I get this:
>>
>> {
>> "totalrows": 14,
>> "returnedrows":  0 ,
>> "offset": 0,
>> "rows": [
>> {
>> "fullname" : "XWiki.XWikiIDISC01",
>> "prettyname"   : "XWikiIDISC01 (XWiki.XWikiIDISC01)",
>> ...

>> The "prettyname" string in the first case shows the name in the title and 
>> the full name of the document. In the second case, it shows the name and the 
>> fullname of the document. The title in this case is
>> "Neoplasia and Endocrine Differentiation". Please, how can I do that in both 
>> cases prettyname shows the title and the full name of the document? If we 
>> use a key to create new groups,
>>  it is really useful to have them
>> listed with their title. Thanks for your help!!!
>>
>> Cheers,
>>
>> Ricardo
>>
>>
>> --
>> Ricardo Rodríguez
>> Research Management and Promotion Technician
>> Health Research Institute of Santiago de Compostela (IDIS)
>> http://www.idisantiago.es
>> 
>> From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of 
>> Rodriguez Fernandez, Ricardo Julio
>> Sent: 12 February 2012 16:40
>> To: users@xwiki.org
>> Cc: Lista Garcia, Isabel
>> Subject: [xwiki-users] on XWiki.XWikiGroupSheet
>>
>> Hi!
>>
>> Still working with XWiki Enterprise 2.4.30451 here.
>>
>> When listing group members using XWiki.XWikiGroupSheet, if the member is a 
>> user and its document has a title, the list shows the title as URL.
>> It the member is another group, the list shows the name of the
>> document independently of it has title or hasn't.
>>
>> Feel free to check this to ilustrate what we are seing here...
>>
>> http://atrium_km.idisantiago.es/bin/XWiki/XWikiIDISAreaOncology
>>
>> Please, how must we modify XWiki.XWikiGroupSheet to force it to always show 
>> the title of a document (user or another group) included in a given group?
>>
>> Thanks for your help!
>>
>> Ricardo
>>
>> --
>> Ricardo Rodríguez
>> Research Management and Promotion Technician
>> Health Research Institute of Santiago de Compostela (IDIS)
>> http://www.idisantiago.es

Nota: A información contida nesta mensaxe e os seus posibles documentos 
adxuntos é privada e confidencial e está dirixida únicamente ó seu 
destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por 
favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

Nota: La información contenida en este mensaje y sus posibles documentos 
adjuntos es privada y confidencial y está dirigida únicamente a su 
destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
por favor elimínelo. La distribución o copia de este mensaje no está autorizada.

See more languages: http://www.sergas.es/aviso_confidencialidad.htm
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWIKI to generate synchronized multilanguage documents with the help of CAT-Tools like OmegaT?

2012-02-16 Thread Chynte

Hi Paul,

thanks for your reply.
Yes, you are absolutly right: My "dream" is much more as what was done 
in i2geo.
On the other side, there are two open source projects showing, that's 
possible.
1. As I mentioned, TWiki is able to show the "changes" made in one 
language vs. another language

2. OmegaT shows, that it is able to automatically extract sentences.

Maybe here we misunderstood each other:
I do not expect an automatic translation of documents - it is and will 
be for at least the next years a job for human translators, if you want 
quality.
OmegaT is "just" a tool, which helps the translator to do the job. It 
contains a database holding all already translated sentences (and words) 
and if you need to translate a new sentence, OmegaT checks, if a similar 
sentence was already translated and propose it also for the actual one 
(with the ability to change the proposal, of course).


XWiki seems to be one of the best Wiki-Implementations if you need 
multilanguage and high quality export and OmegaT is for translation:

--> I would like to have a "bridge" to connect both.

Chynte

On 11.02.2012 22:59, Paul Libbrecht wrote:

Chynte,
a little bit of that has been done for internationalization phrases which are 
special documents (organized as properties).

XWiki has l10n.xwiki.org and at i2geo we made the translation-updater tool:
http://i2geo.net/xwiki/bin/view/TranslationUpdate/

Your feature set is more complete, a lot more.
Where I see a difficulty is at the analysis part.
In another tool, jEditOQMath, I tried to use Google translate; I could somehow create 
bizarre "proper nouns" with the mathematical formulæ islands that were there so 
that Google translate ignores them. Also, I failed keeping a good indenting of the text 
source.

Maybe this can all be done with OmegaT but there are many exceptions there, you 
want to keep the Wiki syntax complete but still process such things as a series 
of word in a link, reinserting the link thereafter.

paul


Le 11 févr. 2012 à 16:27, Chynte a écrit :

I´m searching for a wiki, which allows to generate synchronized multilanguage 
documents.
What does that mean for me?
I want to define one lanuage (eg. english) as the "main" language. Every 
document must first be written in the main language. From this basic document we can 
create documents in other languages.
This already works in Xwiki in a nice way.

But what happens, when after a while some changes the document in the main language? I 
found no possibility to mark the documents in other languages as "outdated".
Even more: I would like to get the information, what was changed in the main 
language document to be able to synch the other documents in a fast and 
sufficient manner.

And then I would like to go one step further:
There are several really good CAT (Computer Aided Translation) tools on the 
market. Specially OmegaT (Open Source) is my favorite tool for translation 
processes.

So my dream:
If a document in the main language was changed, I get an information about, that the 
documents in other languages are outdated (best would be with a number telling "how 
much outdated" it is).
When I want to synch again one document, I choose the target language and XWiki 
exports all changed sentences to a CAT tool (as already said, OmegaT is my 
favorite).
After the translation work is done in OmegaT I can import the new translated 
sentences at the right position in the target document in XWiki.

For me, my described dream sounds like as if this will be never possible since 
it sounds so complicate (I´m not a programmer).
I tested lot of different wikis and from what I described here, TWiki had the 
most (except the Workflow with OmegaT).
The big problem for me is, that I found no good way to export documents from 
TWiki to PDF.

What I found with XWiki:
So XWiki is very good in exporting PDF and also can work with multilanguage 
documents but can´t tell me something about the state of the sychronization 
between two documents (and also can´t work together with OmegaT).

Is my description about the features of XWiki right?
Do you see a possibility to add some my wished features (maybe there are some 
extensions I didn´t found)?

Thanks for reply

Chynte
___
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 use xwiki behind an authenticating http proxy?

2012-02-16 Thread coldserenity
Hello Patrice,

  If you're using Linux box you can also try using the workaround that works
(yet unstable) for me
  I had similar issues so what has helped me is one of the following 

  Option 1. Edit /etc/environment paste following lines
ftp_proxy=http://myUser:MyPassword@myProxyHost:3128/
http_proxy=http://myUser:MyPassword@myProxyHost:3128/

  Option 2. Run following commands
export http_proxy=http://myUser:MyPassword@myProxyHost:3128/
export ftp_proxy=http://myUser:MyPassword@myProxyHost:3128/

  (It's better to restart the container just in case after the changes)

  Don't remember now which one has actually helped, but anyways good that
you've helped to identify a bug.

  Regards,
Roman

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/how-to-use-xwiki-behind-an-authenticating-http-proxy-tp7291129p7291644.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 use xwiki behind an authenticating http proxy?

2012-02-16 Thread Thomas Mortagne
On Thu, Feb 16, 2012 at 5:43 PM, Patrice Godard
 wrote:
> Thanks for your reply.
> I'll try the advanced install ASAP.
> I found out that I can download extensions from the web site so maybe I can 
> also drop them manually in the extensions folder? (could not find any 
> information about installing extensions offline in the admin guide, that's 
> just my guess).

To install it, it depends what kind of extension you have:
* xar file: go to administration -> import and import the xar file
* jar file: put it in WEB-INF/lib/ folder (which already contains a
lot of jar files)

Each extension is supposed to provide "Installation Instructions" on
extensions.xwiki.org. Which one is it ?

>
> Patrice
>> Message du 16/02/12 17:39
>> De : "Thomas Mortagne"
>> A : "XWiki Users"
>> Copie à :
>> Objet : Re: [xwiki-users] how to use xwiki behind an authenticating 
>> httpproxy?
>>
>> Looks like HttpClient does not take into account http.proxy* system
>> properties by default so they are indeed useless here.
>>
>> I just created http://jira.xwiki.org/browse/XWIKI-7544, will be
>> quickly fixed (probably next week).
>>
>> Thanks for the report.
>>
>> In the meantime if the extension you want to install is on a Maven
>> repository you can try to install it using "Advanced Install". The
>> Maven repository connector does not use HTTPClient but Aether which
>> maybe takes theses property into account (will check that also when I
>> will work on XWIKI-7544).
>>
>> On Thu, Feb 16, 2012 at 4:48 PM, Patrice Godard
>> wrote:
>> > Thanks for your reply,
>> >
>> > First here are my proxy settings (I double-checked them and this machine 
>> > is using this proxy for other tasks):
>> > XWIKI_OPTS="$XWIKI_OPTS -Dhttp.proxyHost=myProxyHost -Dhttp.proxyPort=3128 
>> > -Dhttp.proxyUserName=myUser -Dhttp.proxyPassword=MyPassword"
>> >
>> >
>> > Then here is part of the stacktrace I get when I try to add an extension 
>> > via the admin page:
>> >
>> > --
>> > Caused by: java.io.IOException: Failed to request 
>> > [http://extensions.xwiki.org/xwiki/rest/repository/search?start=0&number=20&q=]
>> >     at 
>> > org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTResource(XWikiExtensionRepository.java:110)
>> >  ~[xwiki-platform-extension-repository-xwiki-handler-3.4.jar:na]
>> >     at 
>> > org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTResourceAsStream(XWikiExtensionRepository.java:122)
>> >  ~[xwiki-platform-extension-repository-xwiki-handler-3.4.jar:na]
>> >     at 
>> > org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.search(XWikiExtensionRepository.java:229)
>> >  ~[xwiki-platform-extension-repository-xwiki-handler-3.4.jar:na]
>> >     ... 160 common frames omitted
>> > Caused by: java.net.ConnectException: Connection timed out
>> >     at java.net.PlainSocketImpl.socketConnect(Native Method) 
>> > ~[na:1.6.0_18]
>> >     at 
>> > java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
>> >  ~[na:1.6.0_18]
>> >     at 
>> > java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
>> >  ~[na:1.6.0_18]
>> >     at 
>> > java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163) 
>> > ~[na:1.6.0_18]
>> >     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384) 
>> > ~[na:1.6.0_18]
>> >     at java.net.Socket.connect(Socket.java:546) ~[na:1.6.0_18]
>> >     at java.net.Socket.connect(Socket.java:495) ~[na:1.6.0_18]
>> >     at java.net.Socket.(Socket.java:392) ~[na:1.6.0_18]
>> >     at java.net.Socket.(Socket.java:266) ~[na:1.6.0_18]
>> >     at 
>> > org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
>> >  ~[commons-httpclient-3.1.jar:na]
>> >     at 
>> > org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
>> >  ~[commons-httpclient-3.1.jar:na]
>> >     at 
>> > org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) 
>> > ~[commons-httpclient-3.1.jar:na]
>> >
>> >
>> >
>> >
>> >> Message du 16/02/12 15:45
>> >> De : "Thomas Mortagne"
>> >> A : "XWiki Users"
>> >> Copie à :
>> >> Objet : Re: [xwiki-users] how to use xwiki behind an authenticating 
>> >> httpproxy?
>> >>
>> >> On Thu, Feb 16, 2012 at 3:40 PM, Patrice Godard
>> >> wrote:
>> >> > Hi,
>> >> > I'm trying to set-up xwiki for my company but I have an issue with our 
>> >> > authenticating http proxy which prevents me to install additionnal 
>> >> > plugins into xwiki.
>> >> >
>> >> > I searched the FAQ and mailing list archives but could not find a 
>> >> > reference to how to use xwiki behind an authenticating proxy (I could 
>> >> > only find information on how to use it behind a reverse proxy).
>> >> >
>> >> > I tried to setup the usual JVM properties http.proxyHost, port, 
>> >> > u

Re: [xwiki-users] how to use xwiki behind an authenticating http proxy?

2012-02-16 Thread Patrice Godard
Thanks for your reply.
I'll try the advanced install ASAP.
I found out that I can download extensions from the web site so maybe I can 
also drop them manually in the extensions folder? (could not find any 
information about installing extensions offline in the admin guide, that's just 
my guess).

Patrice
> Message du 16/02/12 17:39
> De : "Thomas Mortagne"
> A : "XWiki Users"
> Copie à :
> Objet : Re: [xwiki-users] how to use xwiki behind an authenticating httpproxy?
>
> Looks like HttpClient does not take into account http.proxy* system
> properties by default so they are indeed useless here.
>
> I just created http://jira.xwiki.org/browse/XWIKI-7544, will be
> quickly fixed (probably next week).
>
> Thanks for the report.
>
> In the meantime if the extension you want to install is on a Maven
> repository you can try to install it using "Advanced Install". The
> Maven repository connector does not use HTTPClient but Aether which
> maybe takes theses property into account (will check that also when I
> will work on XWIKI-7544).
>
> On Thu, Feb 16, 2012 at 4:48 PM, Patrice Godard
> wrote:
> > Thanks for your reply,
> >
> > First here are my proxy settings (I double-checked them and this machine is 
> > using this proxy for other tasks):
> > XWIKI_OPTS="$XWIKI_OPTS -Dhttp.proxyHost=myProxyHost -Dhttp.proxyPort=3128 
> > -Dhttp.proxyUserName=myUser -Dhttp.proxyPassword=MyPassword"
> >
> >
> > Then here is part of the stacktrace I get when I try to add an extension 
> > via the admin page:
> >
> > --
> > Caused by: java.io.IOException: Failed to request 
> > [http://extensions.xwiki.org/xwiki/rest/repository/search?start=0&number=20&q=]
> >     at 
> > org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTResource(XWikiExtensionRepository.java:110)
> >  ~[xwiki-platform-extension-repository-xwiki-handler-3.4.jar:na]
> >     at 
> > org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTResourceAsStream(XWikiExtensionRepository.java:122)
> >  ~[xwiki-platform-extension-repository-xwiki-handler-3.4.jar:na]
> >     at 
> > org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.search(XWikiExtensionRepository.java:229)
> >  ~[xwiki-platform-extension-repository-xwiki-handler-3.4.jar:na]
> >     ... 160 common frames omitted
> > Caused by: java.net.ConnectException: Connection timed out
> >     at java.net.PlainSocketImpl.socketConnect(Native Method) 
> > ~[na:1.6.0_18]
> >     at 
> > java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
> >  ~[na:1.6.0_18]
> >     at 
> > java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
> >  ~[na:1.6.0_18]
> >     at 
> > java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163) 
> > ~[na:1.6.0_18]
> >     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384) 
> > ~[na:1.6.0_18]
> >     at java.net.Socket.connect(Socket.java:546) ~[na:1.6.0_18]
> >     at java.net.Socket.connect(Socket.java:495) ~[na:1.6.0_18]
> >     at java.net.Socket.(Socket.java:392) ~[na:1.6.0_18]
> >     at java.net.Socket.(Socket.java:266) ~[na:1.6.0_18]
> >     at 
> > org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
> >  ~[commons-httpclient-3.1.jar:na]
> >     at 
> > org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
> >  ~[commons-httpclient-3.1.jar:na]
> >     at 
> > org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) 
> > ~[commons-httpclient-3.1.jar:na]
> >
> >
> >
> >
> >> Message du 16/02/12 15:45
> >> De : "Thomas Mortagne"
> >> A : "XWiki Users"
> >> Copie à :
> >> Objet : Re: [xwiki-users] how to use xwiki behind an authenticating 
> >> httpproxy?
> >>
> >> On Thu, Feb 16, 2012 at 3:40 PM, Patrice Godard
> >> wrote:
> >> > Hi,
> >> > I'm trying to set-up xwiki for my company but I have an issue with our 
> >> > authenticating http proxy which prevents me to install additionnal 
> >> > plugins into xwiki.
> >> >
> >> > I searched the FAQ and mailing list archives but could not find a 
> >> > reference to how to use xwiki behind an authenticating proxy (I could 
> >> > only find information on how to use it behind a reverse proxy).
> >> >
> >> > I tried to setup the usual JVM properties http.proxyHost, port, username 
> >> > and password but xwiki does not seem to use them.
> >> > The error stacktrace shows a connection timeout in the HttpClient 
> >> > classes.
> >>
> >> Could you provide the complete stack trace since there is actually
> >> several codes using httpclient.
> >>
> >> >
> >> > So I'd be glad to know if xwiki can be used behind such a proxy, because 
> >> > it's currently a showstopper for us (and I REALLY would like to use 
> >> > xwiki instead of mediawiki).
> >> >
> >> > Thanks,
> >> > 

Re: [xwiki-users] how to use xwiki behind an authenticating http proxy?

2012-02-16 Thread Thomas Mortagne
Looks like HttpClient does not take into account http.proxy* system
properties by default so they are indeed useless here.

I just created http://jira.xwiki.org/browse/XWIKI-7544, will be
quickly fixed (probably next week).

Thanks for the report.

In the meantime if the extension you want to install is on a Maven
repository you can try to install it using "Advanced Install". The
Maven repository connector does not use HTTPClient but Aether which
maybe takes theses property into account (will check that also when I
will work on XWIKI-7544).

On Thu, Feb 16, 2012 at 4:48 PM, Patrice Godard
 wrote:
> Thanks for your reply,
>
> First here are my proxy settings (I double-checked them and this machine is 
> using this proxy for other tasks):
> XWIKI_OPTS="$XWIKI_OPTS -Dhttp.proxyHost=myProxyHost -Dhttp.proxyPort=3128 
> -Dhttp.proxyUserName=myUser -Dhttp.proxyPassword=MyPassword"
>
>
> Then here is part of the stacktrace I get when I try to add an extension via 
> the admin page:
>
> --
> Caused by: java.io.IOException: Failed to request 
> [http://extensions.xwiki.org/xwiki/rest/repository/search?start=0&number=20&q=]
>     at 
> org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTResource(XWikiExtensionRepository.java:110)
>  ~[xwiki-platform-extension-repository-xwiki-handler-3.4.jar:na]
>     at 
> org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTResourceAsStream(XWikiExtensionRepository.java:122)
>  ~[xwiki-platform-extension-repository-xwiki-handler-3.4.jar:na]
>     at 
> org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.search(XWikiExtensionRepository.java:229)
>  ~[xwiki-platform-extension-repository-xwiki-handler-3.4.jar:na]
>     ... 160 common frames omitted
> Caused by: java.net.ConnectException: Connection timed out
>     at java.net.PlainSocketImpl.socketConnect(Native Method) 
> ~[na:1.6.0_18]
>     at 
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310) 
> ~[na:1.6.0_18]
>     at 
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
>  ~[na:1.6.0_18]
>     at 
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163) 
> ~[na:1.6.0_18]
>     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384) 
> ~[na:1.6.0_18]
>     at java.net.Socket.connect(Socket.java:546) ~[na:1.6.0_18]
>     at java.net.Socket.connect(Socket.java:495) ~[na:1.6.0_18]
>     at java.net.Socket.(Socket.java:392) ~[na:1.6.0_18]
>     at java.net.Socket.(Socket.java:266) ~[na:1.6.0_18]
>     at 
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
>  ~[commons-httpclient-3.1.jar:na]
>     at 
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
>  ~[commons-httpclient-3.1.jar:na]
>     at 
> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) 
> ~[commons-httpclient-3.1.jar:na]
>
>
>
>
>> Message du 16/02/12 15:45
>> De : "Thomas Mortagne"
>> A : "XWiki Users"
>> Copie à :
>> Objet : Re: [xwiki-users] how to use xwiki behind an authenticating 
>> httpproxy?
>>
>> On Thu, Feb 16, 2012 at 3:40 PM, Patrice Godard
>> wrote:
>> > Hi,
>> > I'm trying to set-up xwiki for my company but I have an issue with our 
>> > authenticating http proxy which prevents me to install additionnal plugins 
>> > into xwiki.
>> >
>> > I searched the FAQ and mailing list archives but could not find a 
>> > reference to how to use xwiki behind an authenticating proxy (I could only 
>> > find information on how to use it behind a reverse proxy).
>> >
>> > I tried to setup the usual JVM properties http.proxyHost, port, username 
>> > and password but xwiki does not seem to use them.
>> > The error stacktrace shows a connection timeout in the HttpClient classes.
>>
>> Could you provide the complete stack trace since there is actually
>> several codes using httpclient.
>>
>> >
>> > So I'd be glad to know if xwiki can be used behind such a proxy, because 
>> > it's currently a showstopper for us (and I REALLY would like to use xwiki 
>> > instead of mediawiki).
>> >
>> > Thanks,
>> > Patrice
>> >
>> >
>> >
>> > Une messagerie gratuite, garantie à vie et des services en plus, ça vous 
>> > tente ?
>> > Je crée ma boîte mail www.laposte.net
>> > ___
>> > 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
>>
>
> Une messagerie gratuite, garantie à vie et des services en plus, ça vous 
> tente ?
> Je crée ma boîte mail www.laposte.net
> ___
> users mailing list
>

Re: [xwiki-users] how to use xwiki behind an authenticating http proxy?

2012-02-16 Thread Patrice Godard
Thanks for your reply,

First here are my proxy settings (I double-checked them and this machine is 
using this proxy for other tasks):
XWIKI_OPTS="$XWIKI_OPTS -Dhttp.proxyHost=myProxyHost -Dhttp.proxyPort=3128 
-Dhttp.proxyUserName=myUser -Dhttp.proxyPassword=MyPassword"


Then here is part of the stacktrace I get when I try to add an extension via 
the admin page:

--
Caused by: java.io.IOException: Failed to request 
[http://extensions.xwiki.org/xwiki/rest/repository/search?start=0&number=20&q=]
    at 
org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTResource(XWikiExtensionRepository.java:110)
 ~[xwiki-platform-extension-repository-xwiki-handler-3.4.jar:na]
    at 
org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTResourceAsStream(XWikiExtensionRepository.java:122)
 ~[xwiki-platform-extension-repository-xwiki-handler-3.4.jar:na]
    at 
org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.search(XWikiExtensionRepository.java:229)
 ~[xwiki-platform-extension-repository-xwiki-handler-3.4.jar:na]
    ... 160 common frames omitted
Caused by: java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.6.0_18]
    at 
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310) 
~[na:1.6.0_18]
    at 
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
 ~[na:1.6.0_18]
    at 
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163) 
~[na:1.6.0_18]
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384) 
~[na:1.6.0_18]
    at java.net.Socket.connect(Socket.java:546) ~[na:1.6.0_18]
    at java.net.Socket.connect(Socket.java:495) ~[na:1.6.0_18]
    at java.net.Socket.(Socket.java:392) ~[na:1.6.0_18]
    at java.net.Socket.(Socket.java:266) ~[na:1.6.0_18]
    at 
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
 ~[commons-httpclient-3.1.jar:na]
    at 
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
 ~[commons-httpclient-3.1.jar:na]
    at 
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) 
~[commons-httpclient-3.1.jar:na]




> Message du 16/02/12 15:45
> De : "Thomas Mortagne"
> A : "XWiki Users"
> Copie à :
> Objet : Re: [xwiki-users] how to use xwiki behind an authenticating httpproxy?
>
> On Thu, Feb 16, 2012 at 3:40 PM, Patrice Godard
> wrote:
> > Hi,
> > I'm trying to set-up xwiki for my company but I have an issue with our 
> > authenticating http proxy which prevents me to install additionnal plugins 
> > into xwiki.
> >
> > I searched the FAQ and mailing list archives but could not find a reference 
> > to how to use xwiki behind an authenticating proxy (I could only find 
> > information on how to use it behind a reverse proxy).
> >
> > I tried to setup the usual JVM properties http.proxyHost, port, username 
> > and password but xwiki does not seem to use them.
> > The error stacktrace shows a connection timeout in the HttpClient classes.
>
> Could you provide the complete stack trace since there is actually
> several codes using httpclient.
>
> >
> > So I'd be glad to know if xwiki can be used behind such a proxy, because 
> > it's currently a showstopper for us (and I REALLY would like to use xwiki 
> > instead of mediawiki).
> >
> > Thanks,
> > Patrice
> >
> >
> >
> > Une messagerie gratuite, garantie à vie et des services en plus, ça vous 
> > tente ?
> > Je crée ma boîte mail www.laposte.net
> > ___
> > 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
> 

Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Performance tuning for growing wiki

2012-02-16 Thread Marius Dumitru Florea
On Thu, Feb 16, 2012 at 1:54 PM, Crowd Covered  wrote:
> I've solved the problem I asked about yesterday: Column length too big for
> column 'XXX' (max = 21845); use BLOB or TEXT instead
> There is a useful option in MySQL Migration Tool to change the SQL code for
> table creation, so I've just used LONGTEXT instead of VARCHAR(6) and
> alike which are not valid for MySQL.
> Additionally I needed to fix several dates in XWIKIDATES like -04-16
> 00:00:00 into 2012... - no idea why they were treated as invalid...
>
> Could someone also hint about consequences of several errors I wasn't able
> to solve? May be they can be solved as well?
>
>   1. For XWIKIATTACHMENT_ARCHIVE I got 0 of 20 entries transferred, with
>   an error "Unknown column '0x' in 'field list'". Indeed in .script file I
>   see them like this: INSERT INTO XWIKIATTACHMENT_ARCHIVE
>   VALUES(-2145604653,''). I believe it's safe to ignore this? But how did it
>   happen?
>   2. Same error for XWIKIATTACHMENT_CONTENT, but there only one row should
>   have been deleted - may I got problems because of this?
>

> Will community benefit from description of such HSQLDB->MySQL migration or
> was it a non-trivial thing for me only (I only faced databases during
> university course)? :) If yes where can I add it?

I would like to see a Migration section on
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ .

Thanks,
Marius

>
> Andrey
> ___
> 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] categories: spaces or parent pages?

2012-02-16 Thread Ecaterina Moraru (Valica)
Also you can use tags to categorize your pages, see
http://extensions.xwiki.org/xwiki/bin/view/Extension/Tag+Application

Thanks,
Caty

On Thu, Feb 16, 2012 at 12:34, Maxime Sinclair wrote:

> Hi Theresa,
>
> In my opinion, the best way is to get one space by work group.
> It's easy to define rights, or to custumize the presentation at the
> space level.
> Regards,
> Maxime
>
> 2012/2/16 Theresa Noisser :
> > Hi,
> > i want to have our wiki categorized, since it's used as a intranet for a
> > company with a few different work groups. So it would be the best if
> every
> > group gets its own "category", but every coworker is able to see (and
> > possibly edit) every page. But i'm not sure what's the best way to do
> this,
> > i think the two possibilities are to use different spaces or to use
> parent
> > pages.
> > Can you tell me what the main differences are to help me with this
> decision?
> > Is it only the rights management or are there any other
> > advantages/disadvantages?
> > Thanks again,
> > resi.
> > ___
> > 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] List of all users: names and avatars; edit profile pages

2012-02-16 Thread Ecaterina Moraru (Valica)
How about the page Main/UserDirectory ?
Example: http://www.xwiki.org/xwiki/bin/view/Main/UserDirectory

Thanks,
Caty

On Thu, Feb 16, 2012 at 12:57, Edo Beutler  wrote:

> Hi Resi
>
> I think you will have to write your own script for that.
> First you get all users of your wiki. I don't know of an api call for
> that, so you could use $services.query.xwql("from
> doc.object(XWiki.XWikiUsers) as obj").execute() You could also add
> e.g. "order by obj.last_name" if you like to.
> The result is a list. Using #foreach you can display all the things
> you want for each user.
>
> The information about the specialities or responsibilities should be
> connected somehow to the users (maybe by using groups?). You could
> also consider adding additional fields to the XWiki.XWikiUsers class
> to reflect your specialities and responsibilities.
> How to display this information depends on how you save and connect
> them to the users.
>
> Hope this helps
> Edo
>
>
> On Thu, Feb 16, 2012 at 8:42 AM, Theresa Noisser 
> wrote:
> > Hello,
> > for our company intranet wiki i'd like to have a page where all coworkers
> > are listed with their names and pictures. I found a velocity code to give
> > out the useravatar (e.g. #largeUserAvatar('XWiki.username') ), but is
> there
> > a way to automatically generate a page where all the users are listed
> with
> > names and pictures (perhaps in 2 columns and with links to their profile
> > pages)? I only found a way to list all editors or page creators.
> >
> > And second, i would like to add information to the profile pages of the
> > coworkers, e.g. their specialities or responsibilities. How can i do
> that?
> >
> > Thanks in advance,
> > resi.
> > ___
> > 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 use xwiki behind an authenticating http proxy?

2012-02-16 Thread Thomas Mortagne
On Thu, Feb 16, 2012 at 3:40 PM, Patrice Godard
 wrote:
> Hi,
> I'm trying to set-up xwiki for my company but I have an issue with our 
> authenticating http proxy which prevents me to install additionnal plugins 
> into xwiki.
>
> I searched the FAQ and mailing list archives but could not find a reference 
> to how to use xwiki behind an authenticating proxy (I could only find 
> information on how to use it behind a reverse proxy).
>
> I tried to setup the usual JVM properties http.proxyHost, port, username and 
> password but xwiki does not seem to use them.
> The error stacktrace shows a connection timeout in the HttpClient classes.

Could you provide the complete stack trace since there is actually
several codes using httpclient.

>
> So I'd be glad to know if xwiki can be used behind such a proxy, because it's 
> currently a showstopper for us (and I REALLY would like to use xwiki instead 
> of mediawiki).
>
> Thanks,
> Patrice
>
>
>
> Une messagerie gratuite, garantie à vie et des services en plus, ça vous 
> tente ?
> Je crée ma boîte mail www.laposte.net
> ___
> 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


[xwiki-users] how to use xwiki behind an authenticating http proxy?

2012-02-16 Thread Patrice Godard
Hi,
I'm trying to set-up xwiki for my company but I have an issue with our 
authenticating http proxy which prevents me to install additionnal plugins into 
xwiki.

I searched the FAQ and mailing list archives but could not find a reference to 
how to use xwiki behind an authenticating proxy (I could only find information 
on how to use it behind a reverse proxy).

I tried to setup the usual JVM properties http.proxyHost, port, username and 
password but xwiki does not seem to use them.
The error stacktrace shows a connection timeout in the HttpClient classes.

So I'd be glad to know if xwiki can be used behind such a proxy, because it's 
currently a showstopper for us (and I REALLY would like to use xwiki instead of 
mediawiki).

Thanks,
Patrice



Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [xwiki-devs] New Xwiki howto guides - documentation project

2012-02-16 Thread Ecaterina Moraru (Valica)
Hi Kaya,

It's really nice that you took the time to write the guides. I'm not an
expert in those fields so the guides still need reviewing.

My only remark is that I don't think they need a custom styling that
changes the font-size and the font-family.

Thanks,
Caty

On Mon, Feb 6, 2012 at 16:12, Kaya Saman  wrote:

> Hello,
>
> I've created some howto's over time with the latest last night.
>
>
> Here are the URLs:
>
>
> http://dev.xwiki.org/xwiki/**bin/view/Drafts/BSD_Migration
>
> http://dev.xwiki.org/xwiki/**bin/view/Drafts/BSD_Install
>
> http://dev.xwiki.org/xwiki/**bin/view/Drafts/Glassfish_**Solaris
>
>
>
> Could I get some feedback of peoples opinions on these and **if** they're
> ready/good-enough to be put onto the main Xwiki site.
> --if so then where they should go!
>
>
> Many thanks :-)
>
>
> Regards,
>
>
> Kaya
> __**_
> devs mailing list
> d...@xwiki.org
> http://lists.xwiki.org/**mailman/listinfo/devs
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Problem for removing or editing Workspaces

2012-02-16 Thread PUJOS Bertrand

Hi all,

I am trying to get a mock-up with XWiki workspaces. I have a problem, 
especially to remove a workspace or to make a change in the description. 
Each time, the Tomcat log indicates that XWiki could not verify the user 
rights:


When I try to delete the workspace:

2012-02-16 14:02:54,068 
[https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/DeleteWorkspaceCode?workspaceId=informatique&workspaceName=Informatique&confirm=1] 
ERROR .x.w.i.DefaultWorkspaceManager - Failed to check if user 
[[XWiki.superadmin, informatique]] can delete workspace 
[java.lang.NullPointerException]. Assuming false.


When I try to edit any workspace parameter:

2012-02-16 14:14:27,686 
[https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/UpdateWorkspaceCode] 
ERROR .x.w.i.DefaultWorkspaceManager - Failed to check if user 
[[XWiki.superadmin, informatique]] can edit workspace 
[java.lang.NullPointerException]. Assuming false.
2012-02-16 14:14:27,692 
[https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/UpdateWorkspaceCode] 
ERROR .WorkspaceManagerScriptService - Failed to edit workspace 
'informatique'.
org.xwiki.workspace.WorkspaceException: Access denied for user 
'XWiki.superadmin' to edit the workspace 'informatique' at 
org.xwiki.workspace.internal.WorkspaceManagerScriptService.editWorkspace(WorkspaceManagerScriptService.java:188) 
~[xwiki-platform-workspace-api-4.0-20120215.094308-2.jar:na]
2012-02-16 14:14:28,031 
[https://xwiki-test.domain.local/xwiki/wiki/informatique/admin/XWiki/XWikiPreferences?editor=globaladmin§ion=XWiki.ManageWorkspace&srid=xXxXxX] 
ERROR .x.w.i.DefaultWorkspaceManager - Failed to check if user 
[[xwiki:XWiki.superadmin, informatique]] can delete workspace 
[java.lang.NullPointerException]. Assuming false.


Problem is the same with XWiki.Admin, the owner of the workspace.Beyond 
that,I always thought that XWiki.superadmin always had full access, 
regardless of the rights settings... Do I have something wrong in my 
config?


Any help will be welcome! Thanks.

--
Bertrand PUJOS
IT Department - IRCAD
bertrand.pu...@ircad.fr
+33 (0) 3 88 11 91 36

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


Re: [xwiki-users] Performance tuning for growing wiki

2012-02-16 Thread Crowd Covered
I've solved the problem I asked about yesterday: Column length too big for
column 'XXX' (max = 21845); use BLOB or TEXT instead
There is a useful option in MySQL Migration Tool to change the SQL code for
table creation, so I've just used LONGTEXT instead of VARCHAR(6) and
alike which are not valid for MySQL.
Additionally I needed to fix several dates in XWIKIDATES like -04-16
00:00:00 into 2012... - no idea why they were treated as invalid...

Could someone also hint about consequences of several errors I wasn't able
to solve? May be they can be solved as well?

   1. For XWIKIATTACHMENT_ARCHIVE I got 0 of 20 entries transferred, with
   an error "Unknown column '0x' in 'field list'". Indeed in .script file I
   see them like this: INSERT INTO XWIKIATTACHMENT_ARCHIVE
   VALUES(-2145604653,''). I believe it's safe to ignore this? But how did it
   happen?
   2. Same error for XWIKIATTACHMENT_CONTENT, but there only one row should
   have been deleted - may I got problems because of this?

Will community benefit from description of such HSQLDB->MySQL migration or
was it a non-trivial thing for me only (I only faced databases during
university course)? :) If yes where can I add it?

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


Re: [xwiki-users] Configuration to enforce specific password policy in xwiki?

2012-02-16 Thread mohit gupta
i have done the changes th regarding point 1(replacing the default regex
with my regex) but regarding other points like 2 and 3, i think changes may
be required in data store too like  column for

1) which date ,the last password got changed
2)column having history of last 15 pwd
3)column indiacting the count how many time wrong pwd is entered
This is how it is done in typical web application.But for now i dont want
to introduce any data store changes. One reason is  we have to upgrade to
latest wiki version with new release.
On Wed, Feb 15, 2012 at 4:48 PM, Edo Beutler  wrote:

> Hi Mohit
>
> Whilst, AFAIK, not possible by default it should not be to hard to
> write your own password change script or (better since testable) Java
> component.
> 1) Submit your password change form to your page where you can check
> all your specifications.
> Counting the failed logins is probably something you should do in your
> authentication method.
> 2) Belongs also to the authentication: if last change >30 days show
> your password change form
> 3) Create a class with a password(! - of course not plain text) field
> and on each password change you add also an object of this class to
> the user page. Then when changing a new password just check if there
> is an object with a password matching the new one.
> 4) maybe add a field 'locked' to the user class ... or just use the
> field 'active' and set locked users to inactive
>
> At least that's how I would approach it
> Edo
>
>
> On Wed, Feb 15, 2012 at 11:43 AM, mohit gupta  wrote:
> > Hi,
> >
> > I want to apply  a specicific set of rules to password policy in xwiki so
> > that that if any new user/existing user(in case he want to change the
> > existing password)
> > adhere to this policy. Some of the rules are like :-
> >
> > 1)Password should have following charectics
> >  A minimum password length of fourteen (12) characters
> >  Contain at least one  alpha characters (a-z, A-Z).
> >  Contain at least one Upper Case Alpha character (A-Z).
> >  Contain at least one numeric character (0-9).
> >  Contain at least one  “special” character, such as the following:~ ` !
> @ #
> > $ % ’
> >  The maximum number of failed login attempts shall be set to 3.
> > 2)Passwords are required to be changed every 30 days
> > 3)A password history of last 13 passwords must be maintained so that new
> > password is not among last 13 passwords
> > 4)Where any user account has been locked out, admin should be subject to
> > reset the  password
> >
> > My first question is about point 1 . I can see one way to modify
> > registration password matching regex at
> > http://wikiURL/myWiki/bin/edit/XWiki/Registration?editor=wiki
> > so that i can change default policy from 6 character to customized policy
> > as per point 1. Is there any other way to from user interface ?
> >
> > Second point is i don't see any configuration setting to fulfil the
> > requirements 2,3 and 4. Does xwiki support this kind of configuration
> too?
> > ___
> > 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] List of all users: names and avatars; edit profile pages

2012-02-16 Thread Edo Beutler
Hi Resi

I think you will have to write your own script for that.
First you get all users of your wiki. I don't know of an api call for
that, so you could use $services.query.xwql("from
doc.object(XWiki.XWikiUsers) as obj").execute() You could also add
e.g. "order by obj.last_name" if you like to.
The result is a list. Using #foreach you can display all the things
you want for each user.

The information about the specialities or responsibilities should be
connected somehow to the users (maybe by using groups?). You could
also consider adding additional fields to the XWiki.XWikiUsers class
to reflect your specialities and responsibilities.
How to display this information depends on how you save and connect
them to the users.

Hope this helps
Edo


On Thu, Feb 16, 2012 at 8:42 AM, Theresa Noisser  wrote:
> Hello,
> for our company intranet wiki i'd like to have a page where all coworkers
> are listed with their names and pictures. I found a velocity code to give
> out the useravatar (e.g. #largeUserAvatar('XWiki.username') ), but is there
> a way to automatically generate a page where all the users are listed with
> names and pictures (perhaps in 2 columns and with links to their profile
> pages)? I only found a way to list all editors or page creators.
>
> And second, i would like to add information to the profile pages of the
> coworkers, e.g. their specialities or responsibilities. How can i do that?
>
> Thanks in advance,
> resi.
> ___
> 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 delete the attached document in trash.

2012-02-16 Thread Vincent Massol

On Feb 16, 2012, at 11:29 AM, Maxime Sinclair wrote:

> This feature will be available in version 3 of the Admin Tools.
> It will be fine to publish it.

Ok, didn't realize it was a feature being developed.

IMO we really need to include a lot of the Admin app features in XWiki Platform 
since they are globally useful.

Thanks
-Vincent

> Maxime
> 
> 2012/2/16 Vincent Massol :
>> 
>> On Feb 16, 2012, at 11:02 AM, Sergiu Dumitriu wrote:
>> 
>>> On 02/16/2012 04:17 AM, Vincent Massol wrote:
 Hi Gerard,
 
 On Feb 16, 2012, at 10:08 AM, Turmel Gérard wrote:
 
> Hello
> 
> We have 425 deleted attachments in our wiki.
> We can delete them one by one with the IHM but it's a bit boring.
> Is there any script to erase the deleted attachments ?
 
 It's a good idea, we need one on extensions.xwiki.org and I think it would 
 also be nice to have it in the Admin. Could you create a jira issue for 
 this?
 
 For now you could write a script and take inspiration from:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Empty+Trash+Bin
>>> 
>>> It's done in
>>> https://github.com/xwiki-contrib/application-admintools/blob/master/src/main/resources/Admin/ShrinkRecycleBins.xml
>> 
>> Which means that you should be able to install the Admin application in your 
>> wiki:
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Admin+Tools+Application
>> 
>> I don't see this feature listed on 
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Admin+Tools+Application 
>> though…
>> 
>> Thanks
>> -Vincent
>> ___
>> 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] categories: spaces or parent pages?

2012-02-16 Thread Maxime Sinclair
Hi Theresa,

In my opinion, the best way is to get one space by work group.
It's easy to define rights, or to custumize the presentation at the
space level.
Regards,
Maxime

2012/2/16 Theresa Noisser :
> Hi,
> i want to have our wiki categorized, since it's used as a intranet for a
> company with a few different work groups. So it would be the best if every
> group gets its own "category", but every coworker is able to see (and
> possibly edit) every page. But i'm not sure what's the best way to do this,
> i think the two possibilities are to use different spaces or to use parent
> pages.
> Can you tell me what the main differences are to help me with this decision?
> Is it only the rights management or are there any other
> advantages/disadvantages?
> Thanks again,
> resi.
> ___
> 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 delete the attached document in trash.

2012-02-16 Thread Maxime Sinclair
This feature will be available in version 3 of the Admin Tools.
It will be fine to publish it.

Maxime

2012/2/16 Vincent Massol :
>
> On Feb 16, 2012, at 11:02 AM, Sergiu Dumitriu wrote:
>
>> On 02/16/2012 04:17 AM, Vincent Massol wrote:
>>> Hi Gerard,
>>>
>>> On Feb 16, 2012, at 10:08 AM, Turmel Gérard wrote:
>>>
 Hello

 We have 425 deleted attachments in our wiki.
 We can delete them one by one with the IHM but it's a bit boring.
 Is there any script to erase the deleted attachments ?
>>>
>>> It's a good idea, we need one on extensions.xwiki.org and I think it would 
>>> also be nice to have it in the Admin. Could you create a jira issue for 
>>> this?
>>>
>>> For now you could write a script and take inspiration from:
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Empty+Trash+Bin
>>
>> It's done in
>> https://github.com/xwiki-contrib/application-admintools/blob/master/src/main/resources/Admin/ShrinkRecycleBins.xml
>
> Which means that you should be able to install the Admin application in your 
> wiki:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Admin+Tools+Application
>
> I don't see this feature listed on 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Admin+Tools+Application 
> though…
>
> Thanks
> -Vincent
> ___
> 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 delete the attached document in trash.

2012-02-16 Thread Vincent Massol

On Feb 16, 2012, at 11:02 AM, Sergiu Dumitriu wrote:

> On 02/16/2012 04:17 AM, Vincent Massol wrote:
>> Hi Gerard,
>> 
>> On Feb 16, 2012, at 10:08 AM, Turmel Gérard wrote:
>> 
>>> Hello
>>> 
>>> We have 425 deleted attachments in our wiki.
>>> We can delete them one by one with the IHM but it's a bit boring.
>>> Is there any script to erase the deleted attachments ?
>> 
>> It's a good idea, we need one on extensions.xwiki.org and I think it would 
>> also be nice to have it in the Admin. Could you create a jira issue for this?
>> 
>> For now you could write a script and take inspiration from:
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Empty+Trash+Bin
> 
> It's done in
> https://github.com/xwiki-contrib/application-admintools/blob/master/src/main/resources/Admin/ShrinkRecycleBins.xml

Which means that you should be able to install the Admin application in your 
wiki:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Admin+Tools+Application

I don't see this feature listed on 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Admin+Tools+Application 
though…

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


Re: [xwiki-users] How to delete the attached document in trash.

2012-02-16 Thread Sergiu Dumitriu

On 02/16/2012 04:17 AM, Vincent Massol wrote:

Hi Gerard,

On Feb 16, 2012, at 10:08 AM, Turmel Gérard wrote:


Hello

We have 425 deleted attachments in our wiki.
We can delete them one by one with the IHM but it's a bit boring.
Is there any script to erase the deleted attachments ?


It's a good idea, we need one on extensions.xwiki.org and I think it would also 
be nice to have it in the Admin. Could you create a jira issue for this?

For now you could write a script and take inspiration from:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Empty+Trash+Bin


It's done in
https://github.com/xwiki-contrib/application-admintools/blob/master/src/main/resources/Admin/ShrinkRecycleBins.xml

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


Re: [xwiki-users] How to get the rendered content of a document with translations?

2012-02-16 Thread Guillaume Delhumeau
Hi.

Thanks for your answers.

Edo>


> $xwiki.renderText(Document.getTranslatedContent(language), Document)
>

That doesn't work, I get the answer "Nested scripts are not allowed". (my
document contains velocity scripts)

Marius>

but this won't fix the fact that $msg.get('key') takes into account
> the context language, not the document language. If you can use
> programming rights then you can try setting the context language
> before rendering the document, and revert it afterwards.
>

You are right. That the trick I expected. So the answer is to do :

$xcontext.getContext().setLanguage('fr')
>

before getting the rendered content.

Maybe we could add this to the public API, or add a new parameter to
getRenderedContent() ?

Thanks again,

Guillaume


2012/2/15 Marius Dumitru Florea 

> On Wed, Feb 15, 2012 at 1:53 PM, Guillaume Delhumeau
>  wrote:
> > Hi guys.
> >
> > Let met describe you my problem.
> >
> > I get the rendered content of a document on a velocity script :
> >
> > #set($newsletterContent = $newsletterContentDoc.getRenderedContent())
> >
> > But I would like to specify the language I want ('fr' or 'en') because my
> > document contains translation keys.
> >
>
> > Of course, I tried to use Document.getTranslatedDocument() before
> rendering
> > it, but it doesn't work, maybe because my translated content is inside a
> > velocity script of the document.
> >
> > The best way would be having a language parameter into
> getRenderedContent()
> > function but since we can't, is there an easy way to do it?
>
> You can render explicitly the content of the translated document with
>
>
> $targetDocument.getRenderedContent($targetDocument.getTranslatedContent('fr'),
> $targetDocument.syntax.toIdString())
>
> but this won't fix the fact that $msg.get('key') takes into account
> the context language, not the document language. If you can use
> programming rights then you can try setting the context language
> before rendering the document, and revert it afterwards.
>
> Hope this helps,
> Marius
>
> >
> > --
> >
> > I also tried to do this :
> >
> > #set($newsletterContent =
> >
> $xwiki.getURLContent($newsletterContentDoc.getExternalURL('get','outputSyntax=plain&language=fr')))
> >
> > but it is very dirty and doesn't work since the wiki ask for credentials
> > when I do getURLContent().
> >
> > --
> >
> > Thx a lot.
> > Guillaume
> > ___
> > 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 delete the attached document in trash.

2012-02-16 Thread Vincent Massol
Hi Gerard,

On Feb 16, 2012, at 10:08 AM, Turmel Gérard wrote:

> Hello
> 
> We have 425 deleted attachments in our wiki.
> We can delete them one by one with the IHM but it's a bit boring.
> Is there any script to erase the deleted attachments ?

It's a good idea, we need one on extensions.xwiki.org and I think it would also 
be nice to have it in the Admin. Could you create a jira issue for this?

For now you could write a script and take inspiration from:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Empty+Trash+Bin

Thanks
-Vincent

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


[xwiki-users] How to delete the attached document in trash.

2012-02-16 Thread Turmel Gérard
Hello

We have 425 deleted attachments in our wiki.
We can delete them one by one with the IHM but it's a bit boring.
Is there any script to erase the deleted attachments ?

Thanks.



**
Ce message et toutes les pieces jointes sont confidentiels et etablis à 
l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
SISTEER decline toute responsabilite au titre de ce message s'il a ete altere, 
deforme ou falsifie.
Si vous n'etes pas le destinataire de ce message, merci de le detruire et 
d'informer l'expediteur.
**
This message and any attachments are confidential and intended solely for the 
addressee(s).
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration.
SISTEER shall not be liable for the message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it 
immediately and inform the sender.
**

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