Re: [xwiki-users] security concern: XWikiGuest rolling back

2009-02-23 Thread Sergiu Dumitriu
Yishay Mor wrote:
 This has happened a few times on
> http://patternlanguagenetwork.myxwiki.org/,  and I can't explain it.
> I set the access rights to allow view by all, but edit is restricted.
>> I'm
> seeing documents rolled back to older versions by XWikiGuest. Example:
>
>> http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Patterns/tabletopconceptmapping
 On this document the guest has been granted edit rights. Look at the
 rights editing for it, and select Users, and you will see that
 Unregistered Users has set view, comment and edit.
>> I still see edit selected... And as a guest I can indeed edit the
>> document. Just to make sure we're on the same page, I'm looking at
>>
>> http://patternlanguagenetwork.myxwiki.org/xwiki/bin/edit/Patterns/tabletopconceptmapping?editor=rights
>>
> 
> This is really puzzling. I don't understand how the guest user has obtained
> edit rights on some objects and not on others. Just to be on the safe side,
> I ran the script below:
> 
> #set ($hql = ", BaseObject as obj where obj.name=doc.fullName and
> obj.className='Patterns.PatternClass' and obj.name
> <>'Patterns.PatternClassTemplate'")
> #set ($items= $xwiki.searchDocuments($hql))
> #foreach ($item in $items)
> * $item
>   #set ($itemDoc = $xwiki.getDocument($item))
>   #set ($rights = $itemDoc.getObject("XWiki.XWikiRights", true))
>   #set ($result = $rights.set("levels", "edit"))
>   #set ($result = $rights.set("users", "XWiki.XWikiGuest"))
>   #set ($result = $rights.set("allow", 0))
> #end

Without a $itemDoc.save(), this is kind of useless...

I didn't check long enough, but I've seen that the guest right is set
right from the first version. I don't know how does your site works, but
could it be caused by the fact that a new pattern has the "owner"
(wrongly) set to XWikiGuest, and you have a script that grants view and
edit rights to the owner right after the document was created?

I tested by creating a new document having Patterns.PatternClassTemplate
as a template, and while the template has 3 rights objects, the first
one specifying that XWikiAdminGroup can edit, the created document had
the first object also specify that XWikiGuest can edit, not just the admins.

Furthermore, I manually edited the Pattern object and set a different
owner (Yishay Mor), and automatically the first rights object was
changed to specify that Yishay Mor has edit rights, and not XWikiGuest.

So, better check how is the owner of a pattern set.

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


Re: [xwiki-users] security concern: XWikiGuest rolling back

2009-02-23 Thread Sergiu Dumitriu
Sergiu Dumitriu wrote:
> Yishay Mor wrote:
> This has happened a few times on
>> http://patternlanguagenetwork.myxwiki.org/,  and I can't explain it.
>> I set the access rights to allow view by all, but edit is restricted.
>>> I'm
>> seeing documents rolled back to older versions by XWikiGuest. Example:
>>
>>> http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Patterns/tabletopconceptmapping
> On this document the guest has been granted edit rights. Look at the
> rights editing for it, and select Users, and you will see that
> Unregistered Users has set view, comment and edit.
>>> I still see edit selected... And as a guest I can indeed edit the
>>> document. Just to make sure we're on the same page, I'm looking at
>>>
>>> http://patternlanguagenetwork.myxwiki.org/xwiki/bin/edit/Patterns/tabletopconceptmapping?editor=rights
>>>
>> This is really puzzling. I don't understand how the guest user has obtained
>> edit rights on some objects and not on others. Just to be on the safe side,
>> I ran the script below:
>>
>> #set ($hql = ", BaseObject as obj where obj.name=doc.fullName and
>> obj.className='Patterns.PatternClass' and obj.name
>> <>'Patterns.PatternClassTemplate'")
>> #set ($items= $xwiki.searchDocuments($hql))
>> #foreach ($item in $items)
>> * $item
>>   #set ($itemDoc = $xwiki.getDocument($item))
>>   #set ($rights = $itemDoc.getObject("XWiki.XWikiRights", true))
>>   #set ($result = $rights.set("levels", "edit"))
>>   #set ($result = $rights.set("users", "XWiki.XWikiGuest"))
>>   #set ($result = $rights.set("allow", 0))
>> #end
> 
> Without a $itemDoc.save(), this is kind of useless...
> 
> I didn't check long enough, but I've seen that the guest right is set
> right from the first version. I don't know how does your site works, but
> could it be caused by the fact that a new pattern has the "owner"
> (wrongly) set to XWikiGuest, and you have a script that grants view and
> edit rights to the owner right after the document was created?
> 
> I tested by creating a new document having Patterns.PatternClassTemplate
> as a template, and while the template has 3 rights objects, the first
> one specifying that XWikiAdminGroup can edit, the created document had
> the first object also specify that XWikiGuest can edit, not just the admins.
> 
> Furthermore, I manually edited the Pattern object and set a different
> owner (Yishay Mor), and automatically the first rights object was
> changed to specify that Yishay Mor has edit rights, and not XWikiGuest.
> 
> So, better check how is the owner of a pattern set.
> 

