[xwiki-users] attachments upload from within form editing

2012-03-06 Thread O Voss
Hi,

I need to find a solution for offering a way to the users to upload attachments 
to certain pages directly from the form editing mode. (Instead of having to 
build the page first, save it and attach the file later. Reason: the page is 
basically just a wrapper for the attached document(s), so it is very 
counter-intuitive to have to build the wrapper BEFORE you can upload in this 
case.)

Another way to describe what I need using the FAQ tutorial 
(http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial): Imagine you 
want to allow users to attach screenshots to FAQs directly when defining an 
FAQ. So you probably need to change the document sheet in such a way that in 
form editing mode a file upload selector is shown below the answer and question 
fields (that part is easy simply using HTML) and when saving the selected file 
is uploaded as an attachment to the current page (the tricky part I guess, I 
have no clue how to start). Allowing to upload multiple files at once would be 
nice, but isn't an absolute must.

Is this possible? Any hints are greatly appreciated!

Cheers,

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


Re: [xwiki-users] [myxwiki] new wiki request

2012-03-06 Thread Thomas Mortagne
On Mon, Mar 5, 2012 at 11:38 PM, Andrew Manning tamann...@zoho.com wrote:
 I am a member of a research group at the University of Maryland in the 
 Physics department (iontrap.umd.edu). We currently run our own XWiki server 
 for our lab. We have about 20 users who use the wiki daily from recording 
 experimental logs to writing how-to articles about lab equipment or 
 techniques. We would like to migrate to a wiki hosted by professionals, so 
 that the uptime will be greater and so that we will not have to hassle with 
 the occasional problems associated with running our own server.

As indicated on http://myxwiki.org the farm is actually a community
driven farm often upgraded with cutting edge versions of XWiki.

If you really need professional hosting you should take a look at
http://www.xwiki.org/xwiki/bin/view/Main/Support.


 It would be especially nice if we could import our current XWiki data to the 
 new one. Is that possible using the standard import/export tool? Also, what 
 kind of typical uptimes do you have?

Yep that's possible of course, the limitation is that your are not
going to have programming right so if you are using groovy or some
protected API you will probably have to rewrite some stuff.

 Is it possible that you would erase all of our data without warning, or would 
 be be given a reasonable amount of time to back up our site if it needed to 
 be closed for whatever reason?

The whole farm is backuped every night and no we are not going to
erase any data without warning ;)


 username: tamanning
 server name: iontrap.myxwiki.org

 Thanks,
 Andrew Manning

 ___
 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] attachments upload from within form editing

2012-03-06 Thread Guillaume Lerouge
Hi Olaf,

looks like this is what you're looking for:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Attachment+Selector+Macro

Guillaume

On Tue, Mar 6, 2012 at 9:02 AM, O Voss richyfourtyth...@yahoo.com wrote:

 Hi,

 I need to find a solution for offering a way to the users to upload
 attachments to certain pages directly from the form editing mode. (Instead
 of having to build the page first, save it and attach the file later.
 Reason: the page is basically just a wrapper for the attached document(s),
 so it is very counter-intuitive to have to build the wrapper BEFORE you can
 upload in this case.)

 Another way to describe what I need using the FAQ tutorial (
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial): Imagine
 you want to allow users to attach screenshots to FAQs directly when
 defining an FAQ. So you probably need to change the document sheet in such
 a way that in form editing mode a file upload selector is shown below the
 answer and question fields (that part is easy simply using HTML) and when
 saving the selected file is uploaded as an attachment to the current page
 (the tricky part I guess, I have no clue how to start). Allowing to upload
 multiple files at once would be nice, but isn't an absolute must.

 Is this possible? Any hints are greatly appreciated!

 Cheers,

 Olaf
 ___
 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] Unexpected EOF with Xwiki Eclipse

2012-03-06 Thread Thomas Kratz
HI, I am new to this list, but I couldn't find anything on the lists and
google. I have mostly fresh installed xwiki installation that I tried to
connect with xwiki eclipse. I tried through the apache proxy and direct to
tomcat. In both cases it takes some time and then says

Error connecting to remote XWiki: 'Failed to read servers response:
Unexpected end of file from server'. Please check your settings.

I connect with http://wiki.buchmanager.com/xwiki/xmlrpc/confluence or
http://buchmanager.com:8080/...

Any ideas whats wrong with my setup? I don't see anything in the
tomcat/eclipse logs.

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


