Hello.
I am having some tens of pages of groups and users and checking the
rights on spaces/pages is a real chore. Currently I have to manually
pass through all the pages to check the access rights and to discover
what groups/users have the rights modified from the default.
I would find it very valuable to have the groups/users that have the
access rights/permissions modified from the default to the top when
viewing the access rights for a space/page. Would you consider
implementing this functionality in future versions?
Thanks.
--
Adrian Fita
Hi guys,
I've been working on this little side project which I originally needed to
scratch a personal itch that came up during my work on the Resilience research project.
I needed an efficient way to generate XWiki export (.xar) files and post them to a
running wiki for rapid prototyping. In the past I would do some work from within the
wiki and once the bulk of the work was done, I'd export an xar file and unzip it.
Fixing up the XML and making small changes would be done by hand editing the XML dumps.
To test it, the XML files would be packaged into .xar file using Maven then uploaded
into the wiki by using the import function in the Admin interface.
There are a few problems with this process:
1. Manually editing XMhelL files.
2. My attention span lasts from `mvn clean install` to `[INFO] Scanning for projects...`
3. The turnaround cycle from making a change in the git repository to seeing it in the
wiki is somewhere around 2 minutes (edit, compile, upload in browser, test)
My solution is called xwiki-tools, it's a Javascript framework for scripting the creation
of XWiki packages with documents, objects and classes.
Code Golf example:
This is the shortest xwiki-tools script which will run (it makes a .xar file):
var XWiki = require('xwiki-tools');
var pack = new XWiki.Package();
pack.setName("XWiki - Contrib - XWiki Tools Tiny Example");
pack.setDescription("package name, description and extensionId are required");
pack.setExtensionId("org.xwiki.contrib:xwiki-tools-tiny-example");
var doc = new XWiki.model.XWikiDoc(["Main","TinyExample"]);
doc.setContent("A code-golf example of making an XWiki .xar file with 1 document.");
pack.addDocument(doc);
pack.genXar('XWikiToolsTinyExample.xar');
You can copy/paste this little .js script into a file and run `node yourFile.js` and
it will output XWikiToolsTinyExample.xar.
But wait, there's more!
xwiki-tools doesn't just allow you to wrap little documents into .xar files, it
allows you to add attachments, XObjects and even define your own XClasses.
It can also generate more than a xar file, it can post the package directly to a
running wiki which allows you to edit a file, run the command, page over to the
browser and immediately see your changes!
If you want, it can also generate output as an Apache Maven build.
Check out the example here: https://github.com/cjdelisle/xwiki-tools-example
to learn how to add attachments, XObjects and XClasses to your package and how to
post to a wiki or generate a Maven build.
Performance:
user@ubnta8:~/wrk/resiliance/xwiki-tools-example$ time ./do >/dev/null
real 0m0.643s
user@ubnta8:~/wrk/resiliance/xwiki-tools-example$ time ./do --mvn >/dev/null
real 0m0.416s
user@ubnta8:~/wrk/resiliance/xwiki-tools-example$ cd mvnout/
user@ubnta8:~/wrk/resiliance/xwiki-tools-example/mvnout$ time mvn clean install >/dev/null
real 0m20.578s
XWiki Classes:
So you've decided you want to give this a shot and you have a big ugly
class which you need to represent. If you've looked at one of the existing
classes such as:
https://github.com/cjdelisle/xwiki-tools/blob/master/lib/model/classes/Wiki…
then you know what it needs to look like but getting your class in that form
would be painful. Fortunately there is a tool which reads your .xml file with
the XClass and prints a .js file like the one above.
Just unzip the xar export from XWiki and run the following:
node ./bin/describeclass.js /path/to/YourBigClass.xml
Note: some of the class properties are unimplemented so some classes will not work.
License:
LGPLv2.1, same as XWiki, generated code/data explicitly exempted.
Thanks,
Caleb
Hello.
I imported a XAR from a backed up xwiki instance, but the users were not
added in the XWikiAllGroup. There are many users. How can I add them easily
to the XWikiAllGroup? Manually add each one of them is out of the
question...
Thanks,
--
Fita Adrian
As per instruction given at
http://extensions.xwiki.org/xwiki/bin/view/Extension/RSS+Macro i created
the page and icluded below macro
{{rss feed="http://rss.cnn.com/rss/edition_asia.rss" /}}
But getting below error(though i am able to open link
http://rss.cnn.com/rss/edition_asia.rss in browser). I am not getting whats
the issue here?
Failed to execute the [rss] macro
org.xwiki.rendering.macro.MacroExecutionException: Error processing [
http://rss.cnn.com/rss/edition_asia.rss] : Invalid XML: Error on line 18:
The element type "link" must be terminated by the matching end-tag
"</link>".
at
org.xwiki.rendering.internal.macro.rss.DefaultRomeFeedFactory.createFeed(DefaultRomeFeedFactory.java:68)
at
org.xwiki.rendering.internal.macro.rss.RssMacro.execute(RssMacro.java:136)
at org.xwiki.rendering.internal.macro.rss.RssMacro.execute(RssMacro.java:61)
at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:187)
at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:132)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:83)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:248)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:124)
Hello.
I have a 200MB XAR file that I'm trying to import in a XWiki 5.0.3
installation, but the "Large XAR Import" extention[1] fails with the
following:
Caused by: javax.script.ScriptException: javax.script.ScriptException:
groovy.lang.MissingPropertyException: No such property: context for
class: javax.script.SimpleScriptContext
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:152)
at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.eval(AbstractJSR223ScriptMacro.java:279)
at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:213)
at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:173)
... 106 more
Caused by: javax.script.ScriptException:
groovy.lang.MissingPropertyException: No such property: context for
class: javax.script.SimpleScriptContext
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:349)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:146)
... 109 more
Caused by: groovy.lang.MissingPropertyException: No such property:
context for class: javax.script.SimpleScriptContext
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
at Script19.run(Script19.groovy:214)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:346)
... 110 more
Anybody has any suggestions about how to fix this? My XWiki is installed
from deb[2] on Ubuntu 12.04.2 LTS, running under tomcat7.
1/ http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import
2/ http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT
Thank you,
--
Fita Adrian
Using XWiki 4.0
We tried to import a Word Document with the "Page from Office", but the
import failed...partially.
We got the text imported, but images are missing (no attachments)
But now:
When we try to delete the page, we get this error (see below)
When we try to edit the page and "Save and view", we get this error (see
below)
When we erase all content from the page and try to "Save and view", we get
this error (see below)
Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: could not insert:
[com.xpn.xwiki.doc.XWikiDeletedDocument]
com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while hibernate
execute
Wrapped Exception: could not insert:
[com.xpn.xwiki.doc.XWikiDeletedDocument]
at...blah blah blah
Caused by: java.sql.SQLException: Incorrect string value: '\xEF\x83\xA0
al...' for column 'XDD_XML' at row 1
at...blah blah blah
What to do now?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-delete-page-tp7585704.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Is there a Skin or a setting or something so I could use XWiki as a
CMS for a web site? Something that if you're not logged in, it will
not show any wiki related functional things at all.
What I'd like to do is configure my XWiki install with 3 spaces:
"static" web site for default space, then blog and wiki spaces that
would use the default skin.
I've looked into building a custom skin, but it seems like this is
something someone might have already done so asking to avoid
reinventing the wheel.
Thanks!
Hi,
On save I've got "context: Exception while parsing HTML". Page was
reloaded only with previously saved changes. A page was edited in
WYSIWYG mode.
Is it possible to rescue changes which have been done since the last
save? Maybe XWiki keeps internally some drafts which could be used?
Marcin
Hi,
I tried to install the Diagram Application in a fresh install of xwiki
Enterprise 5.0.1 (
http://extensions.xwiki.org/xwiki/bin/view/Extension/Diagram+Application).
I'm able to see the diagram viewer/editor from the Diagram Space but unable
to display anything in a wiki page and the "save" options from menu are
shown greyed (I use the save option from wiki page).
I have tried to display the diagram using the Display Macro without any
luck (no render). In place, I can only see diagram code in wiki page i.e:
<root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" value=""
style="ellipse" vertex="1" parent="1"><mxGeometry x="410" y="240"
width="80" height="80" as="geometry"/></mxCell><mxCell id="3" value=""
style="ellipse" vertex="1" parent="1"><mxGeometry x="330" y="260"
width="80" height="80" as="geometry"/></mxCell><mxCell id="4"
value="Double
Rounded Rectangle" style="shape=ext;double=1;rounded=1"
vertex="1" parent="1"><mxGeometry x="240" y="290" width="120" height="60"
as="geometry"/></mxCell></root>
Have anyone tried this application with 5.0.X versions?
Thanks in advance!