One more thing, is there a reason why Patterns.PatternClassSheet uses
#includeInContext("scripts.DesObjClassSheet") instead of
#includeMacros("scripts.DesObjClassSheet")? This causes the problem with
documents displaying velocity syntax the first time they are loaded, and
the right content after refreshing.

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


Re: [xwiki-users] security concern: XWikiGuest rolling back

2009-02-23 Thread Vincent Massol
Hi,

On Feb 23, 2009, at 11:15 PM, Yishay Mor wrote:

 This has happened a few times on
> http://patternlanguagenetwork.myxwiki.org/,  and I can't explain  
> it.
> I set the access rights to allow view by all, but edit is  
> restricted.
>> I'm
> seeing documents rolled back to older versions by XWikiGuest.  
> Example:
>

>> http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Patterns/tabletopconceptmapping

 On this document the guest has been granted edit rights. Look at  
 the
 rights editing for it, and select Users, and you will see that
 Unregistered Users has set view, comment and edit.
>>
>> I still see edit selected... And as a guest I can indeed edit the
>> document. Just to make sure we're on the same page, I'm looking at
>>
>> http://patternlanguagenetwork.myxwiki.org/xwiki/bin/edit/Patterns/tabletopconceptmapping?editor=rights
>>
>
> This is really puzzling. I don't understand how the guest user has  
> obtained
> edit rights on some objects and not on others. Just to be on the  
> safe side,
> I ran the script below:
>
> #set ($hql = ", BaseObject as obj where obj.name=doc.fullName and
> obj.className='Patterns.PatternClass' and obj.name
> <>'Patterns.PatternClassTemplate'")
> #set ($items= $xwiki.searchDocuments($hql))
> #foreach ($item in $items)
> * $item
>  #set ($itemDoc = $xwiki.getDocument($item))
>  #set ($rights = $itemDoc.getObject("XWiki.XWikiRights", true))
>  #set ($result = $rights.set("levels", "edit"))
>  #set ($result = $rights.set("users", "XWiki.XWikiGuest"))
>  #set ($result = $rights.set("allow", 0))
> #end

I don't think this is correct since you're not saving the  
modifications... They'll be in the cache when but they go out of the  
cache you'll have lost your changes.

See http://code.xwiki.org/xwiki/bin/view/Snippets/SettingRightsSnippet

-Vincent

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


Re: [xwiki-users] security concern: XWikiGuest rolling back