Re: [xwiki-users] debian installer

2012-03-06 Thread Guillaume Fenollar
Hi Marius,

Thanks for noticing. Indeed, I didn't finish the work properly.
I'm reviewing the configuration right now.


2012/3/6 Marius Dumitru Florea mariusdumitru.flo...@xwiki.com

 Hi Guillaume,

 I'm afraid you didn't update the links after you moved content in new
 pages. For instance:

 * Upgrade instructions below on the installation section,
 * Installing the Default Wiki XAR on the upgrade section

 and possibly others are broken.

 Thanks,
 Marius

 On Wed, Jan 25, 2012 at 12:17 PM, Guillaume Fenollar
 guillaume.fenol...@xwiki.com wrote:
  Hi,
 
  I'm working on the Administrator Guide. I included the documentation for
  debian package and I reorganized the installation methods, creating a
 page
  for single page for each method.
  http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation
 
  I also move the Upgrade part to the main page of AdminGuide, to keep it
  easy to find.
  http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WebHome
 
  Debian installer documentation is not exhaustive yet, it's more like a
  HowTo. I hope it will be useful nevetheless.
 
  Thanks,
 
  Guillaume Fenollar
 
 
  2012/1/18 Guillaume Fenollar guillaume.fenol...@xwiki.com
 
  Hi,
 
  It is planned, I still have some things to do on this documentation
 before
  the publish it. Moreover, we have still some problems with this package
  (during a reinstallation for example).
  I will notify you here when it'll be done
 
  Have a nice day
 
  Guillaume Fenollar
 
 
  2012/1/17 Guillaume Lerouge guilla...@xwiki.com
 
  Hi Guillaume,
 
  in the end, did you publish the updated documentation? It would be
 cool to
  have this on XWiki.org.
 
  Thanks in advance,
 
  Guillaume
 
  On Fri, Dec 30, 2011 at 12:19 AM, Guillaume Fenollar 
  guillaume.fenol...@xwiki.com wrote:
 
   Hi Volker, and sorry for the delay.
  
   @Vincent : The documentation is in the writting process. I hope I'll
  have
   some time to work on it.
  
   Ok, so to answer the questions, the debian package is installing
 XWiki
   package in a common way, putting the configuration files (+ classes,
  fonts,
   etc...) in /etc/xwiki/, and the other files in /usr/lib/xwiki/.
   If you take for example the xwiki-tomcat-mysql package, it depends on
   (which mean they will be installed):
  
 - tomcat6. You'll find the configuration files in /etc/tomcat6/.
 You
  can
 configure the process to run in /etc/default/tomcat6 file. a
 tomcat6
  user
 will be created.
 - mysql5.x . It will create a xwiki database, granting the
 xwiki
 user to use it. You can configure the credentials of database user
 for
 xwiki in /etc/dbconfig-common/xwiki.com, if you choose to use
  dbconfig
 during the installation.
 - And of course, java.
  
   The script to restart tomcat (and of course xwiki) will be
   /etc/init.d/tomcat6. To change the port, you have to check
   /etc/tomcat6/server.xml. The file is well documented. Finally, to
 check
  the
   xwiki/tomcat logs, the file you need is
 /var/log/tomcat6/catalina.out.
  
   To put a Apache in a reverse proxy mode, you have to do it manually.
  It's
   easy to let him work together. What you have to do is to take a look
 to
  ajp
   module (ProxyPass ajp://yourserver/xwiki). Perhaps we'll add in the
   future an Apache installation package to configure it automatically.
  
   We encourage you to test the packages and the report the errors you
 may
   meet, especially during the tomcat's start, through the logs.
  
   Regards,
  
   Guillaume Fenollar.
   2011/12/21 Vincent Massol vinc...@massol.net
  
And also: Do we have a documentation page somewhere on xwiki.org?
   
Thanks
-Vincent
   
On Dec 20, 2011, at 10:47 PM, Legeinfo wrote:
   
 Thanks for reply!
 What do the package?
 Making a MySQL database?
 What is the name of database?
 How to start Xwiki? ... /etc/init.d/xwiki start
 Where to change the port?
 Is Apache and Tomcat working together? (I have apache2 on my
  servers)
 ...
 Volker
   
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
   
  
  
  
   --
   Guillaume Fenollar
   XWiki SysAdmin
   Tel : +33 (0)1.83.62.65.97
   ___
   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
 
 
 
 
  --
  Guillaume Fenollar
  XWiki SysAdmin
  Tel : +33 (0)1.83.62.65.97
 
 
 
 
  --
  Guillaume Fenollar
  XWiki SysAdmin
  Tel : +33 (0)1.83.62.66.15
  ___
  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] Unexpected EOF with Xwiki Eclipse

