[xwiki-users] renaming spaces

2009-02-05 Thread Sebastian Kannengiesser
Hi guys,

I took the code snippet from xwiki.org to rename spaces which principally works.
But the problem is that parent document settings which might be
associated to documents in that space do not get modified.
Do you have some quick velocity lines in mind, how one could enhance
the code snippet for renaming spaces in order to address this issue?

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


Re: [xwiki-users] LDAP-Login changes in new version

2009-02-05 Thread Stefan Woehrer


thanks a lot. it seems that this was an additional problem with the
firewall(!?)
anyway, the firewall is now configured to let through the whole ldap traffic
from the xwiki machine. the problem hasn't changed: sometimes, users are
randomly logged out with the wrong passowrd error message. when they try
to log in, they get the very same error message for a couple of times. a few
minutes later, they can login again and everything works.
this happens spontaniously a couple of times per day.

does any1 experience the same problem?


the next issue is that suddenly no (error/warning) messages are generated
any more. i will try a tomcat restart in the afternoon, but since we did
that a lot of times before i don't think this will help.

i would very much apprechiate any kind of help! thank you in advance.


steve



tmortagne wrote:
 
 Hi,
 
 On Mon, Feb 2, 2009 at 9:48 AM, Stefan Woehrer stefan_woeh...@yahoo.de
 wrote:

 Hi,

 we just upgraded our XWiki from 1.3.2 to 1.7.1.
 Right afterwards the firewall registers LDAP-Packages from the XWiki
 mashine
 as an attack, saying:

 A malicious LDAP packet may indicate a potential attack. An attacker
 could
 use a modified LDAP message to cause buffer overflows on defective
 systems
 and execute arbitary code. (LDAP message contains malicious data which
 does
 not comply with ASN.1)

 It seems that it has something to to with the changings made since 1.3.2.
 Is
 that possible?
 
 By default 1.7.1 use the new XWiki LDAP authenticator when 1.3.2 use
 the old one. See
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HLDAPAuthentication
 
 Now on the technical details it's using exactly the same Novell ldap
 client implementation and the differences are more on the XWiki side
 so I don't see why it would suddenly send wrong datas.
 

 Greetings,
 Steve
 --
 View this message in context:
 http://n2.nabble.com/LDAP-Login-changes-in-new-version-tp2257004p2257004.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

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

-- 
View this message in context: 
http://n2.nabble.com/LDAP-Login-changes-in-new-version-tp2257004p2273948.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] LDAP-Login changes in new version

2009-02-05 Thread Stefan Woehrer


hi,

i just discovered some warning messages in the stdout_mmdd.log - file in
the tomcat log directory, maby it helps: (does the skin have to be updated?)

[WARNING] Deprecated usage of getter [com.xpn.xwiki.api.Document.getWeb] in
xwiki.xwikilo...@1,15
[WARNING] Deprecated usage of getter [com.xpn.xwiki.api.Document.getWeb] in
skins.ours...@1,15
[WARNING] Deprecated usage of getter [com.xpn.xwiki.api.Document.getWeb] in
xwiki.xwikilo...@1,15
[WARNING] Deprecated usage of getter [com.xpn.xwiki.api.Document.getWeb] in
main.webh...@1,15
[WARNING] Deprecated usage of method
[com.xpn.xwiki.api.Document.getRenderedContent] in
/templates/commentsinline...@28,40

ourskin is basically the toucan skin with a few changes.

cheers,
steve
-- 
View this message in context: 
http://n2.nabble.com/LDAP-Login-changes-in-new-version-tp2257004p2273973.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] LDAP-Login changes in new version

2009-02-05 Thread Stefan Woehrer



ok .. as i enabled ldap debugging i get tons of messages ;-) very good.

here is a piece of xwiki.log when the login doesn't work (beginning with
Connection to LDAP server):