2009-02-23 Thread Yishay Mor
>>> This has happened a few times on
> >>> http://patternlanguagenetwork.myxwiki.org/,  and I can't explain it.
> >>> I set the access rights to allow view by all, but edit is restricted.
> I'm
> >>> seeing documents rolled back to older versions by XWikiGuest. Example:
> >>>
> >>
> http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Patterns/tabletopconceptmapping
> >>
> >> On this document the guest has been granted edit rights. Look at the
> >> rights editing for it, and select Users, and you will see that
> >> Unregistered Users has set view, comment and edit.
>
> I still see edit selected... And as a guest I can indeed edit the
> document. Just to make sure we're on the same page, I'm looking at
>
> http://patternlanguagenetwork.myxwiki.org/xwiki/bin/edit/Patterns/tabletopconceptmapping?editor=rights
>

This is really puzzling. I don't understand how the guest user has obtained
edit rights on some objects and not on others. Just to be on the safe side,
I ran the script below:

#set ($hql = ", BaseObject as obj where obj.name=doc.fullName and
obj.className='Patterns.PatternClass' and obj.name
<>'Patterns.PatternClassTemplate'")
#set ($items= $xwiki.searchDocuments($hql))
#foreach ($item in $items)
* $item
  #set ($itemDoc = $xwiki.getDocument($item))
  #set ($rights = $itemDoc.getObject("XWiki.XWikiRights", true))
  #set ($result = $rights.set("levels", "edit"))
  #set ($result = $rights.set("users", "XWiki.XWikiGuest"))
  #set ($result = $rights.set("allow", 0))
#end


___
 Yishay Mor, Researcher, London Knowledge Lab
  http://www.lkl.ac.uk/people/mor.html
  http://www.google.com/calendar/embed?src=yishaym%40gmail.com
  +44-20-7837 x5737
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Rendering strings in inline mode

2009-02-23 Thread Jean Couteau
Guillaume Lerouge a écrit :
> On Mon, Feb 23, 2009 at 3:13 PM, Jean Couteau  wrote:
>
>   
>> Guillaume Lerouge a écrit :
>> 
>>> Hi,
>>>
>>> On Mon, Feb 23, 2009 at 2:51 PM, Jean Couteau 
>>>   
>> wrote:
>> 
>>>   
 Dear all,

 I am trying to render strings using velocity while i am in inline mode,
 but every time, i got an input form with my value inside.

 How can i get my variable well displayed ?

 Here is my piece of code (with different tries):

 $context.setDisplayMode("view")

 #set($a="${backlogId},${domainId},${topicId},${epicId},${temp}")

 $doc.display($a)

 $a

 Add an actor


 (Note, a is not rendered when using $doc.display($a) and is always
 replaced by :

 >>> name='XWiki.USClass_0_id' type='text'/> instead of '1,0,0,1,2' )

 Thanks in advance for your help

 
>>> If I remember well you can get around this by using $property.getValue()
>>> instead of $doc.display since in inline mode $doc.display is turned into
>>>   
>> an
>> 
>>> input field by default.
>>>
>>>   
>> I tried to get around this using the $context.setDisplayMode("view")
>> (that should put my rendering in view mode when using $doc.display
>> (according to the javadoc), but it displays nothing (quite weird though)
>>
>> I have to use $property.getValue() ? but my variable is not a property
>> or how can I transform it into a property ?
>> 
>
>
> Isn't "XWiki.USClass_0_id" a field in a XWiki object? If it is, then it's a
> property :-)
>   
Indeed, the thing is that i tried to recreate the property using all 
those different id as i did not succeed in displaying it. The thing that 
is weird is that there was no link between $a and the property (they 
just had the same value) and xwiki made a link between them.
> I think you need to do something like:
> #set($a="${backlogId.getValue()},${domainId.getValue()},${topicId.getValue()},${epicId.getValue()},${temp.getValue()}")
>   
That did not work, but I get to make it work using that :

#set($a=$doc.getObject("XWiki.USClass").get("id"))

  Add an actor

The thing that is strange is that I had a variable that was set with the 
value of id in my page (before inline displaying) and i was not able to 
display it after the inline displaying.

