Hi,
Just to let you know that for the next 20 minutes, it's possible that
you'll find some problem saving tasks in jira, or wiki pages on our
free wikis.
Thanks
-Vincent
Hi,
I created a new widget displaying some statistical data via the Panel
Wizard. With the 'admin' logins, that widget
is always visible. However, when i logged in with non-admin username ( with
View right granted), the newly created
widget is no longer visible.
Apparently, there are 2 most likely causes:
-The widget contains a Groovy/Velocity snippet that requires Programming
right to see
- The non-admin username does not enough rights to see the widget
Anyone could help me?
Hi devs,
I'm finishing the generic script macro (based on jsr 223) and the
groovy macro based on it.
It's working pretty well but I have a last issue: what do we do about security ?
I can't commit as it is because, like the "old" groovy macros, you can
do almost everything so we have to protected the script macros from
"simple" users.
Now how do we do that ?
1) The quicker is to use the programming right with some bridge like
the old groovy macro but it would be better to get rid of this special
right in the new architecture.
2) we could also use the JAVA security policy to run the scripts in a
"sandbox" but I think it means that the XWiki platform called by a
scripts is also running in the same limited sandbox (?).
3) groovy has it's own support of JAVA security policy (see
http://groovy.codehaus.org/Security) which give us the best control on
it but it means it's only groovy
2) and 3) means also for us to define the exhaustive list of allowed
or forbidden JVM api.
I'm -1 for 1), I'm not sure for the details of 2) and I would prefer
to be as generic as possible so i don't like 3) very much.
I did not looked deeply on 2) and 3) yet, it's just a first mail to
know if someone already played with theses concepts in JAVA.
So WDYT ? Any other ideas ?
--
Thomas Mortagne
On Sun, Nov 16, 2008 at 3:56 AM, SVN sdumitriu
<platform-notifications(a)xwiki.org> wrote:
> Author: sdumitriu
> @@ -376,9 +372,10 @@
> * @return the given text rendered in the context of this document
> * @deprecated since 1.6M1 use {@link #getRenderedContent(String, String)}
> */
> + @Deprecated
> public String getRenderedContent(String text) throws XWikiException
> {
> - return doc.getRenderedContent(text, getXWikiContext());
> + return this.doc.getRenderedContent(text, getXWikiContext());
> }
We currently have 6 pages using this method in XE wiki :
http://hudson.xwiki.org/job/xwiki-product-enterprise-test-trunk/com.xpn.xwi…
WWYT about un-deprecate this method and make it return
getRenderedContent(text, getSyntaxId()); ? Seems logical to me since
this is what we would do from velocity.
Hi,
Just to let you know that I have started implementing error handling
in the new rendering. Right now my idea is to wrap macro errors (macro
not found, macro execution error) in an ErrorBlock so that renderers
can decide to display them as they want.
Something like the following (note: I think I need to add another <!--
errordescription:(description)--> comment for putting error
description (like the staktrace) in addition to the short error message.
.#-----------------------------------------------------
.input|xwiki/2.0
.# Verify behavior when macro doesn't exist
.#-----------------------------------------------------
Unknown {{unknown/}} macro
.#-----------------------------------------------------
.expect|event
.#-----------------------------------------------------
beginDocument
beginParagraph
onWord [Unknown]
onSpace
beginError: [Unknown macro: unknown]
onMacroInline [unknown] [] []
endError: [Unknown macro: unknown]
onSpace
onWord [macro]
endParagraph
endDocument
.#-----------------------------------------------------
.expect|xhtml
.#-----------------------------------------------------
<p>Unknown <!--starterror:Unknown macro: unknown--><!--
startmacro:unknown|-||-|--><!--stopmacro--><!--stoperror--> macro</p>
.#-----------------------------------------------------
.expect|xwiki
.#-----------------------------------------------------
Unknown {{unknown/}} macro
.#-----------------------------------------------------
.input|xhtml/1.0
.#-----------------------------------------------------
<html><p>Unknown <!--starterror:Unknown macro: unknown--><!--
startmacro:unknown|-||-|--><!--stopmacro--><!--stoperror--> macro</p></
html>
I still haven't decided if MacroTransformation should still raise
exceptions or not. I'm also investigating how to handle other
rendering errors but my idea is also to wrap them in error blocks.
Let me know what you think and respond quickly if you don't agree with
this since I'm progressing fast on it.
Thanks
-Vincent
Hi,
We need to decide how we display macro that do not generate any
content in the WYSIWYG editor so that the user can edit them or delete
them for example.
We can have a visual placeholder that would be displayed whether the
macro content is empty or not, just before the macro or just above the
macro if we have enough vertical space. Something with "Macro" printed
inside and the macro name as the tooltip.
Clicking on it could select the macro block.
WDYT?
In any case I'm raising this so that design proposal for Macro
handling in the new wysiwyg editor takes this into account.
Thanks
-Vincent
Hi Vincent,
On Fri, Nov 14, 2008 at 8:20 PM, Vincent Massol (JIRA) <jira(a)xwiki.org>wrote:
>
> [
> http://jira.xwiki.org/jira/browse/XWIKI-2796?page=com.atlassian.jira.plugin…]
>
> Vincent Massol closed XWIKI-2796.
> ---------------------------------
>
> Resolution: Fixed
>
Great!
I'm testing office-importer with this fix in place now. Also I'm setting up
the test server, which got bit delayed :(
Thanks.
- Asiri
Hello XWikiers,
is there an example usage of
xwiki.searchDocuments(java.lang.String parametrizedSqlClause,
java.util.List parameterValues)
The page:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples
did not contain this.
today I would like to search for a list of documents modified since a
given date.
thanks in advance
paul