11:31:34,605 [http://xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http-80-3]
DEBUG ldap.XWikiLDAPConnection- Connection to LDAP server
[company.comp.co:389] 
11:31:49,761 [http://xwiki.company/bin/loginsubmit/XWiki/XWikiLogin]
[http-80-5] DEBUG LDAP.XWikiLDAPAuthServiceImpl   - The provided user is
null. We don't try to authenticate, it probably means the user is in non
logged mode. 
11:31:49,761 [http://xwiki.company/bin/loginsubmit/XWiki/XWikiLogin]
[http-80-5] DEBUG ldap.XWikiLDAPConfig- ldap_group_classes:
[groupofnames, groupwisedistributionlist, dynamicgroup, dynamicgroupaux,
groupofuniquenames, group] 
11:31:49,761 [http://xwiki.company/bin/loginsubmit/XWiki/XWikiLogin]
[http-80-5] DEBUG ldap.XWikiLDAPConfig- ldap_group_memberfields:
[member, uniquemember] 
11:31:49,761 [http://xwiki.company/bin/loginsubmit/XWiki/XWikiLogin]
[http-80-5] DEBUG ldap.XWikiLDAPConnection- Connection to LDAP
server [company.comp.co:389] 
11:31:55,621 [http://xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http-80-3]
DEBUG LDAP.XWikiLDAPAuthServiceImpl   - Local LDAP authentication failed. 
com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5: LDAP bind
failed with LDAPException.
Wrapped Exception: Connect Error
at
com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:174)
at
com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:108)
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticateInContext(XWikiLDAPAuthServiceImpl.java:304)
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:202)
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:149)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:239)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:165)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:148)
at
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:203)
at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3578)
at
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:139)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3586)
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4572)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:190)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:135)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at

Re: [xwiki-users] Add a user on a User List property

2009-02-05 Thread Jean Couteau
Any clue on this issue ?

Jean Couteau a écrit :
 Dear all,

 I have a class with a UserList attribute. I am trying to add users to 
 this list from an other page with no success. I try using the following 
 code :

 #if($joinTask!=)
   #set($taskDoc = $xwiki.getDocument(Project.${joinTask}))
   #set($taskObj = $taskDoc.getObject(XWiki.TaskClass))
   #set($list = $taskObj.get(assignedPeople))
   $list.add($xwiki.getUser())
   $taskObj.set(assignedPeople, ${list})
   $taskDoc.save()
 #end

 but $list.add does not exist so I tried differently :

 #if($joinTask!=)
   #set($taskDoc = $xwiki.getDocument(Project.${joinTask}))
   #set($taskObj = $taskDoc.getObject(XWiki.TaskClass))
   #set($list = $util.getArrayList())
   $list.add($xwiki.getUser())
   $taskObj.set(assignedPeople, ${list})
   $taskDoc.save()
 #end

 but I have a casting exception.

 I had a look on the velocity website, on this list archives,... with no 
 success

 My question is : Can I add users like that or the only way is through 
 the edit panel and if yes, what is my mistake ?

 Best regards,

 Jean

   


-- 

Jean Couteau
Code Lutin - http://www.codelutin.com
44 Bd des Pas Enchantés - 44230 St-Sébastien/Loire
Tél : 02 40 50 29 28 - Fax : 09 59 92 29 28 

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


[xwiki-users] Task Manager Application without Filter - 1.8 M2

2009-02-05 Thread Michael Beetz
Hi all,

The Task Manger Application doesn't show the table filter anymore any
idea?

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


Re: [xwiki-users] Things left to be translated into spanish

2009-02-05 Thread Marius Dumitru Florea
For the GWT-based editor you have to replace the file I pointed out with 
the translation and rebuild web/wysiwyg, web/standard and enterprise. 
It's a pain right now. Adding a translation to the new WYSIWYG editor 
will be made easier in the short future.

Marius