Anyway, it works now.

Thanks very much for your help.

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] java.lang.String while upgrading 0.9 to 1.7

2009-02-23 Thread Stefan Gundlach

Hello Everybody!

While trying to upgrade xwkiki from version 0.9.543 via "database copy" as
recommended in 

 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/UpgradeXWiki09Installation

we got lots of warnings in catalina*.log like this:

WARN  rcs.XWikiRCSArchive - isDiff: Archive is inconsistent.
Text and diff field are contradicting. version=1.1

After a while, the result of "http://HOSTNAME:8180/xwiki17/bin/view/Main/";
contains 

com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main
XWiki context
Wrapped Exception: Error number 3201 in 3: Exception while saving document
XWiki.XWikiPreferences
Wrapped Exception: java.lang.String

Full excerpt on this from catalina*.log can be found below. But what does
all this mean? 
Can you please give me a hint? Do you need any other (config) info?

Thanks in advance!
Stefan

LOGFILE:
15:09:11,753  WARN http-8180-Processor24  RequestUtils:createActionForm:175
- No FormBeanConfig found under 'view'
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving
document XWiki.XWikiPreferences
Wrapped Exception: java.lang.String
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:590)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:135)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:128)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1282)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1244)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1239)
at com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:2916)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:748)
at com.xpn.xwiki.XWiki.(XWiki.java:668)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:316)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:387)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
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.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.xpn.xwiki.plugin.webdav.DavFilter.doFilter(DavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

Re: [xwiki-users] Rendering strings in inline mode

2009-02-23 Thread Guillaume Lerouge
On Mon, Feb 23, 2009 at 3:13 PM, Jean Couteau  wrote:

> Guillaume Lerouge a écrit :
> > Hi,
> >
> > On Mon, Feb 23, 2009 at 2:51 PM, Jean Couteau 
> wrote:
> >
> >
> >> Dear all,
> >>
> >> I am trying to render strings using velocity while i am in inline mode,
> >> but every time, i got an input form with my value inside.
> >>
> >> How can i get my variable well displayed ?
> >>
> >> Here is my piece of code (with different tries):
> >>
> >> $context.setDisplayMode("view")
> >>
> >> #set($a="${backlogId},${domainId},${topicId},${epicId},${temp}")
> >>
> >> $doc.display($a)
> >>
> >> $a
> >>
> >> Add an actor
> >>
> >>
> >> (Note, a is not rendered when using $doc.display($a) and is always
> >> replaced by :
> >>
> >>  >> name='XWiki.USClass_0_id' type='text'/> instead of '1,0,0,1,2' )
> >>
> >> Thanks in advance for your help
> >>
> >
> > If I remember well you can get around this by using $property.getValue()
> > instead of $doc.display since in inline mode $doc.display is turned into
> an
> > input field by default.
> >
> I tried to get around this using the $context.setDisplayMode("view")
> (that should put my rendering in view mode when using $doc.display
> (according to the javadoc), but it displays nothing (quite weird though)
>
> I have to use $property.getValue() ? but my variable is not a property
> or how can I transform it into a property ?


Isn't "XWiki.USClass_0_id" a field in a XWiki object? If it is, then it's a
property :-)
I think you need to do something like:
#set($a="${backlogId.getValue()},${domainId.getValue()},${topicId.getValue()},${epicId.getValue()},${temp.getValue()}")
Guillaume

> > I remember doing this in the bulletin board application a while ago, I'd
> > need to check its code to find the exact API call to use.
> >
> I'll have a look into it.
>
> Thanks for your help.
>
>
> --
> 
> 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
>



-- 
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Rendering strings in inline mode

2009-02-23 Thread Jean Couteau
Guillaume Lerouge a écrit :
> Hi,
>
> On Mon, Feb 23, 2009 at 2:51 PM, Jean Couteau  wrote:
>
>   
>> Dear all,
>>
>> I am trying to render strings using velocity while i am in inline mode,
>> but every time, i got an input form with my value inside.
>>
>> How can i get my variable well displayed ?
>>
>> Here is my piece of code (with different tries):
>>
>> $context.setDisplayMode("view")
>>
>> #set($a="${backlogId},${domainId},${topicId},${epicId},${temp}")
>>
>> $doc.display($a)
>>
>> $a
>>
>> Add an actor
>>
>>
>> (Note, a is not rendered when using $doc.display($a) and is always
>> replaced by :
>>
>> > name='XWiki.USClass_0_id' type='text'/> instead of '1,0,0,1,2' )
>>
>> Thanks in advance for your help
>> 
>
> If I remember well you can get around this by using $property.getValue()
> instead of $doc.display since in inline mode $doc.display is turned into an
> input field by default.
>   
I tried to get around this using the $context.setDisplayMode("view") 
(that should put my rendering in view mode when using $doc.display 
(according to the javadoc), but it displays nothing (quite weird though)

I have to use $property.getValue() ? but my variable is not a property 
or how can I transform it into a property ?

> I remember doing this in the bulletin board application a while ago, I'd
> need to check its code to find the exact API call to use.
>   
I'll have a look into it.

Thanks for your help.


-- 

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


Re: [xwiki-users] Rendering strings in inline mode

2009-02-23 Thread Guillaume Lerouge
Hi,

On Mon, Feb 23, 2009 at 2:51 PM, Jean Couteau  wrote:

> Dear all,
>
> I am trying to render strings using velocity while i am in inline mode,
> but every time, i got an input form with my value inside.
>
> How can i get my variable well displayed ?
>
> Here is my piece of code (with different tries):
>
> $context.setDisplayMode("view")
>
> #set($a="${backlogId},${domainId},${topicId},${epicId},${temp}")
>
> $doc.display($a)
>
> $a
>
> Add an actor
>
>
> (Note, a is not rendered when using $doc.display($a) and is always
> replaced by :
>
>  name='XWiki.USClass_0_id' type='text'/> instead of '1,0,0,1,2' )
>
> Thanks in advance for your help

If I remember well you can get around this by using $property.getValue()
instead of $doc.display since in inline mode $doc.display is turned into an
input field by default.
I remember doing this in the bulletin board application a while ago, I'd
need to check its code to find the exact API call to use.
Guillaume


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



-- 
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Rendering strings in inline mode

2009-02-23 Thread Jean Couteau
Dear all,

I am trying to render strings using velocity while i am in inline mode, 
but every time, i got an input form with my value inside.

How can i get my variable well displayed ?

Here is my piece of code (with different tries):

$context.setDisplayMode("view")

#set($a="${backlogId},${domainId},${topicId},${epicId},${temp}")

$doc.display($a)

$a

Add an actor


(Note, a is not rendered when using $doc.display($a) and is always 
replaced by :

 instead of '1,0,0,1,2' )

Thanks in advance for your help

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


Re: [xwiki-users] Translation Volunteers needed

2009-02-23 Thread Guillaume Lerouge
Hi,

On Mon, Feb 23, 2009 at 12:26 PM, Henning Sprang
wrote:

> On Mon, Feb 23, 2009 at 12:02 PM, Guillaume Lerouge 
> wrote:
> >> A XWiki Glossar would be a good thing.
>
> Good idea ! ;)
>
> >> Also some place for discussion of terms would be good.
> >>
> > Well, what we can for now is that you keep a list of terms you're not
> sure
> > ho to translate. Once you have 10 or 20 of them, you post them here on
> the
> > list with your suggestions and we work together to decide on a term. Once
> > this is done you can input them in the transation tool.
> > WDYT?
>
> Would be some start.
>
> Having something in the real translation tool where a wiki page with
> discussions and comments from translaters can be listed and checked
> would be interesting, I think.
>
> And maybe also, in the same place, a link to a place in the wiki in
> the language of choice where the string is used, so it can be seen in
> context. Including the english version for comparison ;)