2012-03-06 Thread Sergiu Dumitriu

On 03/06/2012 04:52 AM, Thomas Kratz wrote:

HI, I am new to this list, but I couldn't find anything on the lists and
google. I have mostly fresh installed xwiki installation that I tried to
connect with xwiki eclipse. I tried through the apache proxy and direct to
tomcat. In both cases it takes some time and then says

Error connecting to remote XWiki: 'Failed to read servers response:
Unexpected end of file from server'. Please check your settings.

I connect with http://wiki.buchmanager.com/xwiki/xmlrpc/confluence or


Looking at the site, it seems that the /xwiki/ part is not needed, since 
you deployed it as the ROOT application. Try using:


http://wiki.buchmanager.com/xmlrpc/confluence


http://buchmanager.com:8080/...

Any ideas whats wrong with my setup? I don't see anything in the
tomcat/eclipse logs.

Regards,
Thomas



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


Re: [xwiki-users] Unexpected EOF with Xwiki Eclipse

2012-03-06 Thread Thomas Kratz
Hi Sergiu,

thanks! now it works.

Regards Thomas

2012/3/6 Sergiu Dumitriu ser...@xwiki.com

 On 03/06/2012 04:52 AM, Thomas Kratz wrote:

 HI, I am new to this list, but I couldn't find anything on the lists and
 google. I have mostly fresh installed xwiki installation that I tried to
 connect with xwiki eclipse. I tried through the apache proxy and direct to
 tomcat. In both cases it takes some time and then says

 Error connecting to remote XWiki: 'Failed to read servers response:
 Unexpected end of file from server'. Please check your settings.

 I connect with 
 http://wiki.buchmanager.com/**xwiki/xmlrpc/confluencehttp://wiki.buchmanager.com/xwiki/xmlrpc/confluenceor


 Looking at the site, it seems that the /xwiki/ part is not needed, since
 you deployed it as the ROOT application. Try using:

 http://wiki.buchmanager.com/**xmlrpc/confluencehttp://wiki.buchmanager.com/xmlrpc/confluence


  http://buchmanager.com:8080/..**.

 Any ideas whats wrong with my setup? I don't see anything in the
 tomcat/eclipse logs.

 Regards,
 Thomas



 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users

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


[xwiki-users] Next newbie alert: Translations

2012-03-06 Thread Thomas Kratz
Hi, I have XEclipe working now, but it gives me only the german
translations of the docs, and I can't see the english versions.
For e.g. at
http://wiki.buchmanager.com/bin/view/User+Manual/Presentation

I have two versions but I only get the german one.

Any help will be appreciated :)

I hate newbies...

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


[xwiki-users] space explorer and enumeration

2012-03-06 Thread Richard Rafalski
Hi,

i want to use the space explorer extension to show the pages of a
workspace enumerated.

Such as:

1. Begin
1.1 Subchapter

2. Middle
2.1 Another Subchapter
...

Does the space explorer support something like enumeration?

The try to include the numbers into the page name (calling first page
1. Begin, sacond page 1.1 Subchapter, ...) failed because the space
explorer does not show subtrees of pages that contains a dot in their name.

Is this a bug?
Or maybe a feature??

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


Re: [xwiki-users] [myxwiki] new wiki request

2012-03-06 Thread Vincent Massol
Hi Andrew,

See http://myxwiki.org for more details. 

Some extracts:

…
• No support warranty. All support is done on the XWiki user mailing 
list by the community.
• No stability warranty. We install the latest milestone version of 
XWiki Enterprise Manager on this farm and we use it as a stability test for the 
XWiki development team.
• No uptime warranty. It’s possible the farm will be down a few days in 
a row although we’ll do the maximum so that it doesn’t happen.


And:


The farm is open to individuals and non-profit organizations to create wikis 
on. However the target users are mostly technical people who can support 
themselves to some extent. This farm should never be used for critical wikis.


Thanks
-Vincent

