Re: [xwiki-users] Run Macro inside velocity

2015-01-12 Thread Marius Dumitru Florea
On Fri, Jan 9, 2015 at 10:21 AM, Thomas Mortagne thomas.morta...@xwiki.com wrote: On Thu, Jan 8, 2015 at 9:35 PM, Matthias Wegner mic.mat.weg...@web.de wrote: Hi All, i just uploaded a new extension to http://extensions.xwiki.org/xwiki/bin/view/Extension/TaskMacro. I want to enable in

Re: [xwiki-users] prevent page save

2015-01-12 Thread Clemens Klein-Robbenhaar
On 01/08/2015 04:52 PM, Jason Clemons wrote: Hello all, I've implemented some client side page validation using JavaScript which works well, but I want to implement some simple checks on server side also. I know how to evaluate the values in my UI using velocity after the page is

Re: [xwiki-users] Run Macro inside velocity

2015-01-12 Thread Thomas Mortagne
Then I don't really understand the question. This code does not work ? You want to know how to do the same thing in Java ? You can access the current XWikiContext by injecting in your macro component and then you have pretty much the same API than in the script oriented one, something like

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

2015-01-12 Thread Thomas Mortagne
The description is not helping much knowing what this is about, myxwiki.org is dedicated to non-profit organizations and individuals. On Sun, Jan 11, 2015 at 4:15 AM, drew drew.duckwo...@gmail.com wrote: subject: [myxwiki] new wiki request description: replace XWiki Cloud account owner name:

Re: [xwiki-users] Can't make big uploads?

2015-01-12 Thread Thomas Mortagne
When saving an attachment XWikiAttachment.updateContentArchive produce a base 64 String of the attachment (so a lot bigger than the attachment size) before copy it again as String[] (so again double the size in memory) and then sending it to the database (which is not quite the streamed thing you

Re: [xwiki-users] Can't make big uploads?

2015-01-12 Thread Paul Libbrecht
Thomas, I believe I am using the filesystem attachment. At least that's when I thought when using the following configuration: # enable attachment filesystem storage xwiki.store.attachment.hint=file xwiki.store.attachment.versioning.hint=file

Re: [xwiki-users] Can't make big uploads?

2015-01-12 Thread Thomas Mortagne
Well that stack trace don't look like filesystem attachment storage stack trace. Attachment archives are handled by ListAttachmentArchive so we should have seen a ListAttachmentArchive#updateArchive call instead of the XWikiAttachment.updateContentArchive call. I agree that your configuration

Re: [xwiki-users] Can't make big uploads?

2015-01-12 Thread Caleb James DeLisle
The error makes it look like FSAttach is disabled. Check for files existing in the Permanent Storage directory in the server's filesystem. Thanks, Caleb On 01/12/2015 10:05 AM, Paul Libbrecht wrote: Thomas, I believe I am using the filesystem attachment. At least that's when I thought