That would be great but maybe not to expect in the short term. The method I
use to find where strings are located is through Eclipse's search feature.
It's quite effective, but it requires that you have a full XWiki development
environment setup.
Otherwise you may be able to find it by googling using the following query:
' site:svn.xwiki.org "your.translation.string.here" ' (but I'm not sure the
Google index is up-to-date enough as of today). It should return the name of
the page, as in:
http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-applications/trunk/administration/src/main/resources/XWiki/ResetPassword.xml
Where XWiki/ResetPassword.xml is the name of the page where the string is
located. Not optimal, but at least this exists :-)
Hope this helps,
Guillaume


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



-- 
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Translating shortcuts

2009-02-23 Thread Hernández Cuchí , Francisco Ricardo
Hello All,

 

I've been translating a little, and I found that there are shortcuts to be 
translated. I wanted to validate with no change, but they are still in the list 
of empty translations. 

 

Why do you want the shortcuts to be translated?

Why Validate with no change do not work (or maybe I didn't understood the term)?

 

The language is the Spanish one.

 

Regards,

 

Francisco

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


Re: [xwiki-users] Translation Volunteers needed

2009-02-23 Thread Henning Sprang
On Mon, Feb 23, 2009 at 12:02 PM, Guillaume Lerouge  wrote:
>> A XWiki Glossar would be a good thing.

Good idea ! ;)