On Mar 5, 2012, at 11:38 PM, Andrew Manning wrote:

 I am a member of a research group at the University of Maryland in the 
 Physics department (iontrap.umd.edu). We currently run our own XWiki server 
 for our lab. We have about 20 users who use the wiki daily from recording 
 experimental logs to writing how-to articles about lab equipment or 
 techniques. We would like to migrate to a wiki hosted by professionals, so 
 that the uptime will be greater and so that we will not have to hassle with 
 the occasional problems associated with running our own server. 
 
 It would be especially nice if we could import our current XWiki data to the 
 new one. Is that possible using the standard import/export tool? Also, what 
 kind of typical uptimes do you have? Is it possible that you would erase all 
 of our data without warning, or would be be given a reasonable amount of time 
 to back up our site if it needed to be closed for whatever reason?
 
 username: tamanning
 server name: iontrap.myxwiki.org
 
 Thanks,
 Andrew Manning
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Can't use xwiki through an authenticating http proxy

2012-03-06 Thread Patrice Godard
Hi,
Sorry for the late reply but I just found some time to try-out the latest xwiki 
release, seeing  that the problem I had signaled a few weeks ago had been fixed.

However, it's not working for me.
I now get an HTTP 407 (authentication required) error in the log:


    at java.lang.Thread.run(Thread.java:636) [na:1.6.0_18]
Caused by: java.io.IOException: Invalid answer (407) fo the server when 
requesting
    at 
org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTResource(XWikiExtensionRepository.java:125)
 ~[xwiki-platform-extension-repository-xwiki-handler-3.5.jar:na]

-
Here are my proxy settings:

XWIKI_OPTS=$XWIKI_OPTS -Djetty.port=$JETTY_PORT 
-Dhttp.proxyHost=www-cache.mydomain.fr -Dhttp.proxyPort=3128 
-Dhttp.proxyUserName=myUsername -Dhttp.proxyPassword=myPassword


It seems that xwiki does not consider the proxy username and passwords.

Patrice

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


[xwiki-users] Domain aliases

2012-03-06 Thread Thomas Kratz
HI again,

I started my wiki on a subdomain wiki.buchmanager.com. Now I changed the
domain plus an alias to www.buchmanager.com and
www.book-publishing-software.com. Strange thing is that on the old url
wiki.buchmanager.com is everything fine, but on the new ones the menus dont
work. I don't need mutliple wikis and the instructions I found about the
wiki manager seem to be deprecated.

I tried setting wiki.home and cookiedomains but this doesn't seem to be
related.

I will appreciate any hint!

My current apache conf is this:

VirtualHost *:80
  ServerName www.buchmanager.com
  ServerAlias wiki.buchmanager.com buchmanager.com
www.book-publishing-software.com book-publishing-software.com
ProxyPreserveHost On
ProxyPass  /  http://127.0.0.1:8080/
ProxyPassReverse  /  http://127.0.0.1:8080/
# Local reverse proxy authorization override
# Most unix distribution deny proxy by default (ie
/etc/apache2/mods-enabled/proxy.conf in Ubuntu)
Proxy *
  Order deny,allow
  Allow from all
/Proxy
/VirtualHost


  35,0-1
 Bot
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Domain aliases

2012-03-06 Thread Paul Libbrecht
Thomas,

have you really restarted?
To debug that you need at least the web-inspector/firebug's network tab.
My best tool there is OmniWeb's Error-console where you can see a Set-Cookie 
header that would be erroneous.

hope it helps.

paul

PS: I've never used ProxyPreserveHost (I think it was not there at the time) 
but everything still worked fine.


Le 6 mars 2012 à 17:10, Thomas Kratz a écrit :

 HI again,
 
 I started my wiki on a subdomain wiki.buchmanager.com. Now I changed the
 domain plus an alias to www.buchmanager.com and
 www.book-publishing-software.com. Strange thing is that on the old url
 wiki.buchmanager.com is everything fine, but on the new ones the menus dont
 work. I don't need mutliple wikis and the instructions I found about the
 wiki manager seem to be deprecated.
 
 I tried setting wiki.home and cookiedomains but this doesn't seem to be
 related.
 
 I will appreciate any hint!
 
 My current apache conf is this:
 
 VirtualHost *:80
  ServerName www.buchmanager.com
  ServerAlias wiki.buchmanager.com buchmanager.com
 www.book-publishing-software.com book-publishing-software.com
 ProxyPreserveHost On
 ProxyPass  /  http://127.0.0.1:8080/
 ProxyPassReverse  /  http://127.0.0.1:8080/
 # Local reverse proxy authorization override
 # Most unix distribution deny proxy by default (ie
 /etc/apache2/mods-enabled/proxy.conf in Ubuntu)
 Proxy *
  Order deny,allow
  Allow from all
 /Proxy
 /VirtualHost
 
 
  35,0-1
 Bot
 ___
 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] Fwd: How to set the max unsuccessful login attempts to some numbaer say 4?