Hernández Cuchí wrote:
 I am in release XWiki Enterprise 1.7.14685
 
 I think that that's compiled into the GWT code, isn't it? 
 
 Is it possible to change it in my local installation?
 
 thanks
 
 -Mensaje original-
 De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] En nombre de 
 Marius Dumitru Florea
 Enviado el: jueves, 05 de febrero de 2009 12:57
 Para: XWiki Users
 Asunto: Re: [xwiki-users] Things left to be translated into spanish
 
 I was referring to the GWT-based editor. I don't know about the TinyMCE one.
 
 Marius
 
 Hernández Cuchí wrote:
 Correct me if I am wrong, in order to use it automatically, 
 just modify the 
 xwiki\webapps\xwiki\tiny_mce\themes\wikieditor\langs\en.js with the 
 translation I want, ok?

 I can send it (the Spanish version) when finished,

 /F
 -Mensaje original-
 De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] En nombre de 
 Marius Dumitru Florea
 Enviado el: miércoles, 04 de febrero de 2009 14:48
 Para: XWiki Users
 Asunto: Re: [xwiki-users] Things left to be translated into spanish



 Hernández Cuchí wrote:
 Hello everybody,

  

  

 Changing the language to Spanish translates almost everything, and I say 
 everything because three important things for us weren't translated:

  

 -The WYIWYG editor: I am considering to do it directly into the 
 code
 If you are referring to the new WYSIWYG (for XWiki 2.0 syntax) then all 
 the labels should be found in http://tinyurl.com/bwrlho . Right now the 
 language is not automatically detected, I think, but we'll take care of 
 it soon.

 Thanks,
 Marius

 -Some panel headers: just editing the panel allows me to 
 translate

 -the tabs with Comments/attachments/history/information footer: 
 which I have no idea how to translate.

  

 My question is specially about the third point, how can I change it?, the 
 content is properly translated, but the TAB name is still in English. 

  

 Thanks^2

  

 --

 Francisco Hernández Cuchí

 OFICINA ESPAÑOLA DE PATENTES Y MARCAS

 mail: francisco.hernan...@oepm.es mailto:francisco.hernan...@oepm.es 

  

 **
 IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial 
 y está dirigido únicamente 
 para el destinatario/s.
 Si Ud recibe este correo por error, por favor póngase en contacto con su 
 administrador de correo o con el 
 emisor immediatamente y no difunda su contenido a nadie ni haga copias.
 *** Este correo ha sido escaneado de virus y contenido malicioso ***
 **
 ___
 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
 **
 IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial 
 y está dirigido únicamente 
 para el destinatario/s.
 Si Ud recibe este correo por error, por favor póngase en contacto con su 
 administrador de correo o con el 
 emisor immediatamente y no difunda su contenido a nadie ni haga copias.
 *** Este correo ha sido escaneado de virus y contenido malicioso ***
 **

 ___
 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
 **
 IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y 
 está dirigido únicamente 
 para el destinatario/s.
 Si Ud recibe este correo por error, por favor póngase en contacto con su 
 administrador de correo o con el 
 emisor immediatamente y no difunda su contenido a nadie ni haga copias.
 *** Este correo ha sido escaneado de virus y contenido malicioso ***
 **
 
 ___
 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] Things left to be translated into spanish

2009-02-05 Thread Marius Dumitru Florea
I was referring to the GWT-based editor. I don't know about the TinyMCE one.

Marius

Hernández Cuchí wrote:
 Correct me if I am wrong, in order to use it automatically, 
 just modify the 
 xwiki\webapps\xwiki\tiny_mce\themes\wikieditor\langs\en.js with the 
 translation I want, ok?
 
 I can send it (the Spanish version) when finished,
 
 /F
 -Mensaje original-
 De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] En nombre de 
 Marius Dumitru Florea
 Enviado el: miércoles, 04 de febrero de 2009 14:48
 Para: XWiki Users
 Asunto: Re: [xwiki-users] Things left to be translated into spanish
 
 
 
 Hernández Cuchí wrote:
 Hello everybody,

  

  

 Changing the language to Spanish translates almost everything, and I say 
 everything because three important things for us weren't translated:

  

 
 -The WYIWYG editor: I am considering to do it directly into the 
 code
 
 If you are referring to the new WYSIWYG (for XWiki 2.0 syntax) then all 
 the labels should be found in http://tinyurl.com/bwrlho . Right now the 
 language is not automatically detected, I think, but we'll take care of 
 it soon.
 
 Thanks,
 Marius
 
 -Some panel headers: just editing the panel allows me to 
 translate

 -the tabs with Comments/attachments/history/information footer: 
 which I have no idea how to translate.

  

 My question is specially about the third point, how can I change it?, the 
 content is properly translated, but the TAB name is still in English. 

  

 Thanks^2

  

 --

 Francisco Hernández Cuchí

 OFICINA ESPAÑOLA DE PATENTES Y MARCAS

 mail: francisco.hernan...@oepm.es mailto:francisco.hernan...@oepm.es 

  

 **
 IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial 
 y está dirigido únicamente 
 para el destinatario/s.
 Si Ud recibe este correo por error, por favor póngase en contacto con su 
 administrador de correo o con el 
 emisor immediatamente y no difunda su contenido a nadie ni haga copias.
 *** Este correo ha sido escaneado de virus y contenido malicioso ***
 **
 ___
 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
 **
 IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y 
 está dirigido únicamente 
 para el destinatario/s.
 Si Ud recibe este correo por error, por favor póngase en contacto con su 
 administrador de correo o con el 
 emisor immediatamente y no difunda su contenido a nadie ni haga copias.
 *** Este correo ha sido escaneado de virus y contenido malicioso ***
 **
 
 ___
 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] Task Manager Application without Filter - 1.8 M2

