The XWiki development team is proud to announce the availability of XWiki
6.4.6.
This is mainly a stabilization release that fixes important bugs discovered
in the 6.4.5 and earlier versions.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki646
The following people have contributed code to this release:
Clemens Robbenhaar
Denis Gervalle
Ecaterina Moraru (Valica)
Eduard Moraru
Guillaume Delhumeau
Marius Dumitru Florea
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team
Hi,
I try without success to remove some version from document with groovy :-(
To refresh group cache I add & remove a member in a user group but I don't want my group be poluted by this operation.
I want to launch this groovy script but unfortunaly this one crash with
gArch.removeVersions("EndVersionToDel", "StartVersionToDel", context)
I use
http://maven.xwiki.org/site/docs/xwiki-javadoc-4.1.x/com/xpn/xwiki/doc/XWik…
but I obtain this error:
Caused by: javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: com.xpn.xwiki.doc.XWikiDocumentArchive.removeVersions() is applicable for argument types: (java.lang.String, java.lang.String, javax.script.SimpleScriptContext) values: [EndVersionToDel, StartVersionToDel, javax.script.SimpleScriptContext@4ee56e53]
Possible solutions: removeVersions(org.suigeneris.jrcs.rcs.Version, org.suigeneris.jrcs.rcs.Version, com.xpn.xwiki.XWikiContext)
If someone can help me?
NB: groovy is complicated for me (and I don't understand what is context and how to get it)
Thxs
Pascal B
{{groovy}}
// My group to refresh
def MyGroup = xwiki.getDocument('XWiki.GF_PiloteP3')
// My temp user
udoc = xwiki.getDocument('XWiki.xwikilecteur')
// Add this temp user
gObj = MyGroup.newObject('XWiki.XWikiGroups')
gObj.set('member',udoc.fullName)
MyGroup.save()
// Store version to delete
def StartVersionToDel = MyGroup.getVersion()
print(MyGroup.getVersion() + "' \n")
// Remove this temp user
MyGroup.removeObject(gObj)
MyGroup.save()
// Store new version to delete
def EndVersionToDel = MyGroup.getVersion()
print(MyGroup.getVersion() + " \n")
// get document Archive
def gArch = MyGroup.getDocumentArchive()
//try to remove 2 previous version archive
gArch.removeVersions("EndVersionToDel", "StartVersionToDel", context)
print(MyGroup.getVersion()+ " \n context: " + context + " \n")
{{/groovy}}
Hello list,
As I reported, shortURLs worked well (and my issue about error 404 is
resolve by upgrading to 7.3-m2).
But I need to go a tick further in my ShortURLs attempt: I want some
files to be statically served.
Typical cases include:
- /favicon.ico
- /robots.txt
- the google or other witnesses (e.g. StartSSL)
It seems that the URLRewrite suggestion is really good for the flexible
page rewrite but it does not have the flexibility of Apache mod_rewrite
so that it serves files or tests if files are existing (at least not
with the urlrewrite.xml syntax).
I tried to map manually servlet-names to Jetty's defaultServlet but that
has not been enough yet. Filters are probably byting (or that
DefaultServlet is something else, unfortunately, "static file" is not a
predefined servlet type of the servlet's standard).
Is there another procedure?
I know I can make it in mod_rewrite but I've been trying to focus on
making it all in XWiki and I am surely not alone expecting that.
thanks
Paul
I have a fresh install of 7.3M1 and I've finished entering all of our documents, articles, et cetera.
Is there a way to "zero out" the version history to 1.0 so a page that I've edited 10+ times while creating it starts off on v1.0 instead of v10.0?
Yes thxs (gdelhumeau helped me on irc).
=> I update doc: http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module
I used wrong value like you found too :-)
--------------------------------------------
En date de : Mar 3.11.15, Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com> a écrit :
Objet: Re: [xwiki-users] Need help to find a hql query
À: "Pascal BASTIEN" <pbasnews-xwiki(a)yahoo.fr>
Date: Mardi 3 novembre 2015, 11h01
On Mon,
Nov 2, 2015 at 5:15 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
wrote:
I didn't manage to
use blog example on xwiki 7.0.1
(I replace 'XWiki.ArticleClass' by
'Blog.BlogPostClass' : we must fix doc if it is
ok)
The query example don't work (or maybe I don't know
how to use it ;-) )
select distinct
doc.fullName, doc.creationDate from XWikiDocument as doc,
BaseObject as obj, DBStringListProperty as prop join
prop.list list where obj.name=doc.fullName and
obj.className='Blog.BlogPostClass' and obj.id=prop.id.id and prop.id.name='category'
and list='${category}' order by doc.creationDate
desc
This works fine for me:
select distinct doc.fullName,
doc.creationDate from XWikiDocument as doc, BaseObject as
obj, DBStringListProperty as prop join prop.list list where
obj.name=doc.fullName and
obj.className='Blog.BlogPostClass' and obj.id=prop.id.id and prop.id.name='category'
and list='Blog.News' order by doc.creationDate
desc
You
probably don't have the right value in $category.
Hope this helps,
Marius
If I remove category parameter
#set ($query ="select distinct doc.fullName,
doc.creationDate from XWikiDocument as doc, BaseObject as
obj, DBStringListProperty as prop join prop.list list where
obj.name=doc.fullName and
obj.className='Blog.BlogPostClass' order by
doc.creationDate desc")
the query return all doc with blog class
--------------------------------------------
En date de : Lun 2.11.15, Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
a écrit :
Objet: Re: [xwiki-users] Need help to find a hql query
À: "Pascal BASTIEN" <pbasnews-xwiki(a)yahoo.fr>,
"XWiki Users" <users(a)xwiki.org>
Date: Lundi 2 novembre 2015, 13h47
On Mon,
Nov 2, 2015 at 1:00 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
wrote:
Hello,
I have a xwiki doc class with some properties:
'Static
List' type and 'Page' (multiselect) type.
I try to write a query to retrieve document in one
query
shot but I encoutered problem with 'Page' type.
This query working well based on http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples#HGett…
select distinct doc.name,
doc.creationDate from XWikiDocument as doc, BaseObject
as
obj, StringProperty prop where (doc.fullName=obj.name and
obj.className='FormSMQ.ACClass' and
doc.space='FormSMQ' and doc.hidden=false and prop.id.id=obj.id
and prop.name='P1_Processus'
and prop.value='M3') order by doc.creationDate
desc
'P1_Processus' is a static list type
But this query doesn't work:
select distinct doc.name,
doc.creationDate from
XWikiDocument as doc, BaseObject as obj, StringProperty
prop
where (doc.fullName=obj.name and
obj.className='FormSMQ.ACClass' and
doc.space='FormSMQ' and doc.hidden=false and prop.id.id=obj.id
and prop.name='MY_PAGE_TYPE_PROPERTY_NAME'
and prop.value='MYVALUE') order by
doc.creationDate
desc
I suppose the 'P1_Processus'
property has single selection, which means
'prop.value' is a string and thus you can write
"prop.value='M3'". If the Page type
property is multiple select then it's value is a
list.
You should check the
"List all blog posts, published and not
hidden (filter by multiple properties of an
object)"
example from http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module#HQueryLan…
. Look for :
:category member of blog.category (in
the XWQL version)
DBStringListProperty as categoryProp
join categoryProp.list list (in the HQL version)
Hope this helps,
Marius
Ididn't find some "PageProperty" in https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…,
then I must use DBStringListProperty ?
Any help will be welcome.
Pascal B
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
> I read this example:
> http://xwiki.markmail.org/message/e2mi4odgpucsd3cu
> #set ($hql ="select distinct doc.fullName, otherprop.value,
> doc.creationDate from XWikiDocument as doc, BaseObject as
> obj, StringProperty otherprop, DBStringListProperty as prop
> join prop.list list
> where obj.name=doc.fullName and
> obj.className='Blog.BlogPostClass' and obj.id=prop.id.id and
> prop.id.name='category' and list='Blog.Autres'
> and obj.id=otherprop.id.id and otherprop.id.name='title'
> order by doc.creationDate desc")
>
> (must try with category property now)
>
Nope: I didn't managed to have multiselect category values with hql query :-(
maybe I must uncheck database relationnel storage (and use this filter "list like '%Blog.Autres%'")?
because like sergio said in http://xwiki.markmail.org/message/c6s5wofs24q62qjd?q=query+Property+DBStrin…
<<values from the list, while Relational Storage makes it easier to integrate that property into other queries by storing each selected item in its own entry in the database (without it all the selected values are stored in one row, concatenated into a VARCHAR column), and to store >>
Hi
I am trying out Xwiki and would like to know how to login after installing.
Is there an admin user already created when installing? If yes, what is the
password?
If not, how do I create an admin user?
Thanks
--
Anton Hughes
Hello,
I have a xwiki doc class with some properties: 'Static List' type and 'Page' (multiselect) type.
I try to write a query to retrieve document in one query shot but I encoutered problem with 'Page' type.
This query working well based on http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples#HGett…
select distinct doc.name, doc.creationDate from XWikiDocument as doc, BaseObject as obj, StringProperty prop where (doc.fullName=obj.name and obj.className='FormSMQ.ACClass' and doc.space='FormSMQ' and doc.hidden=false and prop.id.id=obj.id and prop.name='P1_Processus' and prop.value='M3') order by doc.creationDate desc
'P1_Processus' is a static list type
But this query doesn't work:
select distinct doc.name, doc.creationDate from XWikiDocument as doc, BaseObject as obj, StringProperty prop where (doc.fullName=obj.name and obj.className='FormSMQ.ACClass' and doc.space='FormSMQ' and doc.hidden=false and prop.id.id=obj.id and prop.name='MY_PAGE_TYPE_PROPERTY_NAME' and prop.value='MYVALUE') order by doc.creationDate desc
Ididn't find some "PageProperty" in https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…, then I must use DBStringListProperty ?
Any help will be welcome.
Pascal B
I am trying to update from 7.2 to 7.3 Milestone 1.
Almost every single time I do an update, I run into problems and either parts of the wiki don't work or it won't load at all.
Right now, won't load at all. Blank screen. No error, no nothing. Logs are not helping.
24-Oct-2015 08:07:08.398 INFO [Core extension repository updater] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [org.xwiki.extension.repository.xwiki.internal.XWikiExtension]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org.xwiki.extension.repository.xwiki.internal.XWikiExtension]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1327)
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1313)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1196)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.resolve(XWikiExtensionRepository.java:330)
at org.xwiki.extension.repository.internal.DefaultExtensionRepositoryManager.resolve(DefaultExtensionRepositoryManager.java:213)
at org.xwiki.extension.repository.internal.core.DefaultCoreExtensionScanner.updateExtensions(DefaultCoreExtensionScanner.java:187)
at org.xwiki.extension.repository.internal.core.DefaultCoreExtensionRepository$1.run(DefaultCoreExtensionRepository.java:134)
at java.lang.Thread.run(Unknown Source)
2015-10-24 08:11:03,743 [localhost-startStop-1] ERROR .o.i.DefaultObservationManager - Failed to lookup listeners
org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [role = [interface org.xwiki.observation.EventListener] hint = [solr.availablelocales]]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:216) ~[xwiki-commons-legacy-component-default-7.3-milestone-1.jar:na]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceList(EmbeddableComponentManager.java:198) ~[xwiki-commons-legacy-component-default-7.3-milestone-1.jar:na]
at org.xwiki.observation.internal.DefaultObservationManager.initializeListeners(DefaultObservationManager.java:164) [xwiki-commons-observation-local-7.3-milestone-1.jar:na]
at org.xwiki.observation.internal.DefaultObservationManager.getListenersByEvent(DefaultObservationManager.java:131) [xwiki-commons-observation-local-7.3-milestone-1.jar:na]
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:267) [xwiki-commons-observation-local-7.3-milestone-1.jar:na]
at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:321) [xwiki-commons-observation-local-7.3-milestone-1.jar:na]
at org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:118) [xwiki-platform-container-servlet-7.3-milestone-1.jar:na]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729) [catalina.jar:8.0.23]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167) [catalina.jar:8.0.23]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.0.23]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) [catalina.jar:8.0.23]
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) [catalina.jar:8.0.23]
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) [catalina.jar:8.0.23]
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1101) [catalina.jar:8.0.23]
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1786) [catalina.jar:8.0.23]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.8.0_60]
at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_60]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_60]
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.search.solr.internal.SolrInstanceProvider] identified by [role = [javax.inject.Provider<org.xwiki.search.solr.internal.api.SolrInstance>] hint = [default]]
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:394) ~[xwiki-commons-legacy-component-default-7.3-milestone-1.jar:na]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:190) ~[xwiki-commons-legacy-component-default-7.3-milestone-1.jar:na]
at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:356) ~[xwiki-commons-legacy-component-default-7.3-milestone-1.jar:na]
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312) ~[xwiki-commons-legacy-component-default-7.3-milestone-1.jar:na]
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:424) ~[xwiki-commons-legacy-component-default-7.3-milestone-1.jar:na]
at org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:214) ~[xwiki-commons-legacy-component-default-7.3-milestone-1.jar:na]
... 19 common frames omitted
Caused by: org.xwiki.component.phase.InitializationException: Failed to lookup configured Solr instance type [embedded]
at org.xwiki.search.solr.internal.SolrInstanceProvider.initialize(SolrInstanceProvider.java:74) ~[xwiki-platform-search-solr-api-7.3-milestone-1.jar:na]
at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39) ~[xwiki-commons-legacy-component-default-7.3-milestone-1.jar:na]
at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:322) ~[xwiki-commons-legacy-component-default-7.3-milestone-1.jar:na]
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:424) ~[xwiki-commons-legacy-component-default-7.3-milestone-1.jar:na]
at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:392) ~[xwiki-commons-legacy-component-default-7.3-milestone-1.jar:na]
... 24 common frames omitted
I am struggling at times with Anchors.
The documentation says that anchors for headings are auto-created. However, when I try to link to a heading using the format: spacename.pagename#Hmyheading, it wants to create a new page. However, when I use the full url for the page: https://www.sitename.ca/xwiki/bin/view/spacename/pagename#Hmyheading it works.
Any insight?
Paul Pinkerton
KnowledgeNow Project Lead
pinkerp(a)lao.on.ca<mailto:pinkerp@lao.on.ca>
Skype: pinkerp.lao<skype:pinkerp.lao>
Association of Community Legal Clinics of Ontario
416-847-1418 or 1-866-965-1416x 5177
www.aclco.org<http://www.aclco.org/>
The XWiki development team is proud to announce the availability of
XWiki 7.3 Milestone 2.
This is the first of the 2 stabilization releases that happen at the
end of each yearly Cycles. Lots of polishing has been done, especially
for the recently introduced Nested Pages feature and its consequences
on the UI redesign (modified menus for example). Some extensions
started exploit nested spaces to bring some improvements.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki73M2
The following people have contributed code to this release:
Clemens Robbenhaar
Eduard Moraru
Guillaume Delhumeau
Marius Dumitru Florea
Sergiu Dumitriu
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team
--
Thomas Mortagne
Thanks a lot everyone, we got 8 new survey results since yesterday, that’s great! :)
We can do even better, please all take the time to fill the survey ASAP. It’s not much, won’t take much time and it helps a lot the project. That’s a good way to contribute something back! :)
Thanks
-Vincent
On 28 Oct 2015 at 20:08:43, Ldm Public (ldmpub@gmail.com(mailto:ldmpub@gmail.com)) wrote:
> Done !
>
> Le 23/10/2015 15:19, vincent(a)massol.net a écrit :
> > Hi,
> >
> > In previous years the xwiki.org project launched surveys about features we’d like to see implemented in XWiki (see http://www.xwiki.org/xwiki/bin/view/Main/Feedback).
> >
> > After some discussions with fellow XWikiers we thought it could be interesting to launch a similar survey in 2015, especially with the 8.x cycle approaching. But this time instead of having a long list of features to vote on, we thought it might be more interesting to have a few open questions that the community could answer.
> >
> > The aim of this short survey is to find out more about how satisfied (or not!) the members of the XWiki community are with the XWiki product.
> >
> > We'd be happy to learn about:
> > * what you like / dislike about the product
> > * the features and improvements you’d like to see in the product in the future and especially for XWiki 8.x
> >
> > The survey will run till November 13 and the results will be synthesised and made available mid-November through a blog post on the community blog ( http://blog.xwiki.org/xwiki/bin/view/Blog/ )
> >
> > The survey has 6 questions and should only take a few minutes:
> >
> > http://www.xwiki.org/xwiki/bin/view/Main/SurveyXWikiProduct2015
> >
> > Thanks a lot for your contributions and for helping improve the product,
> > -Silvia & Vincent
Nice! I like it when our users are happy :) Well done Clements!
@Rolf: maybe you could write a little quote for http://www.xwiki.org/xwiki/bin/view/References/Testimonials ;)
Thanks
-Vincent
On 28 Oct 2015 at 14:29:55, Rolf Lang (rolf.lang(a)la-bw.de) wrote:
Clemens,
you are great!
We followed your clear instructions and indeed, it worked as expected.
Thanks for your great support. We are realy happy!
Kind regards
Rolf LANG
-----Ursprüngliche Nachricht-----
Von: users [mailto:users-bounces@xwiki.org] Im Auftrag von Clemens
Klein-Robbenhaar
Gesendet: Dienstag, 27. Oktober 2015 17:38
An: users(a)xwiki.org
Betreff: Re: [xwiki-users] xwiki as our Intranet
Hi Rolf,
for use case 2:
actually I did not realize that the main wiki:Main.Activity page
still uses my locally adapted "activity" macro ... that is why it worked for
me, and not for you.
So, it seems we need to get our hands dirty and modify the "activity" Macro:
a) in the subwiki, go to the .../Main/Activity page
b) go to "Edit" -> "Objects"
c) click "Objects of type XWiki.WikiMacroClass
d) this opens several text fields;
the big field for "Macro code" contains, unsurprisingly, the code for the
macro
which makes sure we only see messages from the local wiki.
Here we need to make some changes:
d1) just at the start:
{{velocity output=false}}
##
add a line remembering the current wiki, so it looks instead like:
{{velocity output=false}}
#set($currentWiki = $xcontext.getDatabase())
##
d2) look for the code
## Always assume access to messages. For the rest of the documents, check
access.
#if
($pageName.matches(".*:XWiki[.][0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{
4}-[0-9a-z]{12}") || ($xwiki.hasAccessLevel('view', $xcontext.user,
"${xcontext.database}:${pageName}") &&
!$iterationDocuments.contains($pageName)))
insert five lines of code in between so it looks like:
## Always assume access to messages. For the rest of the documents, check
access.
#if
($pageName.matches(".*:XWiki[.][0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{
4}-[0-9a-z]{12}"))
#set($myWiki = "xwiki")
#else
#set($myWiki = $currentWiki)
#end
#if
($pageName.matches(".*:XWiki[.][0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{
4}-[0-9a-z]{12}") || ($xwiki.hasAccessLevel('view', $xcontext.user,
"${xcontext.database}:${pageName}") &&
!$iterationDocuments.contains($pageName)))
what it does: prepares to set the "right" wiki/database: if it is a message,
look it up in the main wiki (which knows all messages), for all other
events, stay at the local wiki
d3) look a few lines below for:
#set ($discard = $subqueryParameters.addAll($filterParameters))
#set ($events= $xwiki.activitystream.searchEvents("$!whereClause", false,
0, 0, $subqueryParameters))
in between them insert a line actually setting the wiki to look up the
event; it should looks like
#set ($discard = $subqueryParameters.addAll($filterParameters))
#set ($discard = $xcontext.setDatabase($myWiki))
#set ($events= $xwiki.activitystream.searchEvents("$!whereClause", false,
0, 0, $subqueryParameters))
this actually sets the wiki to the one where the event is looked up.
d4) at the very end replace:
#end
{{/velocity}}
with:
#end
#set($discard = $xcontext.setDatabase($currentWiki))
{{/velocity}}
this sets the "current wiki" back to the original wiki, just in case (I
think XWiki does it for you, too, but I prefer to be polite and clean up
after myself ;))
press "Save and View"
If you see horrible, horrible error messages, something went wrong; to back
to the object editor and try to find the missing " or ),
or use the page history, to get back to the last version before the edit.
If you do not see any error message ... you should see that nothing has
changed, yet.
That is because by default the activity stream only looks up events for the
subwiki ... we need to change this, too, but that goes without wild coding
Go to the "Dashboard", edit the page, and edit the Gadget "Activity stream"
Find the input field "wikis", and type in "xwiki,mysubwiki" (replace
mysubwiki with the name of the current wiki)
Close the dialog to edit the gadget, save the dashboard, and it should work.
hope it works this time. Sorry, if it is a bit complicated; that is why I
did not post in my first reply
----- Ursprüngliche Nachricht -----
From: Rolf Lang
At: Dienstag, 27.10.2015, 15:03
To: Xwiki Users
Subject: Re: [xwiki-users] xwiki as our Intranet
> Hi Clemens,
>
> thanks for your advise.
>
> 1. point
> Works great as you described (ok)
>
>
> 2. point "global xwiki send messages should be visible also at local
xwiki"
> We follow your recommendations.
>
> if we use "reference" : xwiki:Main.Activity
> - we see subWiki Activities (ok)
> - but we miss the main Activities listed here
>
> If we use a wrong "reference" : xwiki:MainXX.Activity
> - we see a clear error msg on GUI (ok)
>
>
> We try to change "administration.users"
> The option 'what kind of users can access the wiki' to
> - only global users
>
> But it makes no difference.
>
>
> Kind regards
> Rolf LANG
>
>
> -----Ursprüngliche Nachricht-----
> Von: users [mailto:users-bounces@xwiki.org] Im Auftrag von Clemens
> Klein-Robbenhaar
> Gesendet: Montag, 26. Oktober 2015 12:37
> An: users(a)xwiki.org
> Betreff: Re: [xwiki-users] xwiki as our Intranet
>
>
>> Hi
>> We like to use the xwiki as our Intranet solution.
>>
>>
>> Currently it's setup as one global xwiki where people find downloads and
> the
>> dashboard.
>> Also each department use a subWiki, which uses local dashboard and infos.
>>
>> Maybe we need some help on howto configure/setup these requirements:
>>
>> 1. subWiki send messages should be visible local only. Currently they are
>> seen also on global xwiki as copy.
>
> This is the easy part :)
>
> Go to the "Dashboard" in the main wiki, edit that page,
> open the gadgets showing the activity stream, look for the "Wikis"
> parameter, and fill in the value "xwiki"
> (which is the id of the main wiki)
>
> After saving the activity stream on the dashboard stream should only show
> events from the main wiki.
>
>> 2. global xwiki send messages should be visible also at local xwiki
>> dashboard. If possible as Reference, not as copy.
>>
>
> this turned out to be trickier, because the activity stream in the subwiki
> by default
> only looks for events in the subwiki.
>
> One option is to go to the dashboard of the subwiki, and replace the
> activity by an include the activity stream for the main wiki (which then
> will display all messages, but only page edits from the subwiki):
>
> To do this:
> - edit the dashboard of the subwiki
> - remove the existing activity stream (no worries, if things go wrong you
> can just restore it from the page history)
> - add a new "include" gadget and fill in the values:
> -- "Gadget Title" (whatever you want)
> -- "context" : New
> -- "reference" : xwiki:Main.Activity
> and leave the other fields empty / at default
>
>
> This will work only if all your users have access to the main wiki,
however.
> (Otherwise they just see an error message)
>
> If this does not work, the alternative is to edit the "Activity" macro in
> the subwiki ... which is a bit more work and might cause problem when
> upgrading to an newer version.
> I could post hints how to do this, but it is a bit lengthy and technical,
> and I would prefer to see if the first option works.
>
>
> hope this helps,
> clemens
>
>
>>
>> Final question:
>> If the mailing list could give us some advise how to setup xwiki, GREAT.
>> Otherwise we also may accept an on-site workshop, depending on the costs.
>>
>>
>> Kind regards
>> ___
>> Rolf LANG | Landesarchiv Baden-Württemberg | Zentrale Dienste | Ref. 13
>> Eugenstr. 7 | 70182 Stuttgart | Tel 0711/212-4275 | E-Mail
>> rolf.lang(a)la-bw.de
>>
>>
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
mit freundlichen Grüßen
Clemens Klein-Robbenhaar
--
Clemens Klein-Robbenhaar
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.763
Fax: +49.(0)30.90 226.760
robbenhaar(a)espresto.com
www.espresto.de
HRB 77554 B - Berlin-Charlottenburg
Vorstand: Maya Biersack, Peter Biersack
Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
Zertifiziert nach ISO 9001:2008
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hi Rolf,
for use case 2:
actually I did not realize that the main wiki:Main.Activity page
still uses my locally adapted "activity" macro ... that is why it worked for me, and not for you.
So, it seems we need to get our hands dirty and modify the "activity" Macro:
a) in the subwiki, go to the .../Main/Activity page
b) go to "Edit" -> "Objects"
c) click "Objects of type XWiki.WikiMacroClass
d) this opens several text fields;
the big field for "Macro code" contains, unsurprisingly, the code for the macro
which makes sure we only see messages from the local wiki.
Here we need to make some changes:
d1) just at the start:
{{velocity output=false}}
##
add a line remembering the current wiki, so it looks instead like:
{{velocity output=false}}
#set($currentWiki = $xcontext.getDatabase())
##
d2) look for the code
## Always assume access to messages. For the rest of the documents, check access.
#if ($pageName.matches(".*:XWiki[.][0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}") || ($xwiki.hasAccessLevel('view', $xcontext.user, "${xcontext.database}:${pageName}") && !$iterationDocuments.contains($pageName)))
insert five lines of code in between so it looks like:
## Always assume access to messages. For the rest of the documents, check access.
#if ($pageName.matches(".*:XWiki[.][0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}"))
#set($myWiki = "xwiki")
#else
#set($myWiki = $currentWiki)
#end
#if ($pageName.matches(".*:XWiki[.][0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}") || ($xwiki.hasAccessLevel('view', $xcontext.user, "${xcontext.database}:${pageName}") && !$iterationDocuments.contains($pageName)))
what it does: prepares to set the "right" wiki/database: if it is a message, look it up in the main wiki (which knows all messages), for all other events, stay at the local wiki
d3) look a few lines below for:
#set ($discard = $subqueryParameters.addAll($filterParameters))
#set ($events= $xwiki.activitystream.searchEvents("$!whereClause", false, 0, 0, $subqueryParameters))
in between them insert a line actually setting the wiki to look up the event; it should looks like
#set ($discard = $subqueryParameters.addAll($filterParameters))
#set ($discard = $xcontext.setDatabase($myWiki))
#set ($events= $xwiki.activitystream.searchEvents("$!whereClause", false, 0, 0, $subqueryParameters))
this actually sets the wiki to the one where the event is looked up.
d4) at the very end replace:
#end
{{/velocity}}
with:
#end
#set($discard = $xcontext.setDatabase($currentWiki))
{{/velocity}}
this sets the "current wiki" back to the original wiki, just in case (I think XWiki does it for you, too, but I prefer to be polite and clean up after myself ;))
press "Save and View"
If you see horrible, horrible error messages, something went wrong; to back to the object editor and try to find the missing " or ),
or use the page history, to get back to the last version before the edit.
If you do not see any error message ... you should see that nothing has changed, yet.
That is because by default the activity stream only looks up events for the subwiki ... we need to change this, too, but that goes without wild coding
Go to the "Dashboard", edit the page, and edit the Gadget "Activity stream"
Find the input field "wikis", and type in "xwiki,mysubwiki" (replace mysubwiki with the name of the current wiki)
Close the dialog to edit the gadget, save the dashboard, and it should work.
hope it works this time. Sorry, if it is a bit complicated; that is why I did not post in my first reply
----- Ursprüngliche Nachricht -----
From: Rolf Lang
At: Dienstag, 27.10.2015, 15:03
To: Xwiki Users
Subject: Re: [xwiki-users] xwiki as our Intranet
> Hi Clemens,
>
> thanks for your advise.
>
> 1. point
> Works great as you described (ok)
>
>
> 2. point "global xwiki send messages should be visible also at local xwiki"
> We follow your recommendations.
>
> if we use "reference" : xwiki:Main.Activity
> - we see subWiki Activities (ok)
> - but we miss the main Activities listed here
>
> If we use a wrong "reference" : xwiki:MainXX.Activity
> - we see a clear error msg on GUI (ok)
>
>
> We try to change "administration.users"
> The option 'what kind of users can access the wiki' to
> - only global users
>
> But it makes no difference.
>
>
> Kind regards
> Rolf LANG
>
>
> -----Ursprüngliche Nachricht-----
> Von: users [mailto:users-bounces@xwiki.org] Im Auftrag von Clemens
> Klein-Robbenhaar
> Gesendet: Montag, 26. Oktober 2015 12:37
> An: users(a)xwiki.org
> Betreff: Re: [xwiki-users] xwiki as our Intranet
>
>
>> Hi
>> We like to use the xwiki as our Intranet solution.
>>
>>
>> Currently it's setup as one global xwiki where people find downloads and
> the
>> dashboard.
>> Also each department use a subWiki, which uses local dashboard and infos.
>>
>> Maybe we need some help on howto configure/setup these requirements:
>>
>> 1. subWiki send messages should be visible local only. Currently they are
>> seen also on global xwiki as copy.
>
> This is the easy part :)
>
> Go to the "Dashboard" in the main wiki, edit that page,
> open the gadgets showing the activity stream, look for the "Wikis"
> parameter, and fill in the value "xwiki"
> (which is the id of the main wiki)
>
> After saving the activity stream on the dashboard stream should only show
> events from the main wiki.
>
>> 2. global xwiki send messages should be visible also at local xwiki
>> dashboard. If possible as Reference, not as copy.
>>
>
> this turned out to be trickier, because the activity stream in the subwiki
> by default
> only looks for events in the subwiki.
>
> One option is to go to the dashboard of the subwiki, and replace the
> activity by an include the activity stream for the main wiki (which then
> will display all messages, but only page edits from the subwiki):
>
> To do this:
> - edit the dashboard of the subwiki
> - remove the existing activity stream (no worries, if things go wrong you
> can just restore it from the page history)
> - add a new "include" gadget and fill in the values:
> -- "Gadget Title" (whatever you want)
> -- "context" : New
> -- "reference" : xwiki:Main.Activity
> and leave the other fields empty / at default
>
>
> This will work only if all your users have access to the main wiki, however.
> (Otherwise they just see an error message)
>
> If this does not work, the alternative is to edit the "Activity" macro in
> the subwiki ... which is a bit more work and might cause problem when
> upgrading to an newer version.
> I could post hints how to do this, but it is a bit lengthy and technical,
> and I would prefer to see if the first option works.
>
>
> hope this helps,
> clemens
>
>
>>
>> Final question:
>> If the mailing list could give us some advise how to setup xwiki, GREAT.
>> Otherwise we also may accept an on-site workshop, depending on the costs.
>>
>>
>> Kind regards
>> ___
>> Rolf LANG | Landesarchiv Baden-Württemberg | Zentrale Dienste | Ref. 13
>> Eugenstr. 7 | 70182 Stuttgart | Tel 0711/212-4275 | E-Mail
>> rolf.lang(a)la-bw.de
>>
>>
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
mit freundlichen Grüßen
Clemens Klein-Robbenhaar
--
Clemens Klein-Robbenhaar
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.763
Fax: +49.(0)30.90 226.760
robbenhaar(a)espresto.com
www.espresto.de
HRB 77554 B - Berlin-Charlottenburg
Vorstand: Maya Biersack, Peter Biersack
Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
Zertifiziert nach ISO 9001:2008
> Hi
> We like to use the xwiki as our Intranet solution.
>
>
> Currently it's setup as one global xwiki where people find downloads and the
> dashboard.
> Also each department use a subWiki, which uses local dashboard and infos.
>
> Maybe we need some help on howto configure/setup these requirements:
>
> 1. subWiki send messages should be visible local only. Currently they are
> seen also on global xwiki as copy.
This is the easy part :)
Go to the "Dashboard" in the main wiki, edit that page,
open the gadgets showing the activity stream, look for the "Wikis" parameter, and fill in the value "xwiki"
(which is the id of the main wiki)
After saving the activity stream on the dashboard stream should only show events from the main wiki.
> 2. global xwiki send messages should be visible also at local xwiki
> dashboard. If possible as Reference, not as copy.
>
this turned out to be trickier, because the activity stream in the subwiki by default
only looks for events in the subwiki.
One option is to go to the dashboard of the subwiki, and replace the activity by an include the activity stream for the main wiki (which then will display all messages, but only page edits from the subwiki):
To do this:
- edit the dashboard of the subwiki
- remove the existing activity stream (no worries, if things go wrong you can just restore it from the page history)
- add a new "include" gadget and fill in the values:
-- "Gadget Title" (whatever you want)
-- "context" : New
-- "reference" : xwiki:Main.Activity
and leave the other fields empty / at default
This will work only if all your users have access to the main wiki, however. (Otherwise they just see an error message)
If this does not work, the alternative is to edit the "Activity" macro in the subwiki ... which is a bit more work and might cause problem when upgrading to an newer version.
I could post hints how to do this, but it is a bit lengthy and technical, and I would prefer to see if the first option works.
hope this helps,
clemens
>
> Final question:
> If the mailing list could give us some advise how to setup xwiki, GREAT.
> Otherwise we also may accept an on-site workshop, depending on the costs.
>
>
> Kind regards
> ___
> Rolf LANG | Landesarchiv Baden-Württemberg | Zentrale Dienste | Ref. 13
> Eugenstr. 7 | 70182 Stuttgart | Tel 0711/212-4275 | E-Mail
> rolf.lang(a)la-bw.de
>
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
Hi again,
I am confused about
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport#HExporting…
When exporting, there is the option "BACKUP PACKAGE (AUTHOR
PRESERVED)", and when importing there is the option "Import as backup
package". What does it mean that the author is preserved, since the
contents of the author textbox are always saved in the package, and
there is a separate checkbox to preserve the page authorship history?
-Alex
Hi
We like to use the xwiki as our Intranet solution.
Currently it's setup as one global xwiki where people find downloads and the
dashboard.
Also each department use a subWiki, which uses local dashboard and infos.
Maybe we need some help on howto configure/setup these requirements:
1. subWiki send messages should be visible local only. Currently they are
seen also on global xwiki as copy.
2. global xwiki send messages should be visible also at local xwiki
dashboard. If possible as Reference, not as copy.
Final question:
If the mailing list could give us some advise how to setup xwiki, GREAT.
Otherwise we also may accept an on-site workshop, depending on the costs.
Kind regards
___
Rolf LANG | Landesarchiv Baden-Württemberg | Zentrale Dienste | Ref. 13
Eugenstr. 7 | 70182 Stuttgart | Tel 0711/212-4275 | E-Mail
rolf.lang(a)la-bw.de
I runned tomcat8 with hsqldb latest 7.3-1 xwiki release and uploaded a
700mb file.
Java had 8gb heap and I still got a out of memory exception.
As I read about using databases for filestorage, I now found out
that this is a enormous task, becouse big databases are difficult
to maintain. So I stick with filesystem storage for now.
One solution is to break up big files into chunks, and store them
as parts within a database.
An interresting bug I encountered was:
If I changed the database from hibernate to file, I still do see the old
file attachment references,
but I am not able to delete them.
Same for virtual wikis who are created before you change the file
storage from hibernate to file.
All of those wikis have broken images.
It would be a great idea (at least from my point of view)
to set a option for "delete attachment references anyway (even if file
not found in db)"
and "Reinstall virtual wiki".
One working hack however is, to export everything, change the database type,
reninstall the wiki (delete catalina directories etc.) and then import the
backup with a proper file database configuration.
The import process took arround 3 minutes for 900 pages.
Ps.: Conflu* needs arround 10 minutes to move 1000 pages (Crashes
included), so great work so far ;)
Greetings, Louis
Am 23.10.2015 um 10:11 schrieb vincent(a)massol.net:
> Hi Louis
>
>
> On 22 Oct 2015 at 23:14:05, Louis Höfler
> (louis.hoefler@mathematek.de(mailto:louis.hoefler@mathematek.de)) wrote:
>
> > That perfectly solves my problem.
> >
> > As a point of interest,
> > would it be possible to store big files within mysql too,
> > or is this just impossible?
>
> It’s possible with very large memory settings. There are several
> reasons why it takes a lot of memory but one reason is that AFAIR
> mysql doesn’t have a streaming api for blobs and thus the whole
> attachments needs to be fully in memory. In addition our code does
> manipulation of the attachment in memory, requiring even more memory.
> At some point we computed the memory required and it was like 27 times
> or so the size of the attachment but we improved it and I don’t know
> what’s the requirement now (would be interesting to find out).
>
> If you’re interested by details
> * http://jira.xwiki.org/browse/XWIKI-8910
> * http://jira.xwiki.org/browse/XWIKI-11209
> * http://jira.xwiki.org/browse/XWIKI-10611
> * http://jira.xwiki.org/browse/XWIKI-8189
>
> Thanks
> -Vincent
>
> > Thank you, Louis
> >
> > Am 22.10.2015 um 22:47 schrieb vincent(a)massol.net:
> > > Hi Louis,
> > >
> > > Please check
> > > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments and
> > > let us know if it solves your problems (hint: configure xwiki to use
> > > filesystem if you wish to store large attachments).
> > >
> > > Thanks
> > > -Vincent
> > >
> > > On 22 Oct 2015 at 22:42:33, Louis Höfler (louis.hoefler(a)mathematek.de
> > > ) wrote:
> > >
> > >> Hello Everyone,
> > >> i currently try to upload big files as attachment.
> > >>
> > >> I run mysql 5 with xwiki within tomcat 8 on debian.
> > >>
> > >> However, if i upload the File (700mb) it stops after 100%,
> > >> showing an error "There was an error uploading your file".
> > >>
> > >> Can someone help me fixing that error?
> > >>
> > >> Thank you, Louis
> > >>
> >
> > _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
Hello Everyone,
i currently try to upload big files as attachment.
I run mysql 5 with xwiki within tomcat 8 on debian.
However, if i upload the File (700mb) it stops after 100%,
showing an error "There was an error uploading your file".
Can someone help me fixing that error?
Thank you, Louis
I was following the instructions here (http://extensions.xwiki.org/xwiki/bin/view/Extension/Share+Page+Application) to edit the Share by email template, and I managed to find the /bin/view/XWiki/SharePage page, but couldn’t figure out how to access the Object Editor. After some googling, I found that if I edited the URL to be /bin/edit/XWiki/SharePage?editor=object, I could see the templates I wanted to edit.
Before I even edited anything I went to share a page to see what it looked like and go the following error. I ended up editing the templates anyway, restarted Tomcat/XWiki and I’m getting the same error. Sharing by email was previously working before I accessed the Object Editor for the XWiki.SharePage.
Error number 4001 in 4: Error while evaluating velocity template shareinline.vm
Verbose: http://pastebin.com/ksYGM36J
XWiki Enterprise 7.2