2012-03-06 Thread Edo Beutler
Hi mohit

If you posted the whole code the problem is that you do not save your changes.
Changing the value of an object does change only the in memory
representation of that object, but nothing on the database. You need
to save the corresponding document to make changes to the database and
make your changes permanent.

Hope this helps
Edo

On Sat, Feb 25, 2012 at 2:38 PM, mohit gupta motgu...@gmail.com wrote:
 Hi Folks,

 Need help on below query. Thanks in advance.

 -- Forwarded message --
 From: mohit gupta motgu...@gmail.com
 Date: Fri, Feb 24, 2012 at 9:57 AM
 Subject: How to set the max unsuccessful login attempts to some numbaer say
 4?
 To: XWiki Users users@xwiki.org


 I had put this question earlier too but knowing that its not configurable
 in xwiki as of now as OOB feature. So started implementing this feature
 myself with
 some modification in code. I did modifications in checkPassword method of
 XWikiAuthServiceImpl. Basically i want to put the *passwordLockCount *as
 name and *1* as value
 in xwikiintegers table(when user tries any unsuccessful login attempt). For
 this i used the api i.e userObject.setIntValue(passwordLockCount, 1)
 where userObject
 is of type BaseObject. But it does not put the value in xwikiintegers table
 rather it put in cache. Please recommend me the right API the to put this
 number
 property in xwikiintegers table?

 *i also tried *
 NumberProperty passwordLockCount = new IntegerProperty();
 passwordLockCount.setName(passwordLockCount);
 passwordLockCount.setValue(1);
 userObject.addField(passwordLockCount, passwordLockCount);

 But it also does not put the property in database?
 ___
 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] Domain aliases

2012-03-06 Thread Paul Libbrecht

Thomas,

I could register and login.
But your menus are broken because of javascript errors.

URLs such as http://buchmanager.com/resources/js/prototype/prototype.js are 
missing an xwiki on the front.
You can arrange this with another proxypass I think.
But I am not sure how to fix it on the wiki (can it be it's a root web-app 
somewhere?)

paul


Le 6 mars 2012 à 17:55, Thomas Kratz a écrit :

 Hi Paul,
 
 I double checked everything. Have it live now, although it's not really
 usable but maybe you can look at it at buchmanager.com. OmniWeb seems to be
 for the Mac. I checked with firebug and everything seems to be ok except
 for the header.png that must be my configuration fault. But I cannot see
 why this shouldn't work.
 
 I can see two cookies, with the right domain name in them, but still the
 menus are broken.
 If you go to wiki.buchmanager.com it works, but I didn't spot a difference.
 
 Regards Thomas
 
 
 
 2012/3/6 Paul Libbrecht p...@hoplahup.net
 
 Thomas,
 
 have you really restarted?
 To debug that you need at least the web-inspector/firebug's network tab.
 My best tool there is OmniWeb's Error-console where you can see a
 Set-Cookie header that would be erroneous.
 
 hope it helps.
 
 paul
 
 PS: I've never used ProxyPreserveHost (I think it was not there at the
 time) but everything still worked fine.
 
 
 Le 6 mars 2012 à 17:10, Thomas Kratz a écrit :
 
 HI again,
 
 I started my wiki on a subdomain wiki.buchmanager.com. Now I changed the
 domain plus an alias to www.buchmanager.com and
 www.book-publishing-software.com. Strange thing is that on the old url
 wiki.buchmanager.com is everything fine, but on the new ones the menus
 dont
 work. I don't need mutliple wikis and the instructions I found about the
 wiki manager seem to be deprecated.
 
 I tried setting wiki.home and cookiedomains but this doesn't seem to be
 related.
 
 I will appreciate any hint!
 
 My current apache conf is this:
 
 VirtualHost *:80
 ServerName www.buchmanager.com
 ServerAlias wiki.buchmanager.com buchmanager.com
 www.book-publishing-software.com book-publishing-software.com
 ProxyPreserveHost On
 ProxyPass  /  http://127.0.0.1:8080/
 ProxyPassReverse  /  http://127.0.0.1:8080/
 # Local reverse proxy authorization override
 # Most unix distribution deny proxy by default (ie
 /etc/apache2/mods-enabled/proxy.conf in Ubuntu)
 Proxy *
 Order deny,allow
 Allow from all
 /Proxy
 /VirtualHost
 
 
 35,0-1
 Bot
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

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


