[xwiki-users] Set rights for parent page and recursively for all child pages of the page

2011-05-26 Thread Vincenzo Brancato
Hello,

how can I set rights for pages recursively? 
I created a new page and set the rights for this page. When I create a new 
child page, the child page inherits the rights of the parent page. And this is 
great.

But when I change the rights of the parent page, only new pages inherit the new 
rights. All existing child pages keep the rights that were set when I created 
them.

Is there any possbility to set rights recursively? So that changes to the 
rights of a parent page can be applied to all child pages of this page?

Thx

Enzo

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


Re: [xwiki-users] Office importer doesn't work

2011-05-26 Thread jod
Thank you for reply,

"You said you configured XWiki to connect to the OpenOffice server in
"Externally managed" mode right? Maybe the soffice process doesn't have
the right to write in Tomcat's temporary directory. "

 To be sure, i give all rights to the arborescence of Tomcat's temporary
directory with chmod -R 777 because i didn't launched soffice with the root
user. But it don't work with this modification.

"When you import an office document, the office document is converted to
HTML and then the HTML is converted to wiki syntax. The HTML output of
the first conversion is exactly the result you get if you open you
office document with OpenOffice and got to the "File > Preview in Web
Browser" menu. I suggested you to do this to be sure there's nothing
wrong with your office document (i.e. it can be converted to HTML by
OpenOffice) and the only problem is the file system write access. "

I try it and it work fine !

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Office-importer-doesn-t-work-tp6394758p6405986.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] Antw: Re: Linking images in the wysiwyg editor

2011-05-26 Thread Marius Dumitru Florea
On 05/26/2011 08:46 AM, Mark Zimmermann wrote:
> Hi Marius,
>
> here you find the picture in a better place.
>
> http://www.trox.de/service/Dialog.png
>
> What happend:
> - An attachment is already uploaded and linked to a wiki page
> - FYI: Files are stored in DB
> - Open a wiki page
> - Choose WYSIWYG Editor
> - Mark a word, click "Link" in the Menu
> - The Link Dialog opens
> - I browse through all Pages in the XWIKI tree
> - I can not find my files (any file in the whole tree)
>
> Note: If the attachments are on the same page, they are displayed, like
> on the left side, but can not be seen in the tree on the right side

> And if I am logged in as an Administrator, everything works perfectly.

This suggests that you're having a rights issue. I tested both locally 
with a fresh XWiki Enterprise 2.7 and also on a 2.7 XWiki Enterprise 
Manager (which you're using) and I couldn't reproduce your problem. It 
would be great if you can use Firefox browser with its Firebug extension 
to check the response received to the REST request that is supposed to 
retrieve the list of attachments:

* open Firebug and go to the console tab (enable it if it is disabled)
* open the link dialog and browse the tree to a document that you know 
it has attachments.
* expand the "Attachments" node
* the last request logged in the console should look like:

http:///xwiki/rest/wikis//spaces//pages//attachments

Check the XML response. I suppose the list of attachments is empty for a 
regular user and not empty for an admin, right? You can copy the URL and 
try it in a separate browser tab/window, once for a regular user and 
once for an admin. Does it happen for all pages, even for pages created 
by the regular user and which have files attached by the regular user? 
Is there anything logged in the server console when the "Attachments" 
node is expanded?

Hope this helps,
Marius

>
> Thanks,
> Mark
>

>
>
> Von: Marius Dumitru Florea
> An:
> Datum: 26.05.2011 00:48
> Betreff: Re: [xwiki-users] Linking images in the wysiwyg editor
> Hi Mark,
>
> This mailing list forbids mail attachments. Could you upload your image
>
> on a public site? Also, can you detail a bit the steps need to
> reproduce
> the problem? I suppose you are attaching the file to the currently
> edited page, so from the "Current page" tab. Is that right?
>
> Thanks,
> Marius
>
> On 05/25/2011 01:25 PM, Mark Zimmermann wrote:
>> Hello,
>> we are using XWIKI ENTERPRISE 2.7.33656. Attaching of files to a
> wiki
>> page is working properly with the WYSIWYG editor.
>> If I want to link to the attached file another time from the same
>> location or another location i do not see the file in the document
> tree
>> of the link window. No file is displayed here, but if the file is
> stored
>> on the same page it is only displayed in the first tab of this
> dialog.
>> For better understanding, there is an image of these dialogs
> attached.
>> Thanks for any help.
>> Yours, Mark
>>
>> ___
>> TROX GmbH
>> Heinrich-Trox-Platz, 47504 Neukirchen-Vluyn
>> Amtsgericht Kleve, HRB 4997
>>
>> Geschäftsführung:
>> Udo Brinkmann, Lutz Reuter
>>
>> Aufsichtsrat:
>> Dr. Wilhelm Dettmering (Vorsitzender)
>>
>>
>>
>> ___
>> 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
>
> ___
> TROX GmbH
> Heinrich-Trox-Platz, 47504 Neukirchen-Vluyn
> Amtsgericht Kleve, HRB 4997
>
> Geschäftsführung:
> Udo Brinkmann, Lutz Reuter
>
> Aufsichtsrat:
> Dr. Wilhelm Dettmering (Vorsitzender)
> ___
> 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] Set rights for parent page and recursively for all child pages of the page