2009-02-05 Thread Jerome Velociter
Hello Michael,

Yes, this is due to http://jira.xwiki.org/jira/browse/XWIKI-3177. 
Starting 1.8M2, XWiki does not send all JavaScript and CSS files 
automatically to the browser to optimize page serving speed. Wiki pages 
(and thus applications) have now to explicitly request certain files 
that most of the times are useless. I just added a note stating this on 
1.8M2 release notes migration section: 
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise18M2#HApplicationsmigration

I uploaded a new version of the TaskManagerApplication that fixes this 
issue, too. If you don't want to go through the upgrading process, edit 
your Tasks.WebHome page, and add the following lines at the beginning:

## Starting XE 1.8M2, table filters JS and CSS are not automatically 
sent to the client with all pages.
## If the jsfx and ssfx plugins are present (introduced in 1.8 M2 too), 
we ask them to explicitely
## inject the proper script and link tags in the HTML header.
#if($xwiki.jsfx)
$xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js)
#end
#if($xwiki.ssfx)
$xwiki.ssfx.use(js/xwiki/table/table.css)
#end

Hopes this helps,
Regards,

Jerome.

Michael Beetz wrote:
 Hi all,

 The Task Manger Application doesn't show the table filter anymore any
 idea?

 Thanks
 mb
 ___
 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] Task Manager Application without Filter - 1.8 M2

2009-02-05 Thread Michael Beetz
Hello Jerome,

It's working fine.  However I am suggesting to add it to
TasksCode/Macros - it will be available to all pages using tasks.

By the way:  Is there any update to the question below?

Thanks
mb

===
Michael Beetz wrote:
 Hi all,
 
  
 
 I am using XWiki 1.6 / 1.7 / 1.8 on a Tomcat 6, java 1.6 and XP.  The