>> Also some place for discussion of terms would be good.
>>
> Well, what we can for now is that you keep a list of terms you're not sure
> ho to translate. Once you have 10 or 20 of them, you post them here on the
> list with your suggestions and we work together to decide on a term. Once
> this is done you can input them in the transation tool.
> WDYT?

Would be some start.

Having something in the real translation tool where a wiki page with
discussions and comments from translaters can be listed and checked
would be interesting, I think.

And maybe also, in the same place, a link to a place in the wiki in
the language of choice where the string is used, so it can be seen in
context. Including the english version for comparison ;)

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


Re: [xwiki-users] Translation Volunteers needed

2009-02-23 Thread Guillaume Lerouge
Hi,

On Mon, Feb 23, 2009 at 11:51 AM, hel-o  wrote:

>
> A XWiki Glossar would be a good thing.


Indeed, it's quite informal right now.

> It could especially help to create a more consistent terminology for the
> translation.
>
> Also some place for discussion of terms would be good.
>
Well, what we can for now is that you keep a list of terms you're not sure
ho to translate. Once you have 10 or 20 of them, you post them here on the
list with your suggestions and we work together to decide on a term. Once
this is done you can input them in the transation tool.
WDYT?
Guillaume


> hel.
>
>
> Ludovic Dubost-2 wrote:
> >
> >
> > For the volunteers, the workflow is:
> >
> > 1/ Register on http://l10n.xwiki.org
> > 2/ Visit http://l10n.xwiki.org/xwiki/bin/view/XE/XWikiCoreResources
> > 3/ Click "view empty" next to the language you want to work on
> >
> > For german:
> >
> http://l10n.xwiki.org/xwiki/bin/view/XE/XWikiCoreResources?action=viewempty&language=de
> >
> > 4/ Start filling and don't forget to hit save.
> >
> > For now this will help make a lot of progress. Once we are up to date
> > there are some more advanced functions but we don't need them now.
> >
> > Ludovic
> >
> > Ludovic Dubost a écrit :
> >>
> >> Hi,
> >>
> >> Guillaume (Lerouge) has done incredible work to transform all
> >> hardcoded strings in XWiki Enterprise to translations strings.
> >>
> >> We now have 620 translations strings more 
> >>
> >> So we need all the help we can to get these translated before 1.8
> >> final. I think we can achieve the following languages:
> >>
> >> French: 622 translations to do
> >> German: 629 translations to do
> >> Romanian: 1516 translations to do
> >>
> >> French and German were complete before we added the 620 more
> >> translations, and Romanian we HAVE to be able to do it with the number
> >> of romanians in the team !
> >> Guillaume will coordinate the French translation. We need a volunteer
> >> from the Romanian team to coordinate the Ro translation.
> >>
> >> Let me know if there are volunteers to coordinate the translations
> >> effort in Geman or other languages before the final 1.8 release.
> >>
> >> Ludovic
> >>
> >> 
> >>
> >> ___
> >> users mailing list
> >> users@xwiki.org
> >> http://lists.xwiki.org/mailman/listinfo/users
> >>
> >
> >
> > --
> > Ludovic Dubost
> > Blog: http://blog.ludovic.org/
> > XWiki: http://www.xwiki.com
> > Skype: ldubost GTalk: ldubost
> >
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> >
>
>
> -
> Helmut Lehner
> h...@hel.at
>
> --
> View this message in context:
> http://n2.nabble.com/Translation-Volunteers-needed-tp2362141p2371502.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
>