2011-05-26 Thread Thomas Mortagne
On Thu, May 26, 2011 at 09:19, Vincenzo Brancato  wrote:
> Hello,
>
> how can I set rights for pages recursively?
> I created a new page and set the rights for this page. When I create a new 
> child page, the child page inherits the rights of the parent page. And this 
> is great.

It's something you did, right ? Because that does not exists in
standard XE as far as I know (parent/children right inheritance I
mean).

>
> But when I change the rights of the parent page, only new pages inherit the 
> new rights. All existing child pages keep the rights that were set when I 
> created them.
>
> Is there any possibility to set rights recursively? So that changes to the 
> rights of a parent page can be applied to all child pages of this page?

There is a easy but not so clean way and a pretty hard but cleaner way
on the long run:
* you could write a listener (see
http://extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Local)
which, each time a document right is modified, reproduce it's right
configuration to its children documents. You can even add the support
for new child page in the same listener so that you support when a
document parent is changed.
* the hard way is to modify the right system itself so that it look at
document parent right before looking and document space rights. See
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/user/impl/xwiki/XWikiRightServiceImpl.java

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



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


Re: [xwiki-users] Can't find xwikiclasses page

2011-05-26 Thread Thomas Mortagne
On Wed, May 25, 2011 at 21:35, Felix van Wasen  wrote:
> Hi i cannot find the xwikiclasses page in Kinderchirurgie.myxwiki.org. Do we 
> need further installations?

You probably did not use the right case: I can find the page on
http://kinderchirurgie.myxwiki.org/xwiki/bin/view/XWiki/XWikiClasses

>
> Thanx
>
> Felix
>
> ___
> 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] Blog categories

2011-05-26 Thread Frantisek Kall
I created a new blog in a new space (I have plan to create two more).

Is it possible to have separate categories for every blog?

Thanks

Frantisek

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Blog-categories-tp6406817p6406817.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


[xwiki-users] AUTO : Nicolas Jacquot est absent.

2011-05-26 Thread n-jacquot


Je suis absent(e) entre Jeu 26/05/2011 et Ven 27/05/2011.

Bonjour,

je vous contacterai dès mon retour


Remarque : ceci est une réponse automatique à votre message  "users Digest,
Vol 46, Issue 30" envoyé le 5/26/2011 11:59:14 AM.

C'est la seule notification que vous recevrez pendant l'absence de cette
personne.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Installation problem

2011-05-26 Thread Neil Streeter
Hi all,

I need help with installation...

I'm trying to get xwiki running on:
RHEL 6  x64...
JDK 6 latest...
Mysql 5.1.52...
Tomcat 7.0.14

I've followed the admin guide as near as possible... The deviations I've 
made are..

created my db as 'testxwiki' instead of just xwiki...
modified xwiki.db=testxwiki (this was just a stab in the dark - not sure 
I need to change this)
made appropriate modifications to the jdbc url in hibernate.cfg.xml...

I've varified that I can connect to the database using:
mysql -uxwiki -psome_password testxwiki

and show tables returns the empty set...  xwiki / hibernate is supposed 
to create the initial schema on startup right (less indexes)?

A more complete catalina.out snip is below but essentially I'm getting...

FATAL store.DBCPConnectionProvider- Could not create a DBCP pool. 
There is an error in the hibernate configuration file, please review it.

Unfortunately I have been through this file many many times... and I 
just don't see anything wrong with it...

I also get some interesting results when I stop tomcat after attempting 
to browse the xwiki site...