[xwiki-users] query eating 100% processor

2012-03-06 Thread Ricardo.Julio.Rodriguez.Fernandez
Hi!

Cleaning some spaces on a XWiki installation I've found a query that eats 100% 
CPU and never (at least not for some 20 minutes) through results. I deleted it 
but, please, could you check it to see if it contains an obvious error and, 
even in this case, see if some thing could be done to avoid submitting 
dangerous queries?

#set($query = , BaseObject as obj, StringProperty as prop where doc.fullName = 
obj.name and obj.className='XWiki.XWikiGroups' and doc.fullName  
'XWiki.XWikiGroupTemplate' order by doc.fullName asc)
#set($results=$xwiki.searchDocuments($query))

Running XWiki Enterprise 2.4.30451 on MySQL 5.0.26.

Thanks for your help!

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

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

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

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


Re: [xwiki-users] query eating 100% processor

2012-03-06 Thread Ricardo.Julio.Rodriguez.Fernandez
Some more information on this issue. Another page...

http://hostname/bin/WikiManager/CreateNewWiki?stepbystep=0doc=1

Eats about 80% processor. The other 20% keeps the server running, but of course 
affects perceived performance! I've to kill the process to recover normal 
functioning.

Please, do you find any relationship between both processes? Is there anything 
I could to to recover the possibility of creating new virtual wikis by using 
Wiki Manager?

Thanks for your help! I know that this is an old installation, but I truly need 
to keep alive for some more time. Thanks again for your help!

Ricardo


From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Rodriguez 
Fernandez, Ricardo Julio
Sent: 06 March 2012 19:36
To: users@xwiki.org
Subject: [xwiki-users] query eating 100% processor

Hi!

Cleaning some spaces on a XWiki installation I've found a query that eats 100% 
CPU and never (at least not for some 20 minutes) through results. I deleted it 
but, please, could you check it to see if it contains an obvious error and, 
even in this case, see if some thing could be done to avoid submitting 
dangerous queries?

#set($query = , BaseObject as obj, StringProperty as prop where doc.fullName = 
obj.name and obj.className='XWiki.XWikiGroups' and doc.fullName  
'XWiki.XWikiGroupTemplate' order by doc.fullName asc)
#set($results=$xwiki.searchDocuments($query))

Running XWiki Enterprise 2.4.30451 on MySQL 5.0.26.

Thanks for your help!

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

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

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

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

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

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

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


Re: [xwiki-users] query eating 100% processor

2012-03-06 Thread Sergiu Dumitriu

On 03/06/2012 01:36 PM, ricardo.julio.rodriguez.fernan...@sergas.es wrote:

Hi!

Cleaning some spaces on a XWiki installation I've found a query that eats 100% 
CPU and never (at least not for some 20 minutes) through results. I deleted it 
but, please, could you check it to see if it contains an obvious error and, 
even in this case, see if some thing could be done to avoid submitting 
dangerous queries?

#set($query = , BaseObject as obj, StringProperty as prop where doc.fullName = obj.name 
and obj.className='XWiki.XWikiGroups' and doc.fullName  'XWiki.XWikiGroupTemplate' 
order by doc.fullName asc)


You're adding StringProperty as prop to the query, but you put no 
condition on it, so this just means that it correctly joins documents 
with their associated XWikiGroups objects, but then it multiplies that 
with all the possible properties that there are in the database, not 
just the properties belonging to those objects.



#set($results=$xwiki.searchDocuments($query))

Running XWiki Enterprise 2.4.30451 on MySQL 5.0.26.



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


Re: [xwiki-users] Domain aliases

2012-03-06 Thread Thomas Kratz
Hey Paul,