-- 
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Translation Volunteers needed

2009-02-23 Thread hel-o

A XWiki Glossar would be a good thing. 

It could especially help to create a more consistent terminology for the
translation.

Also some place for discussion of terms would be good.

hel.


Ludovic Dubost-2 wrote:
> 
> 
> For the volunteers, the workflow is:
> 
> 1/ Register on http://l10n.xwiki.org
> 2/ Visit http://l10n.xwiki.org/xwiki/bin/view/XE/XWikiCoreResources
> 3/ Click "view empty" next to the language you want to work on
> 
> For german: 
> http://l10n.xwiki.org/xwiki/bin/view/XE/XWikiCoreResources?action=viewempty&language=de
> 
> 4/ Start filling and don't forget to hit save.
> 
> For now this will help make a lot of progress. Once we are up to date 
> there are some more advanced functions but we don't need them now.
> 
> Ludovic
> 
> Ludovic Dubost a écrit :
>>
>> Hi,
>>
>> Guillaume (Lerouge) has done incredible work to transform all 
>> hardcoded strings in XWiki Enterprise to translations strings.
>>
>> We now have 620 translations strings more 
>>
>> So we need all the help we can to get these translated before 1.8 
>> final. I think we can achieve the following languages:
>>
>> French: 622 translations to do
>> German: 629 translations to do
>> Romanian: 1516 translations to do
>>
>> French and German were complete before we added the 620 more 
>> translations, and Romanian we HAVE to be able to do it with the number 
>> of romanians in the team !
>> Guillaume will coordinate the French translation. We need a volunteer 
>> from the Romanian team to coordinate the Ro translation.
>>
>> Let me know if there are volunteers to coordinate the translations 
>> effort in Geman or other languages before the final 1.8 release.
>>
>> Ludovic
>>
>> 
>>
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>   
> 
> 
> -- 
> Ludovic Dubost
> Blog: http://blog.ludovic.org/
> XWiki: http://www.xwiki.com
> Skype: ldubost GTalk: ldubost
> 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
> 


-
Helmut Lehner
h...@hel.at

-- 
View this message in context: 
http://n2.nabble.com/Translation-Volunteers-needed-tp2362141p2371502.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] Error number 4001 in 4

2009-02-23 Thread Jerome Velociter
Hi Sime,

Looks like you have a recursive velocity template include in your skin 
or in a wiki document. Can you check this?

Thanks,
Jerome.

PS: Please create a new thread instead of replying to an existing one 
and changing the subject, because it appears as children of another 
conversation. Thanks!