SEVERE: The web application [/xwiki] registered the JDBC driver 
[com.mysql.jdbc.Driver] but failed to unregister it when the web 
application was stopped. To prevent a memory leak, the JDBC Driver has 
been forcibly unregistered.
May 26, 2011 2:22:37 AM org.apache.catalina.loader.WebappClassLoader 
clearReferencesThreads
SEVERE: The web application [/xwiki] appears to have started a thread 
named [EvictionTimer-0] but has failed to stop it. This is very likely 
to create a memory leak.
May 26, 2011 2:22:37 AM org.apache.catalina.loader.WebappClassLoader 
clearReferencesThreads
SEVERE: The web application [/xwiki] appears to have started a thread 
named [EvictionTimer-1] but has failed to stop it. This is very likely 
to create a memory leak.
May 26, 2011 2:22:37 AM org.apache.catalina.loader.WebappClassLoader 
checkThreadLocalMapForLeaks
SEVERE: The web application [/xwiki] created a ThreadLocal with key of 
type [org.apache.log4j.helpers.ThreadLocalMap] (value 
[org.apache.log4j.helpers.ThreadLocalMap@2a717ef5]) and a value of type 
[java.util.Hashtable] (value [{}]) but failed to remove it when the web 
application was stopped. Threads are going to be renewed over time to 
try and avoid a probable memory leak.
May 26, 2011 2:22:37 AM org.apache.catalina.loader.WebappClassLoader 
checkThreadLocalMapForLeaks
SEVERE: The web application [/xwiki] created a ThreadLocal with key of 
type [org.apache.log4j.helpers.ThreadLocalMap] (value 
[org.apache.log4j.helpers.ThreadLocalMap@2a717ef5]) and a value of type 
[java.util.Hashtable] (value 
[{url=http://neil.nmc.edu:8080/xwiki/bin/view/Main/}]) but failed to 
remove it when the web application was stopped. Threads are going to be 
renewed over time to try and avoid a probable memory leak.
May 26, 2011 2:22:37 AM org.apache.catalina.loader.WebappClassLoader 
checkThreadLocalMapForLeaks
SEVERE: The web application [/xwiki] created a ThreadLocal with key of 
type [org.apache.log4j.helpers.ThreadLocalMap] (value 
[org.apache.log4j.helpers.ThreadLocalMap@2a717ef5]) and a value of type 
[java.util.Hashtable] (value 
[{url=http://neil.nmc.edu:8080/xwiki/bin/view/Main/}]) but failed to 
remove it when the web application was stopped. Threads are going to be 
renewed over time to try and avoid a probable memory leak.




Here's the gory details of everything I did (as well as I can remember)...



Installed the 64bit jdk from oracle..

java -version
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)



Downloaded tomcat and installed it...
tar -zxvf apache-tomcat-7.0.14.tar.gz

Modified the server.xml file and added:
  deployOnStartup="true" to the Host node

Modified catalina.sh and added:
JAVA_HOME=/usr/local/jdk160_25
JAVA_OPTS="-Xmx512m -XX:MaxPermSize=128m"

Removed examples, host-manager, and manager from 'webapps'... I prefer 
not to leave them...



Started tomcat - at that point I could get to the ROOT application and 
browse the tomcat docs...



Installed mysql from RPM packages... Configured a few parameters in 
my.cnf...

default-storage-engine=INNODB
innodb_file_per_table

skip-external-locking
max_connections=200
read_buffer_size=1M
sort_buffer_size=1M

key_buffer_size=128M

max_allowed_packet=32M

innodb_data_file_path = ibdata1:100M:autoextend

innodb_buffer_pool_size=256M
innodb_additional_mem_pool_size=20M

innodb_log_file_size=64M
innodb_log_buffer_size=8M

innodb_flush_log_at_trx_commit=1



Created the database and the user...

create database testxwiki default character set utf8;
grant all privileges on testxwiki.* to xwiki@localhost identified by 
'some_password';
flush privileges;



Extracted the war file to 'xwiki' inside of webapps...

Added mysql-connector-java-5.1.16-bin.jar to   xwiki/WEB-INF/lib



Changed hibernate.cfg.xml by:


Re: [xwiki-users] Antw: Re: Linking images in the wysiwyg editor

2011-05-26 Thread Mark Zimmermann
Hi Marius,
 
thanks for the manual to get nearer to the failure.
 
As a normal user i get this response:
https://intranet.trox.de/xwiki/rest/wikis/intranet/spaces/EB%20Knowledge%20Base/pages/ASIM/attachments?undefined=null&r=628499
401 Unauthorized
As admin:
... 200 OK
 
I suppose the list of attachments is empty for a regular user and not
empty for an admin, right? Yes
All pages are edited and filled by regular users. Admins are only for
administration, they do not work in the pages.
 
Do you have any suggestions?
 
Yours,
Mark


>>> 


Von: Marius Dumitru Florea 
An:
Datum: 26.05.2011 11:59
Betreff: Re: [xwiki-users] Antw: Re:  Linking images in the wysiwyg
editor
On 05/26/2011 08:46 AM, Mark Zimmermann wrote:
> Hi Marius,
>
> here you find the picture in a better place.
>
> http://www.trox.de/service/Dialog.png
>
> What happend:
> - An attachment is already uploaded and linked to a wiki page
> - FYI: Files are stored in DB
> - Open a wiki page
> - Choose WYSIWYG Editor
> - Mark a word, click "Link" in the Menu
> - The Link Dialog opens
> - I browse through all Pages in the XWIKI tree
> - I can not find my files (any file in the whole tree)
>
> Note: If the attachments are on the same page, they are displayed,
like
> on the left side, but can not be seen in the tree on the right side

> And if I am logged in as an Administrator, everything works
perfectly.

This suggests that you're having a rights issue. I tested both locally

with a fresh XWiki Enterprise 2.7 and also on a 2.7 XWiki Enterprise 
Manager (which you're using) and I couldn't reproduce your problem. It

would be great if you can use Firefox browser with its Firebug
extension 
to check the response received to the REST request that is supposed to

retrieve the list of attachments:

* open Firebug and go to the console tab (enable it if it is disabled)
* open the link dialog and browse the tree to a document that you know

it has attachments.
* expand the "Attachments" node
* the last request logged in the console should look like:

http:///xwiki/rest/wikis//spaces//pages//attachments

Check the XML response. I suppose the list of attachments is empty for
a 
regular user and not empty for an admin, right? You can copy the URL
and 
try it in a separate browser tab/window, once for a regular user and 
once for an admin. Does it happen for all pages, even for pages created

by the regular user and which have files attached by the regular user?

Is there anything logged in the server console when the "Attachments" 
node is expanded?

Hope this helps,
Marius

>
> Thanks,
> Mark
>

>
>
> Von: Marius Dumitru Florea
> An:
> Datum: 26.05.2011 00:48
> Betreff: Re: [xwiki-users] Linking images in the wysiwyg editor
> Hi Mark,
>
> This mailing list forbids mail attachments. Could you upload your
image
>
> on a public site? Also, can you detail a bit the steps need to
> reproduce
> the problem? I suppose you are attaching the file to the currently
> edited page, so from the "Current page" tab. Is that right?
>
> Thanks,
> Marius
>
> On 05/25/2011 01:25 PM, Mark Zimmermann wrote:
>> Hello,
>> we are using XWIKI ENTERPRISE 2.7.33656. Attaching of files to a
> wiki
>> page is working properly with the WYSIWYG editor.
>> If I want to link to the attached file another time from the same
>> location or another location i do not see the file in the document
> tree
>> of the link window. No file is displayed here, but if the file is
> stored
>> on the same page it is only displayed in the first tab of this
> dialog.
>> For better understanding, there is an image of these dialogs
> attached.
>> Thanks for any help.
>> Yours, Mark
>>
>> ___
>> TROX GmbH
>> Heinrich-Trox-Platz, 47504 Neukirchen-Vluyn
>> Amtsgericht Kleve, HRB 4997
>>
>> Geschäftsführung:
>> Udo Brinkmann, Lutz Reuter
>>
>> Aufsichtsrat:
>> Dr. Wilhelm Dettmering (Vorsitzender)
>>
>>
>>
>> ___
>> 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
>
> ___
> TROX GmbH
> Heinrich-Trox-Platz, 47504 Neukirchen-Vluyn
> Amtsgericht Kleve, HRB 4997
>
> Geschäftsführung:
> Udo Brinkmann, Lutz Reuter
>
> Aufsichtsrat:
> Dr. Wilhelm Dettmering (Vorsitzender)
> ___
> 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

___
TROX GmbH
Heinrich-Trox-Platz, 47504 Neukirchen-Vluyn
Amtsgericht Kleve, HRB 4997

Geschäftsführung:
Udo Brinkmann, Lutz Reuter

Aufsichtsrat:
Dr. Wilhelm Dettmering (Vorsitzender)
___
users mailing li

[xwiki-users] XE 3.1M1 Wysiwyg stop working

2011-05-26 Thread Ramon Gomes Brandão
Hi All,

I'm facing a big problem since yesterday, and no idea how to fix: my
wysiwyg stop working. The fresh install was ok. Then I've replaced the
original xwe folder with my compiled one from the sources (since I've
translated it for pt_br) on the xwiki war, deployed it on Jboss 4.2.3
and the translated version did not work (the wysiwig didn't load, the
loading gif keeps on the screen when I edit any page). Well, thought it
might be a compilation problem. Then I've returned the original xwe to
my war, deployed again and, unforntunately, it stop working, even with
the version of the original xwe in english. There's no stack trace on
Jboss (no exceptions) and no error messages.

Is it somewhere on the database that I need to reset to return to the
working xwe in english? It's going to production next few days and now
I'm scared I cannot fix it in time. It was working and now, even
returning to the original xwiki package, it doesn't work (I'm using the
same populated database from my first fresh install).

How can I fix it?
-- 

* *

* *

*Ramon Gomes Brandão*

*//*

 

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


Re: [xwiki-users] Set rights for parent page and recursively for all child pages of the page

2011-05-26 Thread promatiker
Hello Thomas,

thank you for your reply.


Thomas Mortagne wrote:
> 
> On Thu, May 26, 2011 at 09:19, Vincenzo Brancato
>  wrote:
> 
>> It's something you did, right ? Because that does not exists in
>> standard XE as far as I know (parent/children right inheritance I
>> mean).
> 

You're right. The new site inherits the rights of the space not of the
parent page. I checked this.



Thomas Mortagne wrote:
> 
> On Thu, May 26, 2011 at 09:19, Vincenzo Brancato
>  wrote:
> 
> 
>> There is a easy but not so clean way and a pretty hard but cleaner way
>> on the long run:
>> * you could write a listener (see
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Local)
>> which, each time a document right is modified, reproduce it's right
>> configuration to its children documents. You can even add the support
>> for new child page in the same listener so that you support when a
>> document parent is changed.
>> * the hard way is to modify the right system itself so that it look at
>> document parent right before looking and document space rights. See
>> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/user/impl/xwiki/XWikiRightServiceImpl.java
> 

Both solutions are not very handy. Is there any possibility to set the new
rights recursively to the child pages via bash directly in the server? I
don't understand why this very important feature is not included in Xwiki
right now. Am I the only person that needs a feature like this? I don't
think every person that needs that feature writes his own script or is even
able to. There has to be an alternative.

-- 
Enzo


--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Set-rights-for-parent-page-and-recursively-for-all-child-pages-of-the-page-tp6405935p6407597.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] Set rights for parent page and recursively for all child pages of the page

2011-05-26 Thread Thomas Mortagne
On Thu, May 26, 2011 at 18:04, promatiker  wrote:
> Hello Thomas,
>
> thank you for your reply.
>
>
> Thomas Mortagne wrote:
>>
>> On Thu, May 26, 2011 at 09:19, Vincenzo Brancato
>>  wrote:
>>
>>> It's something you did, right ? Because that does not exists in
>>> standard XE as far as I know (parent/children right inheritance I
>>> mean).
>>
>
> You're right. The new site inherits the rights of the space not of the
> parent page. I checked this.
>
>
>
> Thomas Mortagne wrote:
>>
>> On Thu, May 26, 2011 at 09:19, Vincenzo Brancato
>>  wrote:
>>
>>
>>> There is a easy but not so clean way and a pretty hard but cleaner way
>>> on the long run:
>>> * you could write a listener (see
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Observation+Module+Local)
>>> which, each time a document right is modified, reproduce it's right
>>> configuration to its children documents. You can even add the support
>>> for new child page in the same listener so that you support when a
>>> document parent is changed.
>>> * the hard way is to modify the right system itself so that it look at
>>> document parent right before looking and document space rights. See
>>> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/user/impl/xwiki/XWikiRightServiceImpl.java
>>
>
> Both solutions are not very handy. Is there any possibility to set the new

The first one is very easy to do but for a developer yes. Also it have
the advantage other a simple script that it will take care of what you
need all the time automatically. You would have to execute your script
all the time.

> rights recursively to the child pages via bash directly in the server? I
> don't understand why this very important feature is not included in Xwiki
> right now. Am I the only person that needs a feature like this? I don't
> think every person that needs that feature writes his own script or is even
> able to. There has to be an alternative.

No there is nothing existing in standard to do that. It's actually not
really how we see parent document I guess. Setting right on space is
usually enough but I can see how this can be useful for you. Maybe you
can find something on http://extensions.xwiki.org

>
> --
> Enzo
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Set-rights-for-parent-page-and-recursively-for-all-child-pages-of-the-page-tp6405935p6407597.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


Re: [xwiki-users] XE 3.1M1 Wysiwyg stop working

2011-05-26 Thread Ramon Gomes Brandão
Something new:

It stop working only on Firefox (3.6 and 4) and Chrome (latest). On IE,
it loads without problem.

Is it a style problem?

* *

* *

*Ramon Gomes Brandão*


Em 26/5/2011 12:24, Ramon Gomes Brandão escreveu:
> Hi All,
>
> I'm facing a big problem since yesterday, and no idea how to fix: my
> wysiwyg stop working. The fresh install was ok. Then I've replaced the
> original xwe folder with my compiled one from the sources (since I've
> translated it for pt_br) on the xwiki war, deployed it on Jboss 4.2.3
> and the translated version did not work (the wysiwig didn't load, the
> loading gif keeps on the screen when I edit any page). Well, thought it
> might be a compilation problem. Then I've returned the original xwe to
> my war, deployed again and, unforntunately, it stop working, even with
> the version of the original xwe in english. There's no stack trace on
> Jboss (no exceptions) and no error messages.
>
> Is it somewhere on the database that I need to reset to return to the
> working xwe in english? It's going to production next few days and now
> I'm scared I cannot fix it in time. It was working and now, even
> returning to the original xwiki package, it doesn't work (I'm using the
> same populated database from my first fresh install).
>
> How can I fix it?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XE 3.1M1 Wysiwyg stop working

2011-05-26 Thread Sergiu Dumitriu
On 05/26/2011 05:24 PM, Ramon Gomes Brandão wrote:
> Hi All,
>
> I'm facing a big problem since yesterday, and no idea how to fix: my
> wysiwyg stop working. The fresh install was ok. Then I've replaced the
> original xwe folder with my compiled one from the sources (since I've
> translated it for pt_br) on the xwiki war, deployed it on Jboss 4.2.3
> and the translated version did not work (the wysiwig didn't load, the
> loading gif keeps on the screen when I edit any page). Well, thought it
> might be a compilation problem. Then I've returned the original xwe to
> my war, deployed again and, unforntunately, it stop working, even with
> the version of the original xwe in english. There's no stack trace on
> Jboss (no exceptions) and no error messages.
>
> Is it somewhere on the database that I need to reset to return to the
> working xwe in english? It's going to production next few days and now
> I'm scared I cannot fix it in time. It was working and now, even
> returning to the original xwiki package, it doesn't work (I'm using the
> same populated database from my first fresh install).
>
> How can I fix it?

Did you try to clear the cache of the browser?

Also, when you say "replaced", you actually removed the old version and 
installed the new one, right? Merging a new version on top of an older 
one will not replace all of the old files, since they have different 
names, so you could end up with incompatible files coming from both 
versions.

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


Re: [xwiki-users] Blog categories

2011-05-26 Thread Sergiu Dumitriu
On 05/26/2011 02:31 PM, Frantisek Kall wrote:
> I created a new blog in a new space (I have plan to create two more).
>
> Is it possible to have separate categories for every blog?
>
> Thanks
>
> Frantisek

It's not implemented yet, but it's something we want in the future.

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


Re: [xwiki-users] Antw: Re: Linking images in the wysiwyg editor

2011-05-26 Thread Sergiu Dumitriu
On 05/26/2011 04:26 PM, Mark Zimmermann wrote:
> Hi Marius,
>
> thanks for the manual to get nearer to the failure.
>
> As a normal user i get this response:
> https://intranet.trox.de/xwiki/rest/wikis/intranet/spaces/EB%20Knowledge%20Base/pages/ASIM/attachments?undefined=null&r=628499
> 401 Unauthorized
> As admin:
> ... 200 OK

This means that the REST requests are not properly authenticated. Are 
you using a custom authenticator or rights manager, or are you on a 
default XE?

Can you try going up the hierarchy of that URL, removing one by one the 
pieces at the end, like:

https://intranet.trox.de/xwiki/rest/wikis/intranet/spaces/EB%20Knowledge%20Base/pages/ASIM/
https://intranet.trox.de/xwiki/rest/wikis/intranet/spaces/EB%20Knowledge%20Base/pages/
https://intranet.trox.de/xwiki/rest/wikis/intranet/spaces/EB%20Knowledge%20Base/
https://intranet.trox.de/xwiki/rest/wikis/intranet/spaces/
https://intranet.trox.de/xwiki/rest/wikis/intranet/
https://intranet.trox.de/xwiki/rest/wikis/

Do they all return a 401 response?

> I suppose the list of attachments is empty for a regular user and not
> empty for an admin, right? Yes
> All pages are edited and filled by regular users. Admins are only for
> administration, they do not work in the pages.
>
> Do you have any suggestions?
>
> Yours,
> Mark
>
>

>
>
> Von: Marius Dumitru Florea
> An:
> Datum: 26.05.2011 11:59
> Betreff: Re: [xwiki-users] Antw: Re:  Linking images in the wysiwyg
> editor
> On 05/26/2011 08:46 AM, Mark Zimmermann wrote:
>> Hi Marius,
>>
>> here you find the picture in a better place.
>>
>> http://www.trox.de/service/Dialog.png
>>
>> What happend:
>> - An attachment is already uploaded and linked to a wiki page
>> - FYI: Files are stored in DB
>> - Open a wiki page
>> - Choose WYSIWYG Editor
>> - Mark a word, click "Link" in the Menu
>> - The Link Dialog opens
>> - I browse through all Pages in the XWIKI tree
>> - I can not find my files (any file in the whole tree)
>>
>> Note: If the attachments are on the same page, they are displayed,
> like
>> on the left side, but can not be seen in the tree on the right side
>
>> And if I am logged in as an Administrator, everything works
> perfectly.
>
> This suggests that you're having a rights issue. I tested both locally
>
> with a fresh XWiki Enterprise 2.7 and also on a 2.7 XWiki Enterprise
> Manager (which you're using) and I couldn't reproduce your problem. It
>
> would be great if you can use Firefox browser with its Firebug
> extension
> to check the response received to the REST request that is supposed to
>
> retrieve the list of attachments:
>
> * open Firebug and go to the console tab (enable it if it is disabled)
> * open the link dialog and browse the tree to a document that you know
>
> it has attachments.
> * expand the "Attachments" node
> * the last request logged in the console should look like:
>
> http:///xwiki/rest/wikis//spaces//pages//attachments
>
> Check the XML response. I suppose the list of attachments is empty for
> a
> regular user and not empty for an admin, right? You can copy the URL
> and
> try it in a separate browser tab/window, once for a regular user and
> once for an admin. Does it happen for all pages, even for pages created
>
> by the regular user and which have files attached by the regular user?
>
> Is there anything logged in the server console when the "Attachments"
> node is expanded?
>
> Hope this helps,
> Marius
>
>>
>> Thanks,
>> Mark
>>
>
>>
>>
>> Von: Marius Dumitru Florea
>> An:
>> Datum: 26.05.2011 00:48
>> Betreff: Re: [xwiki-users] Linking images in the wysiwyg editor
>> Hi Mark,
>>
>> This mailing list forbids mail attachments. Could you upload your
> image
>>
>> on a public site? Also, can you detail a bit the steps need to
>> reproduce
>> the problem? I suppose you are attaching the file to the currently
>> edited page, so from the "Current page" tab. Is that right?
>>
>> Thanks,
>> Marius
>>
>> On 05/25/2011 01:25 PM, Mark Zimmermann wrote:
>>> Hello,
>>> we are using XWIKI ENTERPRISE 2.7.33656. Attaching of files to a
>> wiki
>>> page is working properly with the WYSIWYG editor.
>>> If I want to link to the attached file another time from the same
>>> location or another location i do not see the file in the document
>> tree
>>> of the link window. No file is displayed here, but if the file is
>> stored
>>> on the same page it is only displayed in the first tab of this
>> dialog.
>>> For better understanding, there is an image of these dialogs
>> attached.
>>> Thanks for any help.
>>> Yours, Mark
>>>


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


[xwiki-users] Feedback to the Xwiki concept.

2011-05-26 Thread volker
I want to give feedback to the Xwiki concept.

As a radiologist I am searching for a software that do three simple
tasks:
 1. Storing anonymous radiological images for teaching purpose. 
 2. Connect facts, notes,articles (text, PDF, PTT and JPG to this
images. 
 3. Using a system to retrieve the information.



Why? I often know that I have seen the phenomena/disease before. But I
do not remember where I found facts to this phenomena/disease. So why
searching for the same disease a second (10th) time?
Se: http://dx.doi.org/10.1594/ecr2011/C-2126

Xwiki has a REST interface. I designed a universal image import
macro(with autohotkey.net) that grab an image, open a tiny input
interface for tags and drop the image and tags the Xwikiserver.

Xwiki handle the image workflow quit well. Storing articles (PDF) to
this image is working. Tagging and hierarchical connection is working.
Lucene is doing the search job.


So what is not working?


STARTING WITH XWIKI 
I am not a experienced programmer nor a database freak. Working before
with twiki.org and mediawiki.net on PHP. Never working with Java server
before.

So I started from a USB device with the Xwiki stand alone server on
Windows XP. After some weeks I realized that IT IS ONLY FOR TESTING!
(Yes it is informed on the page).


MIGRATING TO MYSQL
Using “MoWeS Portable” freeware for Apache, MySQL, phpMyAdmin.

Export from “testing” and import to MySQL is not working for me because
of large database and umlauts in page name and attachments. The
ImportLargeWiki script is working after manual converting all umlauts
and question marks from page name. Se next section.


UMLAUTS
I am working in Norway with not updated Windows XP and Swedish code
pages. Developing at home on a German Ubuntu: In this setting it is not
possible to generate a page with page name, page title and attachment
name including German or Norwegian umlauts. 

 1. The page name must not include umlauts or special characters.
 2. Page title is safe with umlauts or special characters.
 3. Attachment name must not include umlauts or special characters .

It is not optimal, but I can (now after intensive testing) live with it.
I use a time stamp for file name and for attachment name.


IMAGE WORKFLOW
My automated import workflow is quit nice, so I used it many times. The
upload and search for image dialogue is using the page title and is
working god. 
I still miss the possibility to make a image annotation. (like in
Wikipedia) and the link to full size image. 
Why not have a thumbnail of the image in search result page and
AllAttachment page?

But the images in the database are blowing up the size of the database.
Performance is going down, handling import and export is getting time
consuming.


ATTACHEMENT WORFLOW
Missing a search for “foo bar “ attachment in other pages/spaces. 

LUCENE SEARCH
My search results are giving 10jpgs first and then the parent page. (It
is a known bug).
Id like to see fragments of the document on the result page.
Highlighting the search text is nice. Is it a Xwiki issue or is it easy
to realise a show text on the result page?

Show me the images as thumbnails and PDF/ppts as icons.
How to change the Analyser? Is there a Norwegian text analyser for
lucene? (I know it is not a genuine Xwiki issue, but helps to make Xwiki
more efficient)


EXPORT PDF /PRINT
Tables are not printed with border. The image positioning (right-left)
seems to get broken in PDFs

RELAUNCH
Now with Xwiki 3-1.2. On the Norwegian XP with Swedish code page.
 1. Plain Xwiki installation with FILE system
 2. MySQL via MOWES. Just start MyPhpAdmin to add xwiki database
 3. No Login on plain XWIKI!!!
 4. Plain 3-1.2 XAR installation.
 5. Install script LargeWikiImport from Xwiki.org
 6. Export of XAR from the old system with ExportLargeWiki by
spaces.
 7. Import with LargeWikiImport. USING “do not overwrite” option
 8. Give time to the system and lucene search.
 9. One problem. All the old pages are “hidden” (browse tables with
MyPhpAdmin)
 1. Probably because used “backup”- option on import. (Is
this right? Correct me if wrong. AND PUT SOME INFO IN
THE SCRIPT)
 2. In MyPhpAdmin update from hidden=1 to hidden=0 for all
pages

And now: A fast system with newest software version, working from a USB
device on Windows and Linux.


But there is a maximum file per directory bounder on Windows systems.

FAT16- 512
FAT32- 65,534 files or folders per folder
NTFS- 4,294,967,295
Is this correct?

MISSING
I want to include pages with sections to make a book. The hiracical
section including is not working well. 

Lucene: The search syntax shoot be available inside the wiki.

Why is the maximum upload parameter so low? Put it up to 1GB. And make a
link to the edit page. Not “se in forum and go back to the Wiki”. It is
confusing.

How to migrate users? 

Why not 

Re: [xwiki-users] Debugging XWiki on Eclipse

2011-05-26 Thread Baratóvsk
Hello Thomas,

I had already checked the README.txt.
It took some time until i figured out what a "shared resource" is, but i
eventually saw the linked resources with a missing path variable...

For anyone who didn't see it, you can create the XWIKIPLATFORM path variable
by right-clicking any folder with a little red exclamation mark > Properties
> Edit... (in front of Location) > Variable... > New.

The CHKJ3000E was something with my workspace.
I created a new one, imported the project, validated it, and the error was
gone.

Thanks,
Fernando

On Wed, May 25, 2011 at 4:51 AM, Thomas Mortagne
wrote:

> On Wed, May 25, 2011 at 03:37, Baratóvsk  wrote:
> > Hi there,
> >
> > I'm trying to debug XWiki Enterprise on Eclipse, using WTP and Tomcat 6.
> >
> > I've managed to fork and clone the sources from GitHub.
> > I can build and install them to my local Maven repository without a
> problem.
> >
> > Now i'm trying to debug it on Eclipse, following this guide:
> > http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse
> >
> > I imported the xwiki-debug-eclipse as a Java Project.
> > There is a validation error:
> >
> >> CHKJ3000E: WAR Validation Failed:
> >>
> org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException:
> >> WEB-INF/web.xml
> >>
> >
> > I did not add any XWiki project to the Deployment Assembly.
> > Do i need to add any core project before i can deploy it to the server?
> Or
> > do i have to add all of them?
>
> Did you "look at the README file instructions" ?
>

Yes, but i couldn't "create a XWIKIPLATFORM shared resource".

I see it being used as a variable in the .project's linkedResources, but
couldn't figure out where to set it.


>
> > PS: Tried posting this to the devs list but was denied. Is this the right
> > place?
>
> It's ok here but there is not special right on dev mailing list so I
> don't see why it did not work for you.
>
> >
> > Thanks in advance,
> > Fernando
> > ___
> > 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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Debugging XWiki on Eclipse

2011-05-26 Thread Baratóvsk
One last question...

When i startet the application i got a ClassNotFoundException for
org.xwiki.container.servlet.XWikiServletContextListener.
I imported the corresponding maven project and added it to the Deployment
Assembly.
Then, another class was missing...

Do i need to import all the projects and link them? Or should they be
handled by maven?

Thanks again

On Thu, May 26, 2011 at 10:37 PM, Baratóvsk  wrote:

> Hello Thomas,
>
> I had already checked the README.txt.
> It took some time until i figured out what a "shared resource" is, but i
> eventually saw the linked resources with a missing path variable...
>
> For anyone who didn't see it, you can create the XWIKIPLATFORM path
> variable by right-clicking any folder with a little red exclamation mark >
> Properties > Edit... (in front of Location) > Variable... > New.
>
> The CHKJ3000E was something with my workspace.
> I created a new one, imported the project, validated it, and the error was
> gone.
>
> Thanks,
> Fernando
>
> On Wed, May 25, 2011 at 4:51 AM, Thomas Mortagne <
> thomas.morta...@xwiki.com> wrote:
>
>> On Wed, May 25, 2011 at 03:37, Baratóvsk  wrote:
>> > Hi there,
>> >
>> > I'm trying to debug XWiki Enterprise on Eclipse, using WTP and Tomcat 6.
>> >
>> > I've managed to fork and clone the sources from GitHub.
>> > I can build and install them to my local Maven repository without a
>> problem.
>> >
>> > Now i'm trying to debug it on Eclipse, following this guide:
>> > http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse
>> >
>> > I imported the xwiki-debug-eclipse as a Java Project.
>> > There is a validation error:
>> >
>> >> CHKJ3000E: WAR Validation Failed:
>> >>
>> org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException:
>> >> WEB-INF/web.xml
>> >>
>> >
>> > I did not add any XWiki project to the Deployment Assembly.
>> > Do i need to add any core project before i can deploy it to the server?
>> Or
>> > do i have to add all of them?
>>
>> Did you "look at the README file instructions" ?
>>
>
> Yes, but i couldn't "create a XWIKIPLATFORM shared resource".
>
> I see it being used as a variable in the .project's linkedResources, but
> couldn't figure out where to set it.
>
>
>
> >
>> > PS: Tried posting this to the devs list but was denied. Is this the
>> right
>> > place?
>>
>> It's ok here but there is not special right on dev mailing list so I
>> don't see why it did not work for you.
>>
>> >
>> > Thanks in advance,
>> > Fernando
>> > ___
>> > 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
>>
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] How can I capture an exception that is going to standard out

2011-05-26 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Ok, I have an exception "java.sql.SQLException:
org.apache.commons.dbcp.PoolablePreparedStatement..." that is making it to
Tomcat's standard out log (tomcat5-stdout.2011-05-26.log).  I've tried
everything I can think of in the log4j.properties file to get this exception
to either not show up at all or log to a different file.  This exception does
not have any formatting like is specified in the log4j.properties file.  So I
don't think it's being logged, so much as just finally falling through and
going to stdout.

I've spent all dang day trying to find a way to keep this exception from
filling my logs, or to figure out why the darn thing is happening in the
first place.  I've put in a ticket for the exception, but it still hasn't
even been picked up yet.  I've emailed this list, but no one was able to
help.

So I just want to log this exception somewhere else so it doesn't complicate
my main log file.  Can someone explain how to do this?  I fancy myself a good
programmer, but of all things this is stumping me.

Thanks,

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