thanks for pointing that out. I didn't realize what I was actually getting
for those requests. for the moment I reverted the URL shortening measures,
as I think having the action Servlet on /* makes it impossible for tomcat
to serve the static resources properly, at least I don't know how to do
that. I event went away from the ROOT context and threw in a second
redirect, not optimal, but it works at last .
Its now online on buchmanager.com.

Once again, thanks for helping me out.

Thomas

2012/3/6 Paul Libbrecht p...@hoplahup.net


 Thomas,

 I could register and login.
 But your menus are broken because of javascript errors.

 URLs such as http://buchmanager.com/resources/js/prototype/prototype.jsare 
 missing an xwiki on the front.
 You can arrange this with another proxypass I think.
 But I am not sure how to fix it on the wiki (can it be it's a root web-app
 somewhere?)

 paul


 Le 6 mars 2012 à 17:55, Thomas Kratz a écrit :

  Hi Paul,
 
  I double checked everything. Have it live now, although it's not really
  usable but maybe you can look at it at buchmanager.com. OmniWeb seems
 to be
  for the Mac. I checked with firebug and everything seems to be ok except
  for the header.png that must be my configuration fault. But I cannot see
  why this shouldn't work.
 
  I can see two cookies, with the right domain name in them, but still the
  menus are broken.
  If you go to wiki.buchmanager.com it works, but I didn't spot a
 difference.
 
  Regards Thomas
 
 
 
  2012/3/6 Paul Libbrecht p...@hoplahup.net
 
  Thomas,
 
  have you really restarted?
  To debug that you need at least the web-inspector/firebug's network tab.
  My best tool there is OmniWeb's Error-console where you can see a
  Set-Cookie header that would be erroneous.
 
  hope it helps.
 
  paul
 
  PS: I've never used ProxyPreserveHost (I think it was not there at the
  time) but everything still worked fine.
 
 
  Le 6 mars 2012 à 17:10, Thomas Kratz a écrit :
 
  HI again,
 
  I started my wiki on a subdomain wiki.buchmanager.com. Now I changed
 the
  domain plus an alias to www.buchmanager.com and
  www.book-publishing-software.com. Strange thing is that on the old url
  wiki.buchmanager.com is everything fine, but on the new ones the menus
  dont
  work. I don't need mutliple wikis and the instructions I found about
 the
  wiki manager seem to be deprecated.
 
  I tried setting wiki.home and cookiedomains but this doesn't seem to be
  related.
 
  I will appreciate any hint!
 
  My current apache conf is this:
 
  VirtualHost *:80
  ServerName www.buchmanager.com
  ServerAlias wiki.buchmanager.com buchmanager.com
  www.book-publishing-software.com book-publishing-software.com
  ProxyPreserveHost On
  ProxyPass  /  http://127.0.0.1:8080/
  ProxyPassReverse  /  http://127.0.0.1:8080/
  # Local reverse proxy authorization override
  # Most unix distribution deny proxy by default (ie
  /etc/apache2/mods-enabled/proxy.conf in Ubuntu)
  Proxy *
  Order deny,allow
  Allow from all
  /Proxy
  /VirtualHost
 
 
  35,0-1
  Bot
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users

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

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


Re: [xwiki-users] Domain aliases

2012-03-06 Thread Paul Libbrecht
Thomas,

I can't fully advise you on the URL-shortening procedure inside XWiki, I've 
never used it.

But it's quite easy to honour more of such URLs by hand if you use mod_rewrite.

Inside Curriki we have such rules as:

## the home page is at /
RewriteRule ^/$  ${servers:xwiki}/xwiki/bin/view/Main/WebHome [P]



## Some stuff can be served by apache (js, skins)
RewriteCond /apache2/htdocs/xwiki-static/$2 -s
RewriteRule ^/xwiki(/bin/skin)?/(.*)$ /apache2/htdocs/xwiki-static/$2 [L]

But maybe there's a more XWiki way?

paul


Le 6 mars 2012 à 21:11, Thomas Kratz a écrit :

 Hey Paul,
 
 thanks for pointing that out. I didn't realize what I was actually getting
 for those requests. for the moment I reverted the URL shortening measures,
 as I think having the action Servlet on /* makes it impossible for tomcat
 to serve the static resources properly, at least I don't know how to do
 that. I event went away from the ROOT context and threw in a second
 redirect, not optimal, but it works at last .
 Its now online on buchmanager.com.
 
 Once again, thanks for helping me out.
 
 Thomas
 
 2012/3/6 Paul Libbrecht p...@hoplahup.net
 
 
 Thomas,
 
 I could register and login.
 But your menus are broken because of javascript errors.
 
 URLs such as http://buchmanager.com/resources/js/prototype/prototype.jsare 
 missing an xwiki on the front.
 You can arrange this with another proxypass I think.
 But I am not sure how to fix it on the wiki (can it be it's a root web-app
 somewhere?)
 
 paul
 
 
 Le 6 mars 2012 à 17:55, Thomas Kratz a écrit :
 
 Hi Paul,
 
 I double checked everything. Have it live now, although it's not really
 usable but maybe you can look at it at buchmanager.com. OmniWeb seems
 to be
 for the Mac. I checked with firebug and everything seems to be ok except
 for the header.png that must be my configuration fault. But I cannot see
 why this shouldn't work.
 
 I can see two cookies, with the right domain name in them, but still the
 menus are broken.
 If you go to wiki.buchmanager.com it works, but I didn't spot a
 difference.
 
 Regards Thomas
 
 
 
 2012/3/6 Paul Libbrecht p...@hoplahup.net
 
 Thomas,
 
 have you really restarted?
 To debug that you need at least the web-inspector/firebug's network tab.
 My best tool there is OmniWeb's Error-console where you can see a
 Set-Cookie header that would be erroneous.
 
 hope it helps.
 
 paul
 
 PS: I've never used ProxyPreserveHost (I think it was not there at the
 time) but everything still worked fine.
 
 
 Le 6 mars 2012 à 17:10, Thomas Kratz a écrit :
 
 HI again,
 
 I started my wiki on a subdomain wiki.buchmanager.com. Now I changed
 the
 domain plus an alias to www.buchmanager.com and
 www.book-publishing-software.com. Strange thing is that on the old url
 wiki.buchmanager.com is everything fine, but on the new ones the menus
 dont
 work. I don't need mutliple wikis and the instructions I found about
 the
 wiki manager seem to be deprecated.
 
 I tried setting wiki.home and cookiedomains but this doesn't seem to be
 related.
 
 I will appreciate any hint!
 
 My current apache conf is this:
 
 VirtualHost *:80
 ServerName www.buchmanager.com
 ServerAlias wiki.buchmanager.com buchmanager.com
 www.book-publishing-software.com book-publishing-software.com
 ProxyPreserveHost On
 ProxyPass  /  http://127.0.0.1:8080/
 ProxyPassReverse  /  http://127.0.0.1:8080/
 # Local reverse proxy authorization override
 # Most unix distribution deny proxy by default (ie
 /etc/apache2/mods-enabled/proxy.conf in Ubuntu)
 Proxy *
 Order deny,allow
 Allow from all
 /Proxy
 /VirtualHost
 
 
35,0-1
 Bot
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

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


Re: [xwiki-users] query eating 100% processor

2012-03-06 Thread Ricardo.Julio.Rodriguez.Fernandez
I'm afraid this information is not fair: after almost one hour, the first step 
was done. So, the system works but it takes a lot of time. I don't know why (no 
error message in the logs, only a high and long use of the processor).

Thanks for any idea and sorry for the noise.

Best,

Ricardo

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

From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Rodriguez 
Fernandez, Ricardo Julio
Sent: 06 March 2012 19:50
To: users@xwiki.org
Subject: Re: [xwiki-users] query eating 100% processor

Some more information on this issue. Another page...

http://hostname/bin/WikiManager/CreateNewWiki?stepbystep=0doc=1

Eats about 80% processor. The other 20% keeps the server running, but of course 
affects perceived performance! I've to kill the process to recover normal 
functioning.

Please, do you find any relationship between both processes? Is there anything 
I could to to recover the possibility of creating new virtual wikis by using 
Wiki Manager?

Thanks for your help! I know that this is an old installation, but I truly need 
to keep alive for some more time. Thanks again for your help!

Ricardo


From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Rodriguez 
Fernandez, Ricardo Julio
Sent: 06 March 2012 19:36
To: users@xwiki.org
Subject: [xwiki-users] query eating 100% processor

Hi!

Cleaning some spaces on a XWiki installation I've found a query that eats 100% 
CPU and never (at least not for some 20 minutes) through results. I deleted it 
but, please, could you check it to see if it contains an obvious error and, 
even in this case, see if some thing could be done to avoid submitting 
dangerous queries?

#set($query = , BaseObject as obj, StringProperty as prop where doc.fullName = 
obj.name and obj.className='XWiki.XWikiGroups' and doc.fullName  
'XWiki.XWikiGroupTemplate' order by doc.fullName asc)
#set($results=$xwiki.searchDocuments($query))

Running XWiki Enterprise 2.4.30451 on MySQL 5.0.26.

Thanks for your help!

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

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

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

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

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

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

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

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

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

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