Sime Suljic wrote:
> Hi!
>   
> Can someone help? My Xwiki http://apleti.normala.hr/xwiki to crashes with
> this message:
>
>
>
> Error number 4001 in 4: Error while parsing velocity page /templates/view.vm
> Wrapped Exception: Failed to evaluate content with id [/templates/view.vm]
>
> Error number 4001 in 4: Error while parsing velocity page /templates/view.vm
> Wrapped Exception: Failed to evaluate content with id [/templates/view.vm]
>
> Error number 4001 in 4: Error while parsing velocity page /templates/view.vm
> Wrapped Exception: Failed to evaluate content with id [/templates/view.vm]
> com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing
> velocity page /templates/view.vm Wrapped Exception: Failed to evaluate
> content with id [/templates/view.vm]
>   at
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.ja
> va:112)
>   at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1596)
>   at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:125)
>   at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
>   at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
>   at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
> sor.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.doGet(ActionServlet.java:414)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>   at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
>   at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebAppl
> icationHandler.java:830)
>   at
> com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFi
> lter.java:287)
>   at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebAppl
> icationHandler.java:821)
>   at
> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFi
> lter.java:112)
>   at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebAppl
> icationHandler.java:821)
>   at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
> er.java:471)
>   at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
>   at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
>   at
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
> .java:633)
>   at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
>   at org.mortbay.http.HttpServer.service(HttpServer.java:954)
>   at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
>   at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
>   at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
>   at
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
>   at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
>   at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
>
>
> Wrapped Exception:
>
> org.apache.velocity.exception.MethodInvocationException: Invocation of
> method 'parseTemplate' in  class com.xpn.xwiki.api.XWiki threw exception
> java.lang.OutOfMemoryError: Java heap space @ /templates/view.vm[1,8]
>   at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:300
> )
>   at
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.ja
> va:203)
>   at
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.jav
> a:294)
>   at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:31
> 8)
>   at
> org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroPro
> xy.java:194)
>   at
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.jav
> a:170)
>   at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
>   at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:31
> 8)
>   at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement
> .java:107)
>   at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:31
> 8)
>   at
> org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java
> :178)
>   at
> org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.jav

Re: [xwiki-users] security concern: XWikiGuest rolling back

2009-02-23 Thread Ajdin Brandic
Just to add to this

>>
>> Yishay Mor wrote:
>>> This has happened a few times on
>>> http://patternlanguagenetwork.myxwiki.org/,  and I can't explain it.
>>> I set the access rights to allow view by all, but edit is 
>>> restricted. I'm seeing documents rolled back to older versions by
XWikiGuest. Example:
>>>
>> http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Patterns/tab
>> letopconceptmapping
>>
>> On this document the guest has been granted edit rights. Look at the 
>> rights editing for it, and select Users, and you will see that 
>> Unregistered Users has set view, comment and edit.

>I still see edit selected... And as a guest I can indeed edit the
document. Just to make 
>sure we're on the same page, I'm looking at
>
http://patternlanguagenetwork.myxwiki.org/xwiki/bin/edit/Patterns/tablet
opconceptmapping?editor=rights

I went to the link Sergiu specified and I can view all groups and users
without being logged in.
Top right still says 
  Log-in 
  Register

Ajdin
 
 


NOTICE

This message and any files transmitted with it is intended for the addressee 
only and may contain information that is confidential or privileged. 
Unauthorised use is strictly prohibited. If you are not the addressee, you 
should not read, copy, disclose or otherwise use this message, except for the 
purpose of delivery to the addressee. 

Any views or opinions expressed within this e-mail are those of the author and 
do not necessarily represent those of Coventry University.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Give a new image with a link

2009-02-23 Thread Hervé Agnoux
Hi,

I should want a special link, in a xwiki page, so that when man clics on it, 
he get a new image (for instance, a clock with the hour of the clic).

I suppose I need groovy. I know how to do an image with java, and I presume 
with groovy, but I don't understand how to embedded that in xwiki. I suppose I 
need to create a special servlet, but how this servlet is created and inserted 
in xwiki by the groovy mecanism ?

Thank you for your help.


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