task manager application causes some problems.  Updating the IssueClass
once (just change for the date fields the display formats) leads to the
error below.  The visible error:  No Reporter / Assignee is
visible within the lists / sheets.
 
  
 
 Any ideas?
 
  
 
 Thanks
 
 mb
 
  
 
 org.hibernate.QueryException: expecting ''', found 'EOF' [select 
 prop1.value||' from com.xpn.xwiki.objects.BaseObject as obj, 
 com.xpn.xwiki.objects.StringProperty as prop1, 
 com.xpn.xwiki.objects.StringProperty as prop2,  
 com.xpn.xwiki.objects.IntegerProperty as prop where 
 obj.className='XWiki.XWikiUsers' and obj.id=prop1.id.id and 
 prop1.id.name='first_name' and obj.id=prop2.id.id and 
 prop2.id.name='last_name'  and obj.id=prop.id.id and 
 prop.id.name='active' and prop.value=1 and obj.name='XWiki.mb']

This is caused by a bug in the core. It will be fixed shortly.

--
Sergiu Dumitriu

===
-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
Of Jerome Velociter
Sent: Thursday, February 05, 2009 1:37 PM
To: XWiki Users
Subject: Re: [xwiki-users] Task Manager Application without Filter - 1.8
M2

Hello Michael,

Yes, this is due to http://jira.xwiki.org/jira/browse/XWIKI-3177. 
Starting 1.8M2, XWiki does not send all JavaScript and CSS files 
automatically to the browser to optimize page serving speed. Wiki pages 
(and thus applications) have now to explicitly request certain files 
that most of the times are useless. I just added a note stating this on 
1.8M2 release notes migration section: 
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise18M2
#HApplicationsmigration

I uploaded a new version of the TaskManagerApplication that fixes this 
issue, too. If you don't want to go through the upgrading process, edit 
your Tasks.WebHome page, and add the following lines at the beginning:

## Starting XE 1.8M2, table filters JS and CSS are not automatically 
sent to the client with all pages.
## If the jsfx and ssfx plugins are present (introduced in 1.8 M2 too), 
we ask them to explicitely
## inject the proper script and link tags in the HTML header.
#if($xwiki.jsfx)
$xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js)
#end
#if($xwiki.ssfx)
$xwiki.ssfx.use(js/xwiki/table/table.css)
#end

Hopes this helps,
Regards,

Jerome.

Michael Beetz wrote:
 Hi all,

 The Task Manger Application doesn't show the table filter anymore any
 idea?

 Thanks
 mb
 ___
 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] LDAP-Login changes in new version

2009-02-05 Thread Thomas Mortagne
On Thu, Feb 5, 2009 at 12:03, Stefan Woehrer stefan_woeh...@yahoo.de wrote:



 ok .. as i enabled ldap debugging i get tons of messages ;-) very good.

 here is a piece of xwiki.log when the login doesn't work (beginning with
 Connection to LDAP server):



 11:31:34,605 [http://xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http-80-3]
 DEBUG ldap.XWikiLDAPConnection- Connection to LDAP server
 [company.comp.co:389]
 11:31:49,761 [http://xwiki.company/bin/loginsubmit/XWiki/XWikiLogin]
 [http-80-5] DEBUG LDAP.XWikiLDAPAuthServiceImpl   - The provided user is
 null. We don't try to authenticate, it probably means the user is in non
 logged mode.
 11:31:49,761 [http://xwiki.company/bin/loginsubmit/XWiki/XWikiLogin]
 [http-80-5] DEBUG ldap.XWikiLDAPConfig- ldap_group_classes:
 [groupofnames, groupwisedistributionlist, dynamicgroup, dynamicgroupaux,
 groupofuniquenames, group]
 11:31:49,761 [http://xwiki.company/bin/loginsubmit/XWiki/XWikiLogin]
 [http-80-5] DEBUG ldap.XWikiLDAPConfig- ldap_group_memberfields:
 [member, uniquemember]
 11:31:49,761 [http://xwiki.company/bin/loginsubmit/XWiki/XWikiLogin]
 [http-80-5] DEBUG ldap.XWikiLDAPConnection- Connection to LDAP
 server [company.comp.co:389]
 11:31:55,621 [http://xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http-80-3]
 DEBUG LDAP.XWikiLDAPAuthServiceImpl   - Local LDAP authentication failed.
 com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5: LDAP bind
 failed with LDAPException.
 Wrapped Exception: Connect Error
at
 com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:174)
at
 com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:108)
at
 com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticateInContext(XWikiLDAPAuthServiceImpl.java:304)
at
 com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:202)
at
 com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:149)
at
 com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:239)
at
 com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:165)
at
 com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:148)
at
 com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:203)
at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3578)
at
 com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:139)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3586)
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4572)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:190)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at 
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
 com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:135)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
 com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
 

Re: [xwiki-users] Navigation Panel Displays in Different Locationof the Page

2009-02-05 Thread Villas82

It seems as the WYSIWYG editor causes this. When you enable center alignment,
it adds a div, below showed, which is never closed. 

div style=text-align: center


Dicheva, Darina wrote:
 
 Hande,
 
  
 
 You got the code validated, right? Perhaps you could also send the
 report from the validator ...
 
  
 
 
 
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
 Of Hande Aksac
 Sent: Monday, October 29, 2007 2:24 PM
 To: XWiki Users
 Subject: Re: [xwiki-users] Navigation Panel Displays in Different
 Locationof the Page
 
  
 
  
 
 Thank you for your reply. However, even though I used a validation tool,
 I still could not spot where the problem might be.  I was wondering if
 you could help me with the code below so that the navigation panel will
 not display in different locations on the Blog WebHome page? Thank you. 
 
  
 
 Hande
 
  
 
 This is the code behind Blog.Macros:
 
  
 
 #macro(blog $category $nbitems $nbstart)
 #if(!$maxchars)
 #set($maxchars = 400)
 #end
 div class=hfeed
 #if($category=='')
 #set ($sql = , BaseObject as obj where obj.name=doc.fullName and
 obj.className='XWiki.ArticleClass' and
 obj.name'XWiki.ArticleClassTemplate' order by doc.creationDate desc)
 #else
 #set ($sql = , BaseObject as obj, DBStringListProperty as prop join
 prop.list list where obj.name=doc.fullName and
 obj.className='XWiki.ArticleClass' and
 obj.name'XWiki.ArticleClassTemplate' and obj.id=prop.id.id and
 prop.id.name='category '  and list='${category}' order by
 doc.creationDate desc)
 ## TODO: feed category
 #end
 #set($cdate = )
 #set($inbitems = $xwiki.parseInt($nbitems))
 #set($inbstart = $xwiki.parseInt($nbstart)) 
 #foreach ($item in $xwiki.searchDocuments($sql, $inbitems, $inbstart))
 #set($bentrydoc = $xwiki.getDocument($item))
 #if($bentrydoc.fullName == $item)
 #set($bentryobj = $bentrydoc.getObject(XWiki.ArticleClass ))
 #set($creationDate = $xwiki.formatDate($bentrydoc.creationDate, 
 dd, ))
 #if($cdate!=$creationDate)
 div class=article_date$creationDate/div
 #set ($cdate = $creationDate) 
 #end
 div class=hentry
 h4 class=heading-1-1-1 entry-title$bentrydoc.display(title,view,
 $bentryobj)/h4
 div class=article_content entry-summary 
 
 #set($content = $bentrydoc.display(extract, view, $bentryobj))
 #if($content==)
 #set($content = $bentrydoc.display(content, view, $bentryobj))
 #if($content.length()400) 
 #set($i = $content.lastIndexOf( , $maxchars))
 #set($i = $i + 1)
 #set($content = ${content.substring(0,$i)}
 [...${bentrydoc.fullName}])
 #end
 #else
 #set($content = ${content} [...${ bentrydoc.fullName}])
 #end
 
 
 #set($Author = $bentrydoc.display(extract, view, $bentryobj))
 #if($Author==)
 #set($Author = $bentrydoc.display(AuthorName, view, $bentryobj))
 #if($content.length()400) 
 #set($i = $Author.lastIndexOf( , $maxchars))
 #set($i = $i + 1)
 #set($Author = ${Author.substring(0,$i)} [...${bentrydoc.fullName}])
 #end
 #else
 #set($Author = ${Author} [...${ bentrydoc.fullName}])
 #end
 
 
 #set($Year = $bentrydoc.display(extract, view, $bentryobj))
 #if($Year==)
 #set($Year = $bentrydoc.display(YearInfo, view, $bentryobj))
 #if($Year.length()400) 
 #set($i = $Year.lastIndexOf( , $maxchars))
 #set($i = $i + 1)
 #set($Year = ${Year.substring(0,$i)} [...${bentrydoc.fullName}])
 #end
 #else
 #set($Year = ${Year} [...${ bentrydoc.fullName}])
 #end
 
 
 #set($References = $bentrydoc.display(extract, view, $bentryobj))
 #if($References==)
 #set($References = $bentrydoc.display(ReferencesInfo, view,
 $bentryobj)) 
 #if($References.length()400)
 #set($i = $References.lastIndexOf( , $maxchars))
 #set($i = $i + 1)
 #set($References = ${References.substring(0,$i)}
 [...${bentrydoc.fullName}])
 #end
 #else
 #set($References = ${References} [...${bentrydoc.fullName}])
 #end
 
 
 #set($URL = $bentrydoc.display(extract, view, $bentryobj))
 #if($URL==)
 #set($URL = $bentrydoc.display(URLInfo, view, $bentryobj))
 #if($URL.length()400) 
 #set($i = $URL.lastIndexOf( , $maxchars))
 #set($i = $i + 1)
 #set($URL = ${URL.substring(0,$i)} [...${bentrydoc.fullName}])
 #end
 #else
 #set($URL = ${URL} [...${bentrydoc.fullName }])
 #end
 
 ##Make the content visible or invisible 10-16-07 by Hande
 
 #if(($Author !=)  ($Year !=) || ($References !=)  ($URL !=))
 Author:nbsp;$bentrydoc.display(AuthorName,view,
 $bentryobj)br 
 Year:nbsp;$bentrydoc.display(YearInfo,view, $bentryobj)br
 Reference:nbsp;$bentrydoc.display(ReferencesInfo,view,
 $bentryobj)br 
 URL:nbsp;$bentrydoc.display(URLInfo,view, $bentryobj)br
 #else
 ##set($content = $bentrydoc.display(content, view, $bentryobj))
 $bentrydoc.getRenderedContent($content) 
 #end
 
 
 /div ## entry-content
 div class=article_footer
 #set($bcategories = $bentryobj.getProperty(category).value)
 Posted by address class=author
 vcard#userfn($bentrydoc.creator)/address at abbr class=published
 title=#formatdateISO($bentrydoc.creationDate)$xwiki.formatDate($bentr
 ydoc.creationDate, MMM dd,  

Re: [xwiki-users] MIT Simile Widgets (spiffy JS Timeline/Timeplot/Timegrid) for Xwiki?

2009-02-05 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi,

Please, must I expect that the timeline snippet or the modifications 
proposed by Niels work fine in a 1.3.8295 XWiki Enterprise. Sorry, I now 
that I must update this server...

Thanks for your help,

Ricardo

Niels Mayer wrote:
 FYI, I've updated and commented the Timeline example (
 http://code.xwiki.org/xwiki/bin/view/Snippets/TimelineSnippet ) in
 preparation of my nefarious deconstruction of the widget into a novel
 interface for a totally different form of usage ...

 working example:
 http://nielsmayer.com/xwiki/bin/view/Timeline/TL2

 sources: http://nielsmayer.com/xwiki/bin/view/Timeline/TL2?viewer=code 
 http://nielsmayer.com/xwiki/bin/view/Timeline/ChangesList?viewer=code

 Next steps is to remove this constraint (suggested in
 http://code.xwiki.org/xwiki/bin/view/Snippets/TimelineSnippet ). If you
 forget to do this, nothing works;  yet, adding it is quite annoying and
 shouldn't be needed:

   
 Prerequisites

 You must add this line:

 script src=http://simile.mit.edu/timeline/api/timeline-api.js; 
 type=text/javascript/script

 At the bottom of the HTTP Meta Information field in *Administration*  *
 Presentation*.

 
 Seems like the following links are good starting points for a solution to
 the above issue: Installing MIT Simile's Timeline locally (w/ Rails
 integration) | Ryan Kanno: The diary of an Enginerd in
 Hawaiihttp://blog.localkinegrinds.com/2007/11/06/installing-mit-similes-timeline-locally-w-rails-integration/
 Message http://simile.mit.edu/mail/ReadMsg?listId=10msgId=19202 
 Messagehttp://simile.mit.edu/mail/ReadMsg?listId=10msgId=19199...

 This entails installing a local copy of the timeline javascript and
 modifying a few lines of source. Othewise, with the existing solution,
 you're stuck with loading the simile javascript for any page on your site,
 slowing down the initial load time even more with yet more global javascript
 that never gets called in most situations. (Alternately, perhaps catenating
 all the timeline javascript and shoving it into a single xwiki doc or
 template that gets included only in a timeline-using app).

 -- Niels
 http://nielsmayer.com

 PS: I think it would be interesting to put extra attributes on certain sets
 of documents, and then sql-query for those documents with those attributes
 and present them in the timeline. That way,  for example, one could render a
 sequence of steps over time, where each step is a xwiki doc. There's no
 reason why the horizontal axis needs to represent discrete time. It can
 represent any monotonically increasing sequence. For example, editing the
 sequence of steps and concurrent streaming media for purposes of making a
 movie or real-time presentation composed from wiki components.

 PPS:
 http://en.wikibooks.org/wiki/XQuery/DBpedia_with_SPARQL_and_Simile_Timeline_-_Album_Chronologyis
 another interesting application of the Timeline widget. It would be
 interesting if xwiki could support SPARQL (
 http://www.w3.org/TR/rdf-sparql-XMLres/ ). The timeline widget doesn't
 necessarily need to be used as a timeline... you could also use it to
 present complex database result sets laid out in two-dimensions, for example
 (e.g. search hits presented over topic and confidence in matching.).

 On Thu, Jan 22, 2009 at 1:44 PM, Jean-Vincent Drean
 jean-vinc...@drean.orgwrote:

   
 Hi,

 I've played quite a lot with Simile Timeline in the past.
 I've made a little snippet showing last modifications within the wiki
 on code.xwiki.org :
 http://code.xwiki.org/xwiki/bin/view/Snippets/TimelineSnippet

 In action: http://incubator.myxwiki.org/xwiki/bin/view/Main/Timeline

 JV.

 On Thu, Jan 22, 2009 at 8:35 PM, Niels Mayer nielsma...@gmail.com wrote:
 
 Has anybody integrated any of MIT's open source Project Simile (
 http://code.google.com/p/simile-widgets/ ) JS widgetry into Xwiki? For
 example their http://simile.mit.edu/timeline/
 http://simile.mit.edu/timeplot/ or http://simile.mit.edu/timegrid/ ??

 This has been discussed previously on these lists:

   
 http://markmail.org/message/bds6fein6w4ftqot#query:MIT%20Simile%20Xwiki+page:1+mid:55peh7tm5z2vjoyd+state:results
 
 http://markmail.org/message/bds6fein6w4ftqot#query:MIT%20Simile%20Xwiki+page:1+mid:xu5d32bukkmtdldx+state:results
 
 http://markmail.org/message/bds6fein6w4ftqot#query:MIT%20Simile%20Xwiki+page:1+mid:hefinq3w652jrkiy+state:results
 
 http://markmail.org/message/bds6fein6w4ftqot#query:MIT%20Simile%20Xwiki+page:1+mid:yd4a3nb2mk6e3fdu+state:results
 
 http://markmail.org/message/bds6fein6w4ftqot#query:MIT%20Simile%20Xwiki+page:1+mid:nt5t5e27ccykrnx4+state:results
 
 Unfortunately, all the emails mention example links that no longer exist,
   
 so
 
 there's no obvious Xwiki examples providing Simile widgetry in Xwiki ...

 FYI, Other environments have integrated some of the MIT functionality:
 http://drupal.org/project/timeline
 http://drupal.org/project/exhibit
 http://simile.mit.edu/wiki/Wibbit

 Niels
 

Re: [xwiki-users] MIT Simile Widgets (spiffy JS Timeline/Timeplot/Timegrid) for Xwiki?

2009-02-05 Thread Niels Mayer
On Thu, Feb 5, 2009 at 3:08 PM, [Ricardo Rodriguez] Your EPEC Network ICT
Team webmas...@environmentalchange.net wrote:

 Please, must I expect that the timeline snippet or the modifications
 proposed by Niels work fine in a 1.3.8295 XWiki Enterprise. Sorry, I now
 that I must update this server...


Did you remember to  do this:
...
script src=http://simile.mit.edu/timeline/api/timeline-api.js;
type=text/javascript/script

At the bottom of the HTTP Meta Information field in *Administration*  *
Presentation*.
..

-- Niels
http://nielsmayer.com
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Error number 4001 in 4: Error while parsing velocity page XWiki.WatchListMessage

2009-02-05 Thread Olivier Gies
Hi everyone,

Using XWiki Enterprise version 1.7.1, we are having an error in the 
e-mails received while watching spaces, and cannot get to the root of it.

The Watchlist Updates e-mail contents are just as follows:

Error number 4001 in 4: Error while parsing velocity page 
XWiki.WatchListMessage Wrapped Exception: Failed to evaluate content 
with id [XWiki.WatchListMessage] 
mailbox:///d%7C/ThunderBird-Mail/Local%20Folders/Inbox?number=1701611485



When checking the server log, here's what we have

[ERROR] Method formatDate threw exception for reference $xwiki in 
template XWiki.WatchListMessage at  [27,61]
org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content 
with id [XWiki.WatchListMessage]
at 
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187)
at 
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at 
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMailFromTemplate(MailSenderPlugin.java:662)
at 
com.xpn.xwiki.plugin.watchlist.WatchListJob.sendNotificationMessage(WatchListJob.java:430)
at 
com.xpn.xwiki.plugin.watchlist.WatchListJob.execute(WatchListJob.java:181)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at 
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: org.apache.velocity.exception.MethodInvocationException: 
Invocation of method 'formatDate' in  class com.xpn.xwiki.api.XWiki 
threw exception java.lang.NullPointerException @ 
XWiki.WatchListMessage[27,68]
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at 
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448)
at 
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at 
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
... 7 more
Caused by: java.lang.NullPointerException
at com.xpn.xwiki.XWiki.formatDate(XWiki.java:5143)
at com.xpn.xwiki.api.XWiki.formatDate(XWiki.java:1831)
at sun.reflect.GeneratedMethodAccessor210.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
... 14 more
java.lang.NullPointerException
at java.util.Calendar.setTime(Calendar.java:1032)
at java.text.SimpleDateFormat.format(SimpleDateFormat.java:785)
at java.text.SimpleDateFormat.format(SimpleDateFormat.java:778)
at java.text.DateFormat.format(DateFormat.java:314)
at com.xpn.xwiki.XWiki.formatDate(XWiki.java:5138)
at com.xpn.xwiki.api.XWiki.formatDate(XWiki.java:1831)
at sun.reflect.GeneratedMethodAccessor210.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at 
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448)
at 
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at 
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at 
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at 
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMailFromTemplate(MailSenderPlugin.java:662)
at 
com.xpn.xwiki.plugin.watchlist.WatchListJob.sendNotificationMessage(WatchListJob.java:430)
at