Hi users,
Is there any usefull and self-explaining image or diagram which describe
the Architecture of XWiki?
I am looking for something like this:
http://dev.xwiki.org/xwiki/bin/view/Drafts/OldArchitecture
but that is not "old" of course!
Any help?
Giordano.
Hello,
Is it possible to color the text (and/or background) in the WYSIWYG
editor, without passing by the source code of the page ?
Is there an extension for that ?
Because some non-technical users will not want to spend time to learn
the XWiki language.
Thank you for all the help you bring me !
Signature mails
_________________________________________________
Bruno Joffredo
Ecole Centrale de Nantes
Centre de Ressources Informatiques - Bur. D019
1 rue de la Noë
BP 92101
F-44321 Nantes cedex 3
Tél. 02.40.37.68.06
Mail : bruno.joffredo(a)ec-nantes.fr <mailto:bruno.joffredo@ec-nantes.fr>
_________________________________________________
Hello,
Could you tell me if there is a documentation on installing LibreOffice
server for XWiki LibreOffice Import ?
Regards,
Signature mails
_________________________________________________
Bruno Joffredo
Ecole Centrale de Nantes
Centre de Ressources Informatiques - Bur. D019
1 rue de la Noë
BP 92101
F-44321 Nantes cedex 3
Tél. 02.40.37.68.06
Mail : bruno.joffredo(a)ec-nantes.fr <mailto:bruno.joffredo@ec-nantes.fr>
_________________________________________________
Hello,
I have a big problem at startup.
Wiki starts and i have an error in tomcat 8 :
15-Feb-2016 13:53:21.346 SEVERE [http://wiki.nouveauxterritoires.fr:8080/xwiki/bin/view/Main/] org.apache.catalina.core.StandardWrapperValve.invoke "Servlet.service()" pour la servlet action a généré une exception
javax.servlet.UnavailableException: Cannot initialize RequestProcessor of class com.xpn.xwiki.web.XWikiRequestProcessor: java.lang.NullPointerException
at org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:614)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1910)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
15-Feb-2016 13:53:21.348 INFO [http://wiki.nouveauxterritoires.fr:8080/xwiki/bin/view/Main/] org.apache.catalina.core.ApplicationContext.log La servlet action est marqué comme indisponible
15-Feb-2016 13:53:21.353 WARNING [http://wiki.nouveauxterritoires.fr:8080/xwiki/bin/view/Main/] org.apache.catalina.core.ApplicationDispatcher.invoke La servlet action est actuellement indisponible
System : Debian 8
OpenJDK 1.8
Tomcat 8
What is the problem ?
Thanks for your help
Julien
Hello.
Is it possible to set "Prevent unregistered users from viewing pages ..."
setting in xwiki.cfg file?
I don't want to use Admin account to perform the action in the menu.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Is-it-possible-to-set-Prevent-unregistere…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi devs,
I’d like to propose that we move to Java 8 as the minimal Java version supported for XWiki 8.0+.
The rationale is:
* Java 7 is end of life since April 2015.
* It brings [Default Methods|https://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.h…] which would make retro compatibility a lot easier for us (it's very hard to add new features to existing API right now).
* Required for:
** Infinispan 8
** JGroups 4
** Jetty 9.3+ seems to require Java 8 (or maybe it's just optimized for it, http://download.eclipse.org/jetty/ is not crystal clear about what "Java 8+" means exactly)
Nice to have
* Lambda Expressions
* Repeating Annotations which would probably allow us to use several times \@Named instead of \@Component(hints=\{"hint1", "hint2"\}) for example
* New date/time APIs (pretty much what is in Joda Time). We should refactor our $datetool velocity tool to make the java.time api available from velocity
* more…
See http://jira.xwiki.org/browse/XCOMMONS-878
Here’s my +1 and my +1 to start requiring Java 8 for 8.0M2.
Thanks
-Vincent
Hi users,
In my java component I am handling the creation of spaces and pages. The
point is to write a java method that can create and update spaces and
terminal pages contained in them according to some data structure.
I already have created XClasses, XObjects and Sheets to handle the content
representations of both spaces and terminal pages, but the problem is that
I can´t put the pages inside the correct spaces.
I thought that the space´s Webhome page is a document like any other page,
thus I´ve managed it like the other terminal pages. Terminal pages creation
is ok, meaning that the content are diplayed properly, but the they are
contained in spaces that haven´t a page (if I go in the space´s page I am
asked to create it because it doesn´t exist), meanwhile there are other
pages which have the content that should be displayed in the space page.
Example of the structure that I have:
Space
Space(with no content/xobject)
Terminal Page
Terminal Page
.
.
.
Page with space´s content/xobject
Space(with no content/object)
Terminal Page
Terminal Page
.
.
.
Page with space´s content/object)
.
.
.
So my question is how do I have to create the space´s page if I want to
associate an XObject for the content representation? I used resolver for
both spaces and document, so I think that the references are handled
correctly...
Sorry for the long post and thank you for your answers.
Giordano.
Hello,
I would remove the left panel but I don't know how to access the
dashboard without it.
An idea ?
Thank you.
Signature mails
_________________________________________________
Bruno Joffredo
Ecole Centrale de Nantes
Centre de Ressources Informatiques - Bur. D019
1 rue de la Noë
BP 92101
F-44321 Nantes cedex 3
Tél. 02.40.37.68.06
Mail : bruno.joffredo(a)ec-nantes.fr <mailto:bruno.joffredo@ec-nantes.fr>
_________________________________________________
In the 7.4 release, the Mocca Calendar extension and the calendar view of the
Meeting Application extension use different first days of the week. I'd like
to have our site consistently use the same first day (Sunday). Can anyone
give me a pointer on how to do this?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Mocca-Calendar-and-Meeting-Calendar-have-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
I ran a couple of installs the last two nights from the stable repository as indicated here: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT
Everything goes fine but I notice that the version of Xwiki installed is the recent 8.0 Milestone 1. This seems to be counter to the description/instructions. Have I misunderstood something or made an error? How can I install the latest Xwiki Version 7. Thanks for taking the time.
Regards,
Jesse
Hello,
I work in a French engineering school.
I would like to install xwiki 7.4 for my team.
I encounter a problem whith accents :
When I create a page whose title contains accents (or French special
characters), childs documents are not displayed in the *Document Tree
macro*.
However, it appears in the wiki Page Index, but not in the tree.
I followed unsuccessfully the documentation for administrators 'XWiki
Character Encoding Settings'.
Is there something I did wrong ? Is it a bug ?
Thanks for your help,
Signature mails
_________________________________________________
Bruno Joffredo
Ecole Centrale de Nantes
Centre de Ressources Informatiques - Bur. D019
1 rue de la Noë
BP 92101
F-44321 Nantes cedex 3
_________________________________________________
Hi,
My project want me to restrict import/export function to authorized users (for instance a group). Is that possible? Indeed, it seems that having "view" rights automatically enable import/export rights. Thank you.
--
Mon adresse THALES est antoine-b.tran(a)thalesgroup.com. +33 (0)5 62 88 84 40
Hello,
I have installed the package xwiki-enterprise-tomecat8-mysql without
errors (on Debian Jessie).
But when i launch XWiki through the URL
http://my-server.mydomain.fr:8080/xwiki, the page displays those infos :
Etat HTTP 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 0:
Failed to extract Entity Resource Reference from URL
[http://my-server.mydomain.fr:8080/xwiki/bin/view/Main/]
type Rapport d''exception
message com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to
extract Entity Resource Reference from URL
[http://my-server.mydomain.fr:8080/xwiki/bin/view/Main/]
description Le serveur a rencontré une erreur interne qui l''a empêché
de satisfaire la requête.
exception
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error
number 11007 in 0: Failed to extract Entity Resource Reference from URL
[http://my-server.mydomain.fr:8080/xwiki/bin/view/Main/]
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
cause mère
com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract
Entity Resource Reference from URL
[http://my-server.mydomain.fr:8080/xwiki/bin/view/Main/]
com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:807)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:751)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:229)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
cause mère
java.lang.RuntimeException: Failed to locate wiki descriptor for alias
[my-server.mydomain.fr]
org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:80)
org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61)
org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.extract(DomainWikiReferenceExtractor.java:47)
org.xwiki.url.internal.standard.entity.BinEntityResourceReferenceResolver.extractWikiReference(BinEntityResourceReferenceResolver.java:51)
org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:92)
org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:51)
org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:61)
org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:47)
org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:64)
org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:43)
org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:93)
org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:48)
com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:804)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:751)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:229)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
etc...
Do you have an idea of the problem?
Bruno
It looks like the debian repository http://maven.xwiki.org/stable/ is corrupted. Any indication when it will be back?
Claude Durocher | Conseiller en architecture et en logiciel libre | Centre d'expertise en logiciel libre
Centre de services partagés du Québec | 150, boulevard René-Lévesque Est, 6e étage, Québec (Québec) G1R 2B2
Tél. : 418 717-9656
claude.durocher(a)cspq.gouv.qc.ca | www.cspq.gouv.qc.ca
Ce message est confidentiel et est à l'usage exclusif du destinataire identifié ci-dessus. Toute autre personne est, par les présentes, avisée qu'il lui est strictement interdit de le diffuser, de le distribuer, d'en dévoiler le contenu ou de le reproduire. Si vous avez reçu cette communication par erreur, veuillez en informer l'expéditeur par courrier électronique immédiatement et détruire l'original de ce message ainsi que toute copie.
Hi,
I would like to get access to XWikiContext class for getting properties from xwiki sheet. And now it isn't possible to get them without platform-old core.
So I added jar files with all of these dependencies to my project but I’m not sure probably that was wrong way and there are other new classes for getting access to context in new version...
Is it possible to write hole extension only on java without creating xwiki sheets and classes? So I mean that, now I create xwiki configuration class and configurable class and also sheet with document and sheet dependencies. But maybe there is another way to write all of these only on java?
And another questions: I read topic about Wysiwyg editor but it contains not enough information. Is there more detailed instruction for creating my own menu items and bind one with some logic for example calling script through $services.myScriptService.myScriptMethod()?
Thank you in advance
Thank you in advance for any answers!
Best regards,
Maxim Birukov
Java developer
# +38-095-234-13-34
Skype: maksim.b
E-mail: m <mailto:i.schmidt@comparus.de>.birukov(a)comparus.de <mailto:i.schmidt@comparus.de>
www.comparus.de <http://www.comparus.de/>
DISCLAIMER: Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. Danke.
DISCLAIMER: This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Thank You.
Hi,
our freshly configured XWiki (7.4, running open SUSE 13.1 with Tomcat
8.0.30) works fine through LDAP but fails as soon as we switch to ldaps.
The current relevant settings for LDAP authentication in xwiki.cfg are:
---------------
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
xwiki.authentication.ldap=1
xwiki.authentication.ldap.server=OUR_LDAP_SERVER
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.trylocal=1
xwiki.authentication.ldap.ssl=0
xwiki.authentication.ldap.ssl.secure_provider=com.sun.net.ssl.internal.ssl.Provider
xwiki.authentication.ldap.validate_password=0
xwiki.authentication.ldap.password_field=userPassword
---------------
As soon as we change the settings to use SSL secured LDAP...
---------------
xwiki.authentication.ldap.port=636
xwiki.authentication.ldap.ssl=1
---------------
...authentication fails and we get the error message in catalina.out
(debugging enabled according to
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HEnableL…)
that you can find at the end of this mail. Connecting with the standard
LDAP tools (ldapsearch) via SSL works fine.
However: We haven't configured a keystore, as we are not in possession
ot the server's certificate. ldapsearch only connects correctly with
TLS_REQCERT=never. Could that be the problem with XWiki, too? If yes,
is there a way to configure XWiki to ignore the certificate completely?
Cheers
Frank
catalina.out messages related to one failed LDAP authentication
===============================================================
[...]
2016-02-09 10:37:52,261
[https://XXXX:8443/xwiki/bin/loginsubmit/XWiki/XWikiLogin] TRACE
u.i.L.XWikiLDAPAuthServiceImpl - Starting LDAP authentication
2016-02-09 10:37:52,262
[https://XXXX:8443/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG
u.i.L.XWikiLDAPAuthServiceImpl - The provided user is null. We don't try
to authenticate, it probably means the user is in non logged mode.
2016-02-09 10:37:52,265
[https://XXXX:8443/xwiki/bin/loginsubmit/XWiki/XWikiLogin] TRACE
u.i.L.XWikiLDAPAuthServiceImpl - Starting LDAP authentication
2016-02-09 10:37:52,333
[https://XXXX:8443/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG
c.x.x.p.l.XWikiLDAPConfig - ldap_group_classes: [groupofnames,
groupwisedistributionlist, dynamicgroup, dynamicgroupaux,
groupofuniquenames, posixgroup, apple-group, group]
2016-02-09 10:37:52,336
[https://XXXX:8443/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG
c.x.x.p.l.XWikiLDAPConfig - ldap_group_memberfields: [member,
memberuid, uniquemember]
2016-02-09 10:37:52,355
[https://XXXX:8443/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG
c.x.x.p.l.XWikiLDAPConnection - Connecting to LDAP using SSL
2016-02-09 10:37:52,533
[https://XXXX:8443/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG
c.x.x.p.l.XWikiLDAPConnection - Connection to LDAP server
[ad.dkfz-heidelberg.de:389]
2016-02-09 10:37:52,567
[https://XXXX:8443/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG
c.x.x.p.l.XWikiLDAPConnection - Binding to LDAP server with credentials
login=[XXXX]
2016-02-09 10:37:52,777
[https://XXXX:8443/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG
u.i.L.XWikiLDAPAuthServiceImpl - Local LDAP authentication failed.
com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5: LDAP
bind failed with LDAPException.
at
com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:196)
~[xwiki-platform-ldap-authenticator-7.4.jar:na]
at
com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:122)
~[xwiki-platform-ldap-authenticator-7.4.jar:na]
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticateInContext(XWikiLDAPAuthServiceImpl.java:306)
[xwiki-platform-ldap-authenticator-7.4.jar:na]
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:182)
[xwiki-platform-ldap-authenticator-7.4.jar:na]
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:129)
[xwiki-platform-ldap-authenticator-7.4.jar:na]
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:272)
[xwiki-platform-legacy-oldcore-7.4.jar:na]
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:192)
[xwiki-platform-legacy-oldcore-7.4.jar:na]
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:174)
[xwiki-platform-legacy-oldcore-7.4.jar:na]
at
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:239)
[xwiki-platform-legacy-oldcore-7.4.jar:na]
at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3565)
[xwiki-platform-legacy-oldcore-7.4.jar:na]
at
org.xwiki.security.authorization.internal.XWikiCachingRightService.authenticateUser(XWikiCachingRightService.java:241)
[xwiki-platform-security-bridge-7.4.jar:na]
at
org.xwiki.security.authorization.internal.XWikiCachingRightService.checkAccess(XWikiCachingRightService.java:271)
[xwiki-platform-security-bridge-7.4.jar:na]
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3583)
[xwiki-platform-legacy-oldcore-7.4.jar:na]
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4657)
[xwiki-platform-legacy-oldcore-7.4.jar:na]
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:339)
[xwiki-platform-legacy-oldcore-7.4.jar:na]
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
[xwiki-platform-legacy-oldcore-7.4.jar:na]
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
[struts-core-1.3.10.jar:1.3.10]
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
[struts-core-1.3.10.jar:1.3.10]
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
[struts-core-1.3.10.jar:1.3.10]
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
[struts-core-1.3.10.jar:1.3.10]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
[servlet-api.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
[servlet-api.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
[xwiki-platform-legacy-oldcore-7.4.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
[xwiki-platform-wysiwyg-server-7.4.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
[tomcat-websocket.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
[xwiki-platform-container-servlet-7.4.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
[xwiki-platform-webdav-server-7.4.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
[xwiki-platform-container-servlet-7.4.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
[xwiki-platform-container-servlet-7.4.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137) [xwiki-platform-resource-servlet-7.4.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
[catalina.jar:8.0.30]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
[catalina.jar:8.0.30]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
[catalina.jar:8.0.30]
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
[catalina.jar:8.0.30]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
[catalina.jar:8.0.30]
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
[tomcat-coyote.jar:8.0.30]
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
[tomcat-coyote.jar:8.0.30]
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
[tomcat-coyote.jar:8.0.30]
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
[tomcat-coyote.jar:8.0.30]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[na:1.7.0_95]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[na:1.7.0_95]
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[tomcat-util.jar:8.0.30]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_95]
Caused by: com.novell.ldap.LDAPException: Connect Error
at com.novell.ldap.Connection.writeMessage(Unknown Source)
~[jldap-4.3.jar:na]
at com.novell.ldap.Connection.writeMessage(Unknown Source)
~[jldap-4.3.jar:na]
at com.novell.ldap.Message.sendMessage(Unknown Source) ~[jldap-4.3.jar:na]
at com.novell.ldap.MessageAgent.sendMessage(Unknown Source)
~[jldap-4.3.jar:na]
at com.novell.ldap.LDAPConnection.sendRequestToServer(Unknown Source)
~[jldap-4.3.jar:na]
at com.novell.ldap.LDAPConnection.bind(Unknown Source) ~[jldap-4.3.jar:na]
at com.novell.ldap.LDAPConnection.bind(Unknown Source) ~[jldap-4.3.jar:na]
at com.novell.ldap.LDAPConnection.bind(Unknown Source) ~[jldap-4.3.jar:na]
at
com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.bind(XWikiLDAPConnection.java:230)
~[xwiki-platform-ldap-authenticator-7.4.jar:na]
at
com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:192)
~[xwiki-platform-ldap-authenticator-7.4.jar:na]
... 63 common frames omitted
Caused by: javax.net.ssl.SSLException: Connection has been shutdown:
javax.net.ssl.SSLException: java.net.SocketException: Connection reset
at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1508)
~[na:1.7.0_95]
at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1520)
~[na:1.7.0_95]
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:70)
~[na:1.7.0_95]
... 73 common frames omitted
Caused by: javax.net.ssl.SSLException: java.net.SocketException:
Connection reset
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) ~[na:1.7.0_95]
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1916)
~[na:1.7.0_95]
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1874)
~[na:1.7.0_95]
at
sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1838)
~[na:1.7.0_95]
at
sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1783)
~[na:1.7.0_95]
at sun.security.ssl.AppInputStream.read(AppInputStream.java:113)
~[na:1.7.0_95]
at sun.security.ssl.AppInputStream.read(AppInputStream.java:69)
~[na:1.7.0_95]
at com.novell.ldap.asn1.ASN1Identifier.<init>(Unknown Source)
~[jldap-4.3.jar:na]
at com.novell.ldap.Connection$ReaderThread.run(Unknown Source)
~[jldap-4.3.jar:na]
... 1 common frames omitted
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:196)
~[na:1.7.0_95]
at java.net.SocketInputStream.read(SocketInputStream.java:122)
~[na:1.7.0_95]
at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
~[na:1.7.0_95]
at sun.security.ssl.InputRecord.read(InputRecord.java:480) ~[na:1.7.0_95]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:946)
~[na:1.7.0_95]
at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1344)
~[na:1.7.0_95]
at
sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:901)
~[na:1.7.0_95]
at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
~[na:1.7.0_95]
... 4 common frames omitted
2016-02-09 10:37:52,786
[https://XXXX:8443/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG
u.i.L.XWikiLDAPAuthServiceImpl - Trying authentication against XWiki DB
2016-02-09 10:37:52,870
[https://XXXX:8443/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG
u.i.L.XWikiLDAPAuthServiceImpl - LDAP authentication failed for user [XXXX]
[...]
Hi xwikiers,
For the needs of a coworking I started an application to create and
manage invoices. You can find it on
http://extensions.xwiki.org/xwiki/bin/view/Extension/Invoices. It's
starting to work well so here is the advertisement.
The main need was to generate invoices and reimbursements (most of the
time when we make some mistake) for members of the coworking. So you
can create new invoices, indicate a user, a product and a price and
the rest is automatically found in the user profile. It's also
possible to create invoices from scratch for external peoples.
Also each time an invoice is created a listener send it by mail to the
mail indicated in the invoice attached as PDF.
We also automatically generate invoices for all coworkers so an Script
Service is provided that we use in a Scheduler (this Scheduler was too
specific to end up in the application itself).
Note: the model and the displayer support several products per invoice
but I was too lazy to handle the edit UI to add new products since I
don't need it in my day to day use case. PR on this (and other parts)
are of course more than welcome :)
On the technical side an important part of the application (script
services, listeners and model) would have been a lot cleaner and
easier to maintain in a JAR extension but this application is also an
experiment for me to see how to write a complex application in full
wiki.
--
Thomas Mortagne
I have Syntax Highlighting Application that "Provides Syntax Highlighting"
(uses Highlight.JS).
I want to install Highlight Macro(uses Highlight.JS with the same syntax),
because there is a right access problem with either Syntax Highlighting
Application or Highlight.JS. idk
What will happen? Do i have to delete Syntax Highlighting Application first?
I tried to delete, but after that Highlight JS Macro(which Highlight Macro
extension uses too) still remain.
--
View this message in context: http://xwiki.475771.n2.nabble.com/What-will-happen-if-I-install-extension-w…
Sent from the XWiki- Users mailing list archive at Nabble.com.
The XWiki development team is proud to announce the availability of XWiki
8.0 Milestone 1.
This is the first milestone release of the 8.x cycle. With this occasion we
deprecated and retired multiple projects like Colibri Skin, Color Themes,
old XWiki 1.0 syntax, etc. We also continued to polish our Nested Pages
feature introduced in 7.2, by adding improvements such as: asynchronous
copy and rename page actions, improved location picker for simple users and
the ability to omit "WebHome" in wiki links syntax.
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/ReleaseNotesXWiki80M1
The following people have contributed code to this release (sorted
alphabetically):
Alexandru Cotiugă
Denis Gervalle
Ecaterina Moraru (Valica)
Eduard Moraru
Guillaume Delhumeau
Marius Dumitru Florea
Sergiu Dumitriu
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team
The XWiki development team is proud to announce the availability of XWiki 7.4.1.
This is a bug fix release including some important improvements such
as: asynchronous copy and rename page actions, improved location
picker when copying and renaming, ability to omit "WebHome" in wiki
links and images syntaxes.
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/ReleaseNotesXWiki741
The following people have contributed code to this release (sorted
alphabetically):
acotiuga
Denis Gervalle
Eduard Moraru
Guillaume Delhumeau
Marius Dumitru Florea
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team
Hi,
can someone explain (or provide links to documentation) how XWiki's LDAP
authentication using "xwiki.authentication.ldap.ldap_user_search_fmt"
works? I understand, that XWiki binds using
xwiki.authentication.ldap.bind_DN and
xwiki.authentication.ldap.bind_pass (which are configured as static
user), but how does it then continue to check the user's password
against the one in the LDAP/DA?
In the configuration examples I found, this parameter is usually not
used, however in the old installation I'm supposed to migrate it is. I
need to find out how that works, to decide if we should go on with it or
no. I've had a look at some of the Java libraries
(XWikiLDAPAuthServiceImpl.java and XWikiLDAPUtils.java but they didn't
help me very much (not being very proficient in Java). Any hint or link
to some more in-depth documentation (deeper than
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication but
above sourcecode level) is highly appreciated.
Cheers
Frank
Hello,
Recently we've been discussing about a situation that creates some
inconveniences.
What happens in short:
* Have multiple subwikis, each with different extensions
* Try to copy one content page from one wiki to another
* When you are using the Copy Dialog - you can see pages from other
subwikis. In that list the translations are broken.
* It's about the applications homepages that uses translations keys for
their titles.
You will get something similar to http://screencast.com/t/8aHY7dca
There are problems with translations visibility between subwikis.
Check:
* ideas
* filemanager
* xpoll
* notes
You can get more details from:
* http://jira.xwiki.org/browse/NOTES-3
* http://jira.xwiki.org/browse/XDOODLE-32
* http://jira.xwiki.org/browse/IDEAS-63
The current solution (see
https://github.com/xwiki-contrib/application-ideas/pull/16) creates a few
glitches with installing that app on subwikis and programming rights.
What we need is to define a rule that will be acceptable for the entire XE.
What are your thoughts on this?
Regards,
*Iustin*
I have Syntax Highlighting Application that "Provides Syntax Highlighting"
(uses Highlight.JS).
I want to install Highlight Macro(uses Highlight.JS with the same syntax),
because there is a right access problem with either Syntax Highlighting
Application or Highlight.JS. idk
What will happen? Do i have to delete Syntax Highlighting Application first?
I tried to delete, but after that Highlight JS Macro(which Highlight Macro
extension uses too) still remain.
--
View this message in context: http://xwiki.475771.n2.nabble.com/What-will-happen-if-I-install-extension-w…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi. I've installed Syntax Highlighting extension, but it highlights code only
for users which are in XWikiAdminGroup(i.e. with all rights and
permissions). For ordinary users the extension is available, but not
highlights code.
What is the reason?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Syntax-Highlighting-extension-tp7597773.h…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
We have pages having ONE UIExtension objects of XWiki.UIExtensionClass.
Using as
$services.uix.getExtensions('dashboard.mainMenu.items',{'sortByParameter' : 'displayorder'})
With a #foreach loop we can access all the parameters. (and other extension properties)
But is it possible to get the page information (Name, Title, Creator, Rights)
The use case is that we want a dynamic menu based on that information?
The following did not give the desired result:
#set($dashboardMenuItems = $services.uix.getExtensions('dashboard.mainMenu.items',{'sortByParameter' : 'displayorder'}) )
#foreach($dashboardMenuItem in $dashboardMenuItems)
#set($dashboardMenuItemDocument = $xwiki.getDocument($dashboardMenuItem))
#end
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
I am testing the current XWiki Enterprise 7.4 on Manjaro Linux as local
installation with default wiki content.
To test scripting, I wrote a few pages with a class and some objects.
After installing the "Scripting Documentation Application" extension,
nothing is running normally any more. All panels on the left and right
hand edge show the error message in red:
Failed to execute the [html] macro. Click on this message for details.
Clicking on that, shows the following stack trace.
Stopping and restarting didn't help anything.
The only way to repair this situation was to completely uninstall und
reinstall XWiki Enterprise. Following the same steps led to the same
errnoneous effect.
Does anyone have an idea?
Thank you in advance
Matthias
> java.lang.IllegalStateException: zip file closed
> at java.util.zip.ZipFile.ensureOpen(ZipFile.java:669)
> at java.util.zip.ZipFile.getEntry(ZipFile.java:309)
> at java.util.jar.JarFile.getEntry(JarFile.java:240)
> at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:128)
> at java.util.jar.JarFile.getJarEntry(JarFile.java:223)
> at org.xwiki.classloader.internal.ResourceLoader$JarInfo.getResource(ResourceLoader.java:428)
> at org.xwiki.classloader.internal.ResourceLoader.findResource(ResourceLoader.java:364)
> at org.xwiki.classloader.internal.ResourceLoader.findResource(ResourceLoader.java:287)
> at org.xwiki.classloader.URIClassLoader$URIResourceFinder.findResource(URIClassLoader.java:464)
> at org.xwiki.classloader.URIClassLoader$2.run(URIClassLoader.java:274)
> at org.xwiki.classloader.URIClassLoader$2.run(URIClassLoader.java:270)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.xwiki.classloader.URIClassLoader.findResource(URIClassLoader.java:269)
> at java.lang.ClassLoader.getResource(ClassLoader.java:1093)
> at java.net.URLClassLoader.getResourceAsStream(URLClassLoader.java:232)
> at org.xwiki.classloader.xwiki.internal.ContextNamespaceURLClassLoader.getResourceAsStream(ContextNamespaceURLClassLoader.java:128)
> at org.apache.xerces.parsers.SecuritySupport$6.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.xerces.parsers.SecuritySupport.getResourceAsStream(Unknown Source)
> at org.apache.xerces.parsers.ObjectFactory.findJarServiceProvider(Unknown Source)
> at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
> at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
> at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
> at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
> at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
> at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
> at org.xwiki.xml.internal.html.DefaultHTMLCleaner.getAvailableDocumentBuilder(DefaultHTMLCleaner.java:137)
> at org.xwiki.xml.internal.html.DefaultHTMLCleaner.clean(DefaultHTMLCleaner.java:183)
> at org.xwiki.rendering.internal.macro.html.HTMLMacro.cleanHTML(HTMLMacro.java:189)
> at org.xwiki.rendering.internal.macro.html.HTMLMacro.execute(HTMLMacro.java:159)
> at org.xwiki.rendering.internal.macro.html.HTMLMacro.execute(HTMLMacro.java:73)
> at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269)
> at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
> at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
> at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:253)
> at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:126)
> at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:56)
> at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
> at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
> at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113)
> at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
> at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
> at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
> at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1164)
> at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1127)
> at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1179)
> at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:692)
> at sun.reflect.GeneratedMethodAccessor406.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
> at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
> at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
> at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
> at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
> at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
> at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
> at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
> at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
> at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> at org.xwiki.velocity.introspection.TryCatchDirective.render(TryCatchDirective.java:72)
> at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
> at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
> at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
> at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876)
> at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854)
> at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821)
> at sun.reflect.GeneratedMethodAccessor192.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
> at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
> at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
> at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
> at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
> at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
> at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
> at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
> at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
> at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
> at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
> at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876)
> at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854)
> at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821)
> at sun.reflect.GeneratedMethodAccessor192.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
> at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
> at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
> at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
> at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
> at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
> at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
> at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
> at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
> at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
> at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
> at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
> at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
> at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
> at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
> at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
> at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
> at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876)
> at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:180)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:431)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
> at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
> at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
> at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
> at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
> at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
> at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
> at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
> at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
> at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
> at org.eclipse.jetty.server.Server.handle(Server.java:499)
> at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
> at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
> at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
> at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
> at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
> at java.lang.Thread.run(Thread.java:745)
Hi,
when working through the Distrbution Wizard of our freshly installed
XWiki Enterprise 7.4 (WEB installation), at step 1 (User Interface) we
are faced with the following message:
"
We couldn't find any extension with id
'org.xwiki.enterprise:xwiki-enterprise-ui-mainwiki' and version '7.4'.
Make sure you have the right extension repositories configured.
"
The complete creenshot can be found at http://imgur.com/Uc2F9pr.
I've copied the file
"org.xwiki.enterprise:xwiki-enterprise-ui-mainwiki-7.4.xar" (from
http://extensions.xwiki.org/xwiki/rest/repository/extensions/org.xwiki.ente…")
into WEB-INF/extensions to no avail.
The installation instructions doesn't mention any required step
regarding the configuration of extensions or extension respositories or
where these respositories are. Therefore I'm a little bit at a loss here.
Our system is running on OpenSuSE 13.1 with PostgreSQL 9.2.14 (from
repo), Apache Tomcat 8.0.30 (manually installed) and XWiki Enterprise
7.4 (WEB, manually installed).
Any pointer to fix this problem are appreciated.
Cheers
Frank
Hi,
The last half year we have used a free wiki from myXWiki.org, thanks a lot.
Now we have decides to have a dedicated XWiki. Is it possible to migrate the local users in that myXWiki instance to the new wiki.
I tried to export one user as XAR and import it, but it does not convert to a user-object
The same problem with a macro page with the XWikiMacro and XWikiMacroParameters objects.
It results in empty wiki pages in the new wiki
myXWiki = 7.3
The new wiki is on 6.4.x
So maybe a downgrade export/import not possible?
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
Is there a way to use the PDF Viewer macro and display the PDF at a particular heading within the document? (Akin to the header linking within a page link#Hheader)?
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/>
I'm trying to setup an information page and wanted to see if someone has any ideas on how I can do this more easily. Since this is for several annual event information pages, doing the maintenance post-event to move/ delete 20+ pages each time is not a feasible solution.
Here's my idea for a 'better way'
I have a single Agenda page which shows the overall agenda for the event. Each session is linked to a specific information page for that session. (This is already in place).
All of these info pages are essentially PDF's which I'm using the PDFViewer macro to display (primarily to resolve user-browser handling of PDFs differences). The pages also have handouts attached as documents - and displayed in-page using the AttachmentViewer macro.
This is all working, but I would like to see if on the Agenda page, the link could go to a SINGLE PDF Viewer page that would display the appropriate PDF for the link clicked. I'm likely going to move all of the attachments to a single page anyway, so that's not particularly an issue. I don't know if the link on the agenda page can act like a form submission and configure the PDFViewer on-click to display different PDF's.
Your thoughts?
Paul Pinkerton
KnowledgeNow Project/ ACLCO
Hi,
I have an object on a page. Once in edit mode, I want certain properties of the object not to be editable. This in itself is not an issue since I can display the value using $object.getValue(‘propertyname’). I have however a custom displayer in place for this property which is activated using $doc.display($propertyname.getName()). Is it possible to use this displayer in edit mode?
With kind regards,
Peter
Is it possible to call a java component from a JavaScriptExtension? like
this:
In javascript:
require(['jquery'], function ($) {
$('#ToJava').click(function(){
var returnValue = $services.mycomponent.mymethod( someNumber );
// use return value
});
});
In java:
public int mymethod(int num){
return num +1;
}
I know that I can do the ajax round trip and invoke the method through
velocity:
http://extensions.xwiki.org/xwiki/bin/view/Extension/AJAX+example
-- just wondering if there is a way to shortcut this process by avoiding
velocity and only working in js?
or is my logic flawed?
--
View this message in context: http://xwiki.475771.n2.nabble.com/calling-a-java-component-from-JavaScriptE…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi all, XWiki newbie here, just setting up XWiki for my company.
In addition to the Main wiki, I have created 2 other wikis, say “Development” and “Support”. Currently I can only switch among the wikis via the Wiki Index (in fact, the other wikis do appear in the breadcrumb widget at the top, but not when in the Main wiki).
I would like to put shortcuts to each wiki in the left panel, ideally with an icon and the wiki name. However, I have not found an out-of-the-box way to do this. Can someone point me in the right direction?
Thank you.
Regards,
Cris
What is the best way to get JSON data from a java component. In my java
component I'm compiling JSONObjects and JSONArrays, I would like to return
this data to my velocity script in JSON format, is this possible?
something like:
{{velocity wiki="false"}}
#if("$!request.outputSyntax" != '')
$response.setContentType('application/json')
#end
#set($map = [])
#set ($rightIN = ${request.rightIN})
#set ($spacenameIN = ${request.spacenameIN})
#set($disgard =
$map.add($services.g_pagebuilder.userAccessFindPages($spacenameIN,$rightIN
)))
$jsontool.serialize($map)
{{/velocity}}
and the Java:
public JSONObject javacomp(String spacenameIN, String rightIN ){
JSONObject obj = new JSONObject();
try {
obj.put("spacenameIN ", spacenameIN );
obj.put("rightIN", rightIN );
} catch (JSONException e) {
e.printStackTrace();
}
return obj;
}
At the end I would like to access this json object as a data return from an
ajax call. Is this possible?
Thanks
Gerrie
--
View this message in context: http://xwiki.475771.n2.nabble.com/Returning-JSON-data-from-a-java-component…
Sent from the XWiki- Users mailing list archive at Nabble.com.
In 7.4, I've created an app within minutes. One of the properties in the app
is a computed field that returns a list of users that meet some specific
criteria. If I leave the custom display field for the property blank, the
contents are displayed as follows:
[XWiki.john_smith, XWiki.mark_sack]
What I would really like to do is display them as hyperlinks to the
corresponding user page. I thought that I could use a script in the custom
display field to accomplish this. Reading the following note
http://www.xwiki.org/xwiki/bin/view/FAQ/Which+variables+I+can+use+in+%22Cus…
there are some variables available. It looks like the $value variable should
contain the computed list of users. But if I put a script like the following
into the custom display field:
{{velocity}}
$name
$prefix
$object
$type
$value
{{/velocity}}
the result is as follows
Usuarios
Secti.Admin.Setores.Code.SetoresClass_0_
com.xpn.xwiki.api.Object@543f3466
view
$value
The first four values are correct as far as I can tell. But the $value
variable does not appear to be populated. Does anyone have a suggestion as
to how I can achieve my desired result with the hyperlinks?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Custom-display-for-computed-field-which-i…
Sent from the XWiki- Users mailing list archive at Nabble.com.
With XWiki 7.4 I have a site setup in Brazilian Portuguese (pt_BR). I edited
the localization settings as follows:
Multilingual - Yes
Supported languages - pt_BR, en
Default language - pt_BR
After saving the settings, the site looks like it switches to the pt local
(European Portuguese?). I can tell this because the pt local is much more
sparsely translated. On the drop down menu on the right, I now see a
Languages item with Portuguese and English options and selecting English
switches the site to English.
I go back to the drop down menu and select languages. But now I only see
English - Portuguese is not listed as an available language.
I tried to repeat the above with a fresh install. This time I first set the
local to pt (no multilingual support) and verified that the site is switch
to pt. Then I set the multilingual support to yes and added the en local (pt
still the default). Now the site switches immediately to English and the
only language available on the drop down menu on the right is English.
I'd appreciate some help in setting up my site for multilingual support with
both English and Brazilian Portuguese. Is there something I'm doing wrong?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Problems-setting-up-multilingual-site-tp7…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Good day.
I'm trying to write a java component to set rights to a space and the space
children. Normally, the user would set this on the space when clicking on
administer page>users and groups>Rights: page and children, where the user
can set access rights for a group to effect the space and its children.
I'm trying to achieve this with a java component and currently I'm attaching
an XWikiRights object with the specified group and rights to the
<space>.WebHome page. However, this only effects the one page and not the
children, also view rights only leaves comment and page creating rights
which is not desired. Am I understanding the rights objects wrong? How do I
achieve this in Java, currently I have:
XWikiDocument doc = xwiki.getDocument(docref, xcontext); //
referance to the <space>.WebHome
DocumentReference classdoc =
createDocumentReference(xwikiName,"XWiki","XWikiRights",false);
BaseObject DSErightsobj = doc.newXObject(classdoc, xcontext);
DSErightsobj.set("groups", DSEname, xcontext);
DSErightsobj.set("users", "", xcontext);
DSErightsobj.set("levels", "view", xcontext); // space right
DSErightsobj.set("allow", 1, xcontext);
xwiki.saveDocument(doc, xcontext);
--
View this message in context: http://xwiki.475771.n2.nabble.com/XWikiRights-for-groups-on-page-and-childr…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Thxs for this log.
I tested with wget (through same proxy of my browser) and I
obtain a xxxxxxxxx
=> It's working well with wget too (without option)
I tested on my developpment server on ou intranet (through
our proxy): $xwiki.getURLContent('https://set7z18fgf.execute-api.us-east-1.amazonaws.com/prod/?route=getClanD…')
working.
Do you need my log to make it working on myxwiki.org? If yes
which one?
> The issue is
> with the HTTPS protocol used in the URL.
> In the logs of myxwiki.org there’s:
> Failed to retrieve content from
> [https://set7z18fgf.execute-api.us-east-1.amazonaws.com/prod/?route=getClanD…] javax.net.ssl.SSLHandshakeException:
> Received fatal alert: handshake_failure
> At this point I don’t know
> what’s the problem. We’re using httpclient in
> getURLContent() which supports HTTP over SSL out of
the
> box.
> Thanks-Vincent
>
> >
> Thxs for your help.
> >
> > Pascal B
>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Thxs for this log.
I tested with wget (through same proxy of my browser) and I obtain a "500 Internal Server Error" (I tested with SSLv2, SSLv3, TLSv1, TLSv1_1 and TLSv1_2 protocol) :-/
I tested on my developpment server on ou intranet (through our proxy): $xwiki.getURLContent('https://set7z18fgf.execute-api.us-east-1.amazonaws.com/prod/?route=getClanD…') working.
Do you need my log to make it working on myxwiki.org? If yes which one?
> The issue is
> with the HTTPS protocol used in the URL.
> In the logs of myxwiki.org there’s:
> Failed to retrieve content from
> [https://set7z18fgf.execute-api.us-east-1.amazonaws.com/prod/?route=getClanD…] javax.net.ssl.SSLHandshakeException:
> Received fatal alert: handshake_failure
> At this point I don’t know
> what’s the problem. We’re using httpclient in
> getURLContent() which supports HTTP over SSL out of the
> box.
> Thanks-Vincent
>
> >
> Thxs for your help.
> >
> > Pascal B
>
Hi users,
I am wondering on how to create an XClass from java, and bind it to a
class-sheet to be used to represent several objects as XWiki pages. How can
I achieve that in a way that allow me to incrementaly update the object
every time a modification is performed?
Thanks for your help,
Giordano.
Hi,
(disclaimer: new user here)
I updated from 7.4RC1 to 7.4 (Debian packages, Tomcat7, MySQL). When I
click the navigation arrows in the Main wiki, they come up empty. If I
create a new wiki, it works fine.
What could have happened here?
Appreciate any help, thank you!
Regards,
Rodrigo
> Anyway, how do you found default alias of table name
> then?
>
> By example the alias "act" in my hql string here
> "act.eventId" (I found it by chance in error
> log)
>
> #set($results=
> $xwiki.activitystream.searchEvents("act.eventId in
> ($ListIn)", false, 0, 0))
>
> Here i suppose? https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
>
> Yes. The API is not optimal, I
> agree, and it was not really improved along the years.
ha ha i never said that!
If alias and field name, usable in hql query, are documented it doesn't matter :-)
Thxs for ur help
I am migrating the xwiki installation from 3.5 to 6.4. I followed the
upgradation steps and found the best way to upgrade is to install 6.4 war
file create an empty db and and hit the xwiki url which would create the
db schema and then launches the distribution wizard which is used to
install 6.4 ui and xar After this login as admin and import the 3.5 xar
file in new installation which I exported from existing installation The
important thing to note is I had to manually select the required
space/pages customized panels themes and users specific to my project from
older xar Please let know whether this the best way or any other way to
upgrade my xwiki
Awaiting your response on this..
Regards
Gaurav
Thxs => useful links bookmarked :-)
Anyway, how do you found default alias of table name then?
By example the alias "act" in my hql string here "act.eventId" (I found it by chance in error log)
#set($results= $xwiki.activitystream.searchEvents("act.eventId in ($ListIn)", false, 0, 0))
Here i suppose? https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
--------------------------------------------
En date de : Mer 20.1.16, Eduard Moraru <enygma2002(a)gmail.com> a écrit :
Objet: Re: [xwiki-users] Fw : Fw : Re: Fw : Re: Fw : Re: How can I get event object through a form
À: "Pascal BASTIEN" <pbasnews-xwiki(a)yahoo.fr>, "XWiki Users" <users(a)xwiki.org>
Date: Mercredi 20 janvier 2016, 16h36
Hi,
This is the activitystream hibernate
mapping where you can see the exact property names:
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
...and this is the
regular XWiki model mapping (corresponding to the other
tables observed in http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema
)
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
Remember that, when
writing HQL, you need to look at the hibernate mapping, not
just the SQL database schema (which is useful, but can be
misleading).
Thanks,
Eduard
We are using a SharePoint site to house a document library. I'd like to move this into our xwiki site, but haven't figured out how to configure pages in a way that would make this viable.
We use lists in SP - so people can add documents and when they upload them, they need to add in fields such as a description of the document and notes, usually related to when the document was current as of. The site auto adds in who uploaded it.
While I can add pages that use the Attachment macro and that makes it easy to display documents, it’s the extra fields that make the information more valuable - and that's the functionality I'd be interested in.
One thought I had was to use a form which would then populate a table, but not sure if that's a truly workable solution.
Thoughts or ideas would be welcomed!
Paul Pinkerton
KnowledgeNow Project/ ACLCO
Hi,
that's what I get, when browsing to our freshly installed XWiki instance
"HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in
0: Failed to extract Entity Resource Reference from URL"
The error appears, after the "XWiki Loading..." status has reached ca
50%. The complete stacktrace can be found at http://pastebin.com/SnuA0AY8.
I've found quite some references to the error "Error number 11007", but
most of them referred to the PostgreSQL JDBC driver not being installed.
This is not the case on our system.
One reference (http://jira.xwiki.org/browse/XWIKI-11477) seems to
exactly match our error, but unfortunately none of the explanations
given in this ticket are understandable for me.
Our system is running on OpenSuSE 13.1 with PostgreSQL 9.2.14 (from
repo), Apache Tomcat 8.0.30 (manually installed) and XWiki Enterprise
7.4 (WEB, manually installed).
Any pointer to fix this problem is appreciated. Additional information
can be provided if it is required.
Cheers
Frank
Hi users,
Searching and reading plenty of material, I have understood some of the
XClass and Sheet behaviour, but I have still some problems because, even if
I have created an XClass and a related Sheet (binded adding an
"XWiki.ClassSheetBinding" object to the XClass document) and after have
inserted in the sheet the velocity script:
{{velocity}}\n
#set($class = $doc.getObject('MySpace.myXClass').xWikiClass)
#foreach($prop in $class.properties)
=== $prop.prettyName ===
:$doc.display($prop.getName())\n";
#end
{{/velocity}}\n";
When I update my pages in each pages I get this Velocity error:
"
org.xwiki.rendering.macro.MacroExecutionException: The execution of
the [velocity] script macro is not allowed. Check the rights of its
last author or the parameters if it's rendered from another script.
at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:178)
at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269)
at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:253)
at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:126)
at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:56)
at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:229)
at org.xwiki.sheet.internal.SheetDocumentDisplayer.applySheet(SheetDocumentDisplayer.java:209)
at org.xwiki.sheet.internal.SheetDocumentDisplayer.maybeDisplayWithSheet(SheetDocumentDisplayer.java:164)
at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:102)
at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1164)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1127)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1179)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:692)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.xwiki.velocity.introspection.TryCatchDirective.render(TryCatchDirective.java:72)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725)
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:820)
at sun.reflect.GeneratedMethodAccessor179.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725)
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:820)
at sun.reflect.GeneratedMethodAccessor179.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725)
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:180)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:431)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)"
Thanks,
Giordano.
--- En date de : Jeu 21.1.16, vincent(a)massol.net <vincent(a)massol.net> a écrit :
> De: vincent(a)massol.net <vincent(a)massol.net>
> Arial;font-size:13px;}Very nice Bastien, I
> wasn't asking that much! :)
np :-)
You are right some nice screenshot is always better.
> I’ve taken the liberty
> of editing the page to tune the language here and there, I
> hope you don’t mind. I’ve also used the {{image}} macro
> which is our best practice in order to have similar images
> across xwiki.org.
In fact, I hoped secretly that you (or nice xwiki team) correct my "english" ;-))
> Thanks a lot for providing
> this, I’m sure it’ll help others!-Vincent PS: I’ve
> checked a bit the non-working link (the fact that the user
> cannot click on it). The generated HTML seems to have a
> wrong & :
Ok thxs
Pascal
A form to choose and delete manually some event from Activity Stream:
http://extensions.xwiki.org/xwiki/bin/view/Extension/CleanActivityStream
Bon appetit then!
BTW, in inline mode of extension page the link "Extension Compatibility Object" from <<General Compatibility: For registering information about a Tested configuration please add an Extension Compatibility Object instead (save your modifications first!)>> doesn't work.
We must add manually ExtensionCode.ExtensionCompatibilityClass object at the extension page.
--------------------------------------------
En date de : Mer 20.1.16, vincent(a)massol.net <vincent(a)massol.net> a écrit :
Objet: Re: [xwiki-users] How can I get event object through a form (a form to choose and delete manually some events)
À: "XWiki Users" <users(a)xwiki.org>
Date: Mercredi 20 janvier 2016, 15h09
On 20 Jan 2016 at 11:49:31,
Pascal BASTIEN (pbasnews-xwiki(a)yahoo.fr)
wrote:
greedy!
indeed :)
Ok I will find some time to post that :-)
cool,
thanks
-Vincent
Hello,
I migrated from Debian packages xwiki 7.3 to 7.4
Since I have two errors:
• when connecting, the connection is very very long. It loads after validation of login and password, and then it displays the dashboard. I do not see in the logs where it loses time.
• when edtion of any page
During validation, hiberntate sends me an error:
Information détaillée:
Error number 3201 in 3: Exception while saving document suivitaxedesjour:Changements de tarifs 2016.WebHome
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document suivitaxedesjour:Changements de tarifs 2016.WebHome
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:658)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:167)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:160)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1564)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:181)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:223)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:416)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:690)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:477)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:105)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:124)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1003)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.xpn.xwiki.XWikiException: Error number 3234 in 3: Exception while saving attachments attachment list of document suivitaxedesjour:Changements de tarifs 2016.WebHome
at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachmentList(XWikiHibernateStore.java:1676)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:531)
... 66 more
Caused by: com.xpn.xwiki.XWikiException: Error number 3232 in 3: Exception while saving attachments for attachment 2015-12-17_4.1. Tarification 2016 et pre?le?vement de la taxe de se?jour sur le territoire intercommunal.pdf of document suivitaxedesjour:Changements de tarifs 2016.WebHome
at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachment(XWikiHibernateStore.java:1752)
at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachmentList(XWikiHibernateStore.java:1667)
... 67 more
Caused by: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.xpn.xwiki.doc.XWikiAttachment#2003897923]
at org.hibernate.engine.StatefulPersistenceContext.checkUniqueness(StatefulPersistenceContext.java:638)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:305)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:246)
at org.hibernate.event.def.DefaultUpdateEventListener.performSaveOrUpdate(DefaultUpdateEventListener.java:57)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
at org.hibernate.impl.SessionImpl.fireUpdate(SessionImpl.java:742)
at org.hibernate.impl.SessionImpl.update(SessionImpl.java:730)
at org.hibernate.impl.SessionImpl.update(SessionImpl.java:722)
at com.xpn.xwiki.store.XWikiHibernateStore.saveAttachment(XWikiHibernateStore.java:1722)
... 68 more
thanks for your help,
Julien
Ok thxs guys
I didn't understood why my $xwiki.activitystream.searchEvents doesn't work with eventid...
I'm starting to begin some help and copy/paste
Doc http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema indicate:
"In a hibernate query you can use the same name as the get method but without the get and with the first letter lowercase so the SQL query"
I drink a strong coffe and read ... WITH THE FIRST LETTER LOWERCASE!
Then I replace my EventId by eventId to fix my ugly code (because public String getEventId()):
#set($results= $xwiki.activitystream.searchEvents("act.eventId='$MyValue'", false, 0, 0))
and tadaaaa!
it's working thxs a lot.
I will post my form here later when it will be ready if you want it. :-)
> $xwiki.activitystream.method but if I use where condition on
> eventid field I obtain this error :-(
>
>
> Caused by: org.hibernate.QueryException: could not resolve
> property: EventId of:
> com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl
> [select act from
> com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl
> as act where
> act.EventId='757328280-1453216488000-dishFheu' order by
> act.date desc]
> at
> org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:81)
>
>
greedy!
Ok I will find some time to post that :-)
--------------------------------------------
En date de : Mer 20.1.16, vincent(a)massol.net <vincent(a)massol.net> a écrit :
Objet: Re: [xwiki-users] How can I get event object through a form (a form to choose and delete manually some events)
À: "XWiki Users" <users(a)xwiki.org>
Cc: "Pascal BASTIEN" <pbasnews-xwiki(a)yahoo.fr>
Date: Mercredi 20 janvier 2016, 11h06
#yiv8476593446
body{font-family:Helvetica,
Arial;font-size:13px;}Hi Pascal,
What would be very nice
would be to post this snippet on extensions.xwiki.org :)
(With possibly a screenshot to attract users…)
Thanks!-Vincent
On 20 Jan 2016 at 11:03:13,
Pascal BASTIEN (pbasnews-xwiki(a)yahoo.fr)
wrote: Here a nice
form to choose and delete manually some annoying event (like
a page deleted or some rude text in an page updated)
*********************************************************
*********************************************************
{{velocity}}
Form to delete
manually some event entry from Activity stream :
#if
($xwiki.hasAdminRights())
{{html}}
##<form method="post"
onsubmit="return confirm('Are you
sure?')">
## <form
action="" id="newdoc"
method="get">
<form
method="get" id="DelActivityStream"
onsubmit="return confirm('Delete selected events:
are you sure?')">
<div
class="container">
#foreach
($MyEvent in $xwiki.activitystream.getEvents(false, 500, 0
))
##1. AAA $MyEvent -
$MyEvent.getPage()
#set($MycheckBox="<input type='checkbox'
name='IdEntry' value='")
#set($MycheckBox=$MycheckBox +
"$MyEvent.getEventId()")
#set($MycheckBox=$MycheckBox + "'/>" +
"$MyEvent.getDisplayDate() - $MyEvent.getPage() -
$MyEvent.getType() - - $MyEvent.getUser() " +
"<br />")
$MycheckBox
#end
##
<input type="checkbox"
name="IdEntry"
value="${doc.fullName}"/> This is checkbox
<br />
</div>
<span
class="buttonwrapper"><input
type="submit" value="Supprimer les entrées
sélectionnées du flux d'activité"
class="button"/></span>
</form>
{{/html}}
#else
{{warning}}
Vous
devez être connecté avec un compte Admin pour utiliser
cette macro
{{/warning}}
#end
##
Récupère les id des event sélectionnés
## mise en forme pour générer la requête hql
cat.name in ( 'Foo', 'Bar', 'Baz'
)
#set($ListIn =
$stringtool.join($request.getParameterValues('IdEntry'),
"', '"))
#set($ListIn =
"'" + $ListIn + "'")
##set($results=
$xwiki.activitystream.searchEvents("act.eventId='$MyValue'",
false, 0, 0))
#set($results=
$xwiki.activitystream.searchEvents("act.eventId in
($ListIn)", false, 0, 0))
#foreach ($MyEventToDelete in $results)
## #foreach ($MyEventToDelete in
$xwiki.activitystream.getEvents($MonStream, false, 1500,
0))
$xwiki.activitystream.deleteActivityEvent($MyEventToDelete)
* $MyEventToDelete.getDisplayDate() -
$MyEventToDelete.getPage() - $MyEventToDelete.getType() - -
$MyEventToDelete.getUser() ~*~* //**deleted**// ~*~*
#end
{{/velocity}}
*********************************************************
*********************************************************
--------------------------------------------
En date de : Mer 20.1.16, Pascal BASTIEN
<pbasnews-xwiki(a)yahoo.fr> a écrit :
it's
working thxs a lot.
I will post my form
here later when it will be ready if you
want it. :-)
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hi to all xwiki devs and users, First of all best wishes and happy new year.
We have a problem to get statistics from a standalone xwiki 7.1.2 (hsql + jetty) into a new version xwiki entreprise 7.4 (postgre + tomcat).As we have seen on the support site the import/export fonctions do not include statitics… Is there a possiblity to do so and how could it be done? Thank in advance for your replies
Nigel COUTIN
Le Mercredi 6 janvier 2016 9h37, Nigel COUTIN <coutin_nigel(a)yahoo.fr> a écrit :
Hi to all xwiki devs and users, First of all best wishes and happy new year.
We have a problem to get statistics from a standalone xwiki 7.1.2(hsql + jetty) into a new version xwiki entreprise 7.4 (postgre + tomcat).As we have seen on the support site the import/exportfonctions do not include statitics… Is there a possiblity to do so and how could it be done? Thank in advance for your replies
Nigel COUTIN
In our use of the calendar extension, I expect to have situations where the
title is repeated (sometimes for what are really recurring events and
sometimes not). For this reason, we'll leave the randomly generated string
in the title field. I've added a 'short description' field to the event
class to use in place of the title. I would like to display the new field in
the calendar month/week/day view instead of the title. Does anyone have
suggestions on how to do this?
I'm using XWiki 7.4.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Mocca-calendar-display-short-description-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Here a nice form to choose and delete manually some annoying event (like a page deleted or some rude text in an page updated)
*********************************************************
*********************************************************
{{velocity}}
Form to delete manually some event entry from Activity stream :
#if ($xwiki.hasAdminRights())
{{html}}
##<form method="post" onsubmit="return confirm('Are you sure?')">
## <form action="" id="newdoc" method="get">
<form method="get" id="DelActivityStream" onsubmit="return confirm('Delete selected events: are you sure?')">
<div class="container">
#foreach ($MyEvent in $xwiki.activitystream.getEvents(false, 500, 0 ))
##1. AAA $MyEvent - $MyEvent.getPage()
#set($MycheckBox="<input type='checkbox' name='IdEntry' value='")
#set($MycheckBox=$MycheckBox + "$MyEvent.getEventId()")
#set($MycheckBox=$MycheckBox + "'/>" + "$MyEvent.getDisplayDate() - $MyEvent.getPage() - $MyEvent.getType() - - $MyEvent.getUser() " + "<br />")
$MycheckBox
#end
## <input type="checkbox" name="IdEntry" value="${doc.fullName}"/> This is checkbox <br />
</div>
<span class="buttonwrapper"><input type="submit" value="Supprimer les entrées sélectionnées du flux d'activité" class="button"/></span>
</form>
{{/html}}
#else
{{warning}}
Vous devez être connecté avec un compte Admin pour utiliser cette macro
{{/warning}}
#end
## Récupère les id des event sélectionnés
## mise en forme pour générer la requête hql cat.name in ( 'Foo', 'Bar', 'Baz' )
#set($ListIn = $stringtool.join($request.getParameterValues('IdEntry'), "', '"))
#set($ListIn = "'" + $ListIn + "'")
##set($results= $xwiki.activitystream.searchEvents("act.eventId='$MyValue'", false, 0, 0))
#set($results= $xwiki.activitystream.searchEvents("act.eventId in ($ListIn)", false, 0, 0))
#foreach ($MyEventToDelete in $results)
## #foreach ($MyEventToDelete in $xwiki.activitystream.getEvents($MonStream, false, 1500, 0))
$xwiki.activitystream.deleteActivityEvent($MyEventToDelete)
* $MyEventToDelete.getDisplayDate() - $MyEventToDelete.getPage() - $MyEventToDelete.getType() - - $MyEventToDelete.getUser() ~*~* //**deleted**// ~*~*
#end
{{/velocity}}
*********************************************************
*********************************************************
--------------------------------------------
En date de : Mer 20.1.16, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> a écrit :
it's working thxs a lot.
I will post my form here later when it will be ready if you
want it. :-)
Hi,
I suffered to find hql query to use $xwiki.activitystream.method but if I use where condition on eventid field I obtain this error :-(
Caused by: org.hibernate.QueryException: could not resolve property: EventId of: com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl [select act from com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl as act where act.EventId='757328280-1453216488000-dishFheu' order by act.date desc]
at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:81)
>
> > >
> > Did you try using
> > >
> searchEvents and building an HQL that
> >
> >
> >
> Anyway I found table and field to use an hql query here:
> > http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema
> (I must use a ggogle glass+zoom to see field ;-) )
> > but my query with
> $services.query.hql($hql).execute() doesn't work with
> table name (rg.hibernate.hql.ast.QuerySyntaxException:
> activitystream_events is not mapped ).
> >
> Then I tested with simple query:
> > SELECT
> doc.XWD_TITLE FROM xwikidoc AS doc WHERE doc.XWD_FULLNAME =
> 'Main.WebHome'
> > didn't work
> => Caused by: org.hibernate.hql.ast.QuerySyntaxException:
> xwikidoc is not mapped [select doc.XWD_TITLE FROM xwikidoc
> AS doc WHERE doc.XWD_FULLNAME = 'Main.WebHome']
> > SELECT doc.title FROM XWikiDocument AS doc
> WHERE doc.fullName = 'Main.WebHome'
> > working fine
> > With
> velocity+API we can not use hql query with true field/table
> name?
> > If we can not then where I can
> found field/table mapping name for activitystream_events
> table?
> >
> > Thxs
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
--- En date de : Mar 19.1.16, vincent(a)massol.net <vincent(a)massol.net> a écrit :
> De: vincent(a)massol.net <vincent(a)massol.net>
> Objet: Re: [xwiki-users] Fw : Re: How can I get event object through a form
> À: "XWiki Users" <users(a)xwiki.org>
> Date: Mardi 19 janvier 2016, 8h09
> Also note that the AS has
> a buitin feature to delete old events, see your xwiki.cfg
> file:
>
....
> xwiki.plugin.activitystream.daystokeepevents=0
Yes I know that and delete some event with API :-)
My problem is the way to give some selected event object through a form with $request.getParameterValues() to delete these events.
>
> If you still need to delete
> event manually you could check the code executed by the
> scheduler job.
I didn't found it either Scheduler.ActivityStreamCleaner is empty and anyway I suppose it is groovy code (look into xar source if needed).
> > Did you try using
> searchEvents and building an HQL that
> >
Anyway I found table and field to use an hql query here:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema (I must use a ggogle glass+zoom to see field ;-) )
but my query with $services.query.hql($hql).execute() doesn't work with table name (rg.hibernate.hql.ast.QuerySyntaxException: activitystream_events is not mapped ).
Then I tested with simple query:
SELECT doc.XWD_TITLE FROM xwikidoc AS doc WHERE doc.XWD_FULLNAME = 'Main.WebHome'
didn't work => Caused by: org.hibernate.hql.ast.QuerySyntaxException: xwikidoc is not mapped [select doc.XWD_TITLE FROM xwikidoc AS doc WHERE doc.XWD_FULLNAME = 'Main.WebHome']
SELECT doc.title FROM XWikiDocument AS doc WHERE doc.fullName = 'Main.WebHome'
working fine
With velocity+API we can not use hql query with true field/table name?
If we can not then where I can found field/table mapping name for activitystream_events table?
Thxs
>
> Did you try using searchEvents and building an HQL that
> retrieves the Event object with the given IDs? Then, once
> you get the Event objects, you can use
> deleteActivityEvent on each of them.
That is what I was affraid of ... hql query. I though there was a simplier way like xcontext stuff or convert id in event object ;-)
Thxs I will give a try (must found id field and table)
>
> I try to make an Admin form to delete some event from
> activity stream.
>
> I manage:
>
> - to list events in a checkbox list
>
> - to delete an event
>
> #foreach ($MonEvent in
> $xwiki.activitystream.getEventsForUser($MyUserr, false, 300,
> 0))
>
> #if
> ($MonEvent.getPage()=='MySpace.MyPage')
>
> * event deletion
>
>
> $xwiki.activitystream.deleteActivityEvent($MonEvent)
>
> #end
>
> #end
>
> - but I didn't manage to pass an event id/object with
> form to my deleteActivityEvent method :-(
>
>
>
> It doesn't work because when I get my event through
> $request.getParameterValues('IdEntry'), event ID is
> transformed in text and is not event object anymore.
>
>
>
> I use velocity with xwiki 7.0.1 and my page contains this
> code:
>
>
>
> **********************************
>
> {{velocity}}
>
> {{html}}
>
> ## My form to select events to delete
>
> <form method="get"
> id="DelActivityStream" onsubmit="return
> confirm('Are you sure?')">
>
> <div class="container">
>
> #foreach ($MonEvent in
> $xwiki.activitystream.getEvents(false, 200, 0 ))
>
> ##1. AAA $MonEvent - $MonEvent.getPage()
>
> #set($MycheckBox="<input
> type='checkbox' name='IdEntry'
> value='")
>
> #set($MycheckBox=$MycheckBox +
> "$MonEvent")
>
> #set($MycheckBox=$MycheckBox + "'/>"
> + "$MonEvent.getPage() - $MonEvent.getDisplayDate() -
> $MonEvent.getType() - $MonEvent.getPriority() -
> $MonEvent.getUser() - $MonEvent.getEventId() -
> $MonEvent.getEvent() " + "<br />")
>
> $MycheckBox
>
> #end
>
> ## <input type="checkbox"
> name="IdEntry"
> value="${doc.fullName}"/> This is checkbox
> <br />
>
> </div>
>
> <span
> class="buttonwrapper"><input
> type="submit" value="Supprimer les entrées
> du flux d'activité"
> class="button"/></span>
>
> </form>
>
> {{/html}}
>
>
>
> ## get select events ID
>
> $request.getParameterValues('IdEntry')
>
>
>
> ## i want to delete these ID
>
> #foreach ($MyValue in
> $request.getParameterValues('IdEntry'))
>
> * try to delete this event with ID: $MyValue
> $MyValue.getPage()
>
> ## $MyValue.getPage() it doesn't work because
> $MyValue is not event anymore
>
> ## delete event method
>
> :-(
>
> #end
>
> **********************************
>
>
>
> To resume, do you have a way to give an event object to my
> deleteActivityEvent with form+velocity (because
> deleteActivityEvent accept only event object) ?
>
>
>
> Thxs
>
>
>
> Pascal B
>
> _______________________________________________
>
> users mailing list
>
> users(a)xwiki.org
>
> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
Hi,
I try to make an Admin form to delete some event from activity stream.
I manage:
- to list events in a checkbox list
- to delete an event
#foreach ($MonEvent in $xwiki.activitystream.getEventsForUser($MyUserr, false, 300, 0))
#if ($MonEvent.getPage()=='MySpace.MyPage')
* event deletion
$xwiki.activitystream.deleteActivityEvent($MonEvent)
#end
#end
- but I didn't manage to pass an event id/object with form to my deleteActivityEvent method :-(
It doesn't work because when I get my event through $request.getParameterValues('IdEntry'), event ID is transformed in text and is not event object anymore.
I use velocity with xwiki 7.0.1 and my page contains this code:
**********************************
{{velocity}}
{{html}}
## My form to select events to delete
<form method="get" id="DelActivityStream" onsubmit="return confirm('Are you sure?')">
<div class="container">
#foreach ($MonEvent in $xwiki.activitystream.getEvents(false, 200, 0 ))
##1. AAA $MonEvent - $MonEvent.getPage()
#set($MycheckBox="<input type='checkbox' name='IdEntry' value='")
#set($MycheckBox=$MycheckBox + "$MonEvent")
#set($MycheckBox=$MycheckBox + "'/>" + "$MonEvent.getPage() - $MonEvent.getDisplayDate() - $MonEvent.getType() - $MonEvent.getPriority() - $MonEvent.getUser() - $MonEvent.getEventId() - $MonEvent.getEvent() " + "<br />")
$MycheckBox
#end
## <input type="checkbox" name="IdEntry" value="${doc.fullName}"/> This is checkbox <br />
</div>
<span class="buttonwrapper"><input type="submit" value="Supprimer les entrées du flux d'activité" class="button"/></span>
</form>
{{/html}}
## get select events ID
$request.getParameterValues('IdEntry')
## i want to delete these ID
#foreach ($MyValue in $request.getParameterValues('IdEntry'))
* try to delete this event with ID: $MyValue $MyValue.getPage()
## $MyValue.getPage() it doesn't work because $MyValue is not event anymore
## delete event method
:-(
#end
**********************************
To resume, do you have a way to give an event object to my deleteActivityEvent with form+velocity (because deleteActivityEvent accept only event object) ?
Thxs
Pascal B
When I try to execute the database to filesystem porter tool in xwiki 7.4, I
see the following error:
Failed to execute the [groovy] macro. Click on this message
for details.
Can anyone suggest how to resolve or work around this problem?
My environment is Debian jessie, Postgresql 9.4, WAR file running on tomcat8
and openjdk-7
The details are below.
org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Script
Macro for content [import com.xpn.xwiki.doc.XWikiAttachment;
import com.xpn.xwiki.doc.XWikiDocument;
import com.xpn.xwiki.doc.DeletedAttachment;
import org.xwiki.store.legacy.doc.internal.ListAttachmentArchive;
import com.xpn.xwiki.store.XWikiAttachmentStoreInterface;
import org.xwiki.store.legacy.store.internal.FilesystemAttachmentStore;
import com.xpn.xwiki.store.AttachmentVersioningStore;
import org.xwiki.store.legacy.store.internal.XWikiHibernateTransaction;
import com.xpn.xwiki.store.AttachmentRecycleBinStore;
import com.xpn.xwiki.web.Utils;
import com.xpn.xwiki.XWikiContext;
import com.xpn.xwiki.XWiki;
import com.xpn.xwiki.XWikiException;
import org.xwiki.store.filesystem.internal.FilesystemStoreTools;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.hibernate.ObjectNotFoundException;
private void printIntro(final XWiki wiki)
{
println("= Filesystem attachment storage porting script =");
println("== Step 1: Switch to Filesystem attachments. ==");
boolean ret = isFilesystemStore(wiki.getAttachmentStore()) \
&& isFilesystemStore(wiki.getAttachmentVersioningStore()) \
&& isFilesystemStore(wiki.getAttachmentRecycleBinStore());
println(getStoreLine(isFilesystemStore(wiki.getAttachmentStore()),
wiki.getAttachmentStore()));
println(getStoreLine(isFilesystemStore(wiki.getAttachmentVersioningStore()),
wiki.getAttachmentVersioningStore()));
println(getStoreLine(isFilesystemStore(wiki.getAttachmentRecycleBinStore()),
wiki.getAttachmentRecycleBinStore()));
if (!ret) {
println("Please edit your xwiki.cfg file by modifying "
+ "the attachment store lines to read as follows:");
println("xwiki.store.attachment.hint = file");
println("xwiki.store.attachment.versioning.hint = file");
println("xwiki.store.attachment.recyclebin.hint = file");
println("Also make sure they are not commented out.");
}
println("== Step 2: Add this directory to your backup routine. ==");
println("This is your storage directory, "
+ "when filesystem attachments are enabled you have to back this up
"
+ "as part of your data backup routine.\n");
println(Utils.getComponent(FilesystemStoreTools.class).storageDir.getAbsolutePath());
println("== Step 3: Copy attachments from database to filesystem. ==");
println("Now you are ready to copy the data over from your database to
the filesystem. "
+ "It is prudent to leave the attachments in the database since this
is still experimental "
+ "and in most situations the attachment data is not bothersome just
sitting in the "
+ "database. As such, this script contains no facility to delete
entries from the database.");
println("If anything goes wrong in this function, it will fail with an
error message, "
+ "you should get the stack trace (probably in the log file) and
keep it to "
+ "confuse and humiliate the developers with. No harm should be done
since this only loads "
+ "from the database and only saves to the filesystem.");
}
main();
private void main()
{
final XWikiContext xc = xcontext.getContext();
final XWiki wiki = xc.getWiki();
int startAt = 0;
int seconds = 20;
boolean dryRun = true;
boolean verbose = false;
boolean go = request.getMethod().equals("POST") &&
request.getParameter("doIt") != null;
boolean ajax = "plain".equals(request.getParameter("xpage"));
int endedAt = 0;
if (!ajax) {
this.printIntro(wiki);
}
if (go) {
startAt = Integer.parseInt(request.getParameter("startAt"));
seconds = Integer.parseInt(request.getParameter("seconds"));
dryRun = "on".equals(request.getParameter("dryRun"));
verbose = "on".equals(request.getParameter("verbose"));
endedAt = this.doIt(startAt, seconds, dryRun, verbose, ajax);
if (ajax) {
if (endedAt == -1) {
this.printFooter();
} else {
println("\n{{html clean=false}}<meta name='endedAt'
content='"
+ endedAt + "' />{{/html}}");
}
return;
}
}
this.printJs();
if (!go || endedAt > startAt) {
println("\n{{html clean=false}}");
println("<div id='javascriptSpace'></div>");
println("<form action='?time=" + System.nanoTime()
+ "#doItForm' id='doItForm' method='POST'>");
println("<input type='hidden' name='seconds' value='" + seconds + "'
/>");
println("<input type='hidden' id='startAt' name='startAt' value='" +
endedAt + "' />");
println("<dl>");
println("<dt><label for='dryRun'>Dry Run, don't save any
files.</label></dt>");
println("<dd><input type='checkbox' name='dryRun' checked='"
+ ((dryRun) ? "checked" : "") + "' /></dd>");
println("<dt><label for='verbose'>Verbose, show every
attachment.</label></dt>");
println("<dd><input type='checkbox' name='verbose' checked='"
+ ((verbose) ? "checked" : "") + "' /></dd>");
println("</dl>");
println("<input type='hidden' name='doIt' value='yes' />")
println("<input type='submit' name='start' value='"
+ ((endedAt > startAt) ? "Continue" : "Start") + "' />");
println("</form>");
println("")
println("{{/html}}\n");
return;
}
this.printFooter();
}
private void printFooter()
{
println("== Step 4: make sure everything is working. ==");
println("Check to make sure your attachments are still there, if an
attachment is broken, "
+ "it will appear to be there but on opening it will tell you the
attachment does not exist. "
+ "If something goes terribly wrong with filesystem attachments, you
may have your old "
+ "attachment system back simply by changing the lines in the
xwiki.cfg file and restarting "
+ "the container. HOWEVER: This will not preserve attachments which
were uploaded **after** "
+ "switching to filesystem attachments so as users edit the system
you will become "
+ "locked in to filesystem attachments unless a script is written to
do the "
+ "inverse of this one.");
println("Despite being experimental, the filesystem attachment storage
is quite stable and the "
+ "risk of actually losing something so that it is unrecoverable is
very remote.");
println("NOTE: This must be run seperately in each subwiki.");
println("\n\nEnjoy and give feedback.");
}
private static boolean isFilesystemStore(final Object store)
{
return store.getClass().getName().contains("Filesystem");
}
private static String getStoreLine(final boolean isFilesystem, final Object
store)
{
return "(%style='color:" + (isFilesystem ? "#080" : "#d00") + "'%)(((* "
+ store + ")))";
}
private void printJs()
{
println("""\n{{html}}{{/html}}""");
}
/**
* Port all attachments from the original form to filesystem attachment
store.
* Do one batch at a time so the user can see the progress and it won't time
out.
*
* @param startAt the index of the first job to do, 0 to start at the
beginning.
* @param seconds the number of seconds to run for before returning.
* @param dryRun don't save any files if this is true.
* @return the number of the first job which was not done. This can be
startAt in the next call.
* -1 if the operation is complete.
*/
private int doIt(int startAt, int seconds, boolean dryRun, boolean verbose,
boolean ajax)
{
final XWikiContext xc = this.xcontext.getContext();
final XWiki wiki = xc.getWiki();
final FilesystemAttachmentStore fileAttachStore =
Utils.getComponent(XWikiAttachmentStoreInterface.class, "file");
final XWikiAttachmentStoreInterface defAttachStore =
Utils.getComponent(XWikiAttachmentStoreInterface.class,
"hibernate");
final AttachmentVersioningStore defAttachmentVersioningStore =
Utils.getComponent(AttachmentVersioningStore.class, "hibernate");
int count = 0;
long stopTime = System.currentTimeMillis() + (1000 * seconds);
println("(%style='color:#00d'%)(((");
if (verbose && startAt == 0) {
println("\n== Attachments ==\n");
}
for (String docName : xwiki.searchDocuments("where 1=1")) {
if (count < startAt) {
count++;
continue;
} else if (stopTime < System.currentTimeMillis()) {
println(")))");
return count;
} else {
count++;
}
final XWikiDocument doc = xwiki.getDocument(docName).getDocument();
try {
final XWikiHibernateTransaction transaction = new
XWikiHibernateTransaction(xc);
if (verbose) {
println("* [[" + doc.getFullName() + "]]");
}
// This is the equivilant of doc.getAttachmentList() but there
is an issue which
// causes some attachments to be lost.
// jira.xwiki.org/browse/XWIKI-7936
def hql = "select att from XWikiAttachment att WHERE
att.docId=?";
for (XWikiAttachment attach : xwiki.search(hql, [doc.getId()]))
{
attach.setDoc(doc);
if (verbose) {
println("** [[attach:" + doc.getFullName() + "@" +
attach.getFilename() + "]]");
}
try {
fileAttachStore.loadAttachmentContent(attach, xc,
false);
continue;
} catch (XWikiException noAttachmentInFilesystem) {
// no such attachment, let's save it.
}
try {
try {
defAttachStore.loadAttachmentContent(attach, xc,
true);
} catch (XWikiException notInHibernate) {
final Throwable wrapped =
notInHibernate.getException();
if (wrapped && wrapped instanceof
ObjectNotFoundException) {
println("(%style='color:#c80'%)(((");
println("Unable to find this attachment
[[attach:" + attach.getFilename()
+ "@" + doc.getFullName() + "]] in the
database, "
+ "it may be the result of database
corruption from a failed "
+ "upload prior to the fixing of "
+
"[[jira.xwiki.org/browse/XWIKI-5055]]");
println("xwikiattachment_content.XWA_ID = " +
attach.getId());
println(")))");
}
}
defAttachmentVersioningStore.loadArchive(attach, xc,
true);
try {
// jira.xwiki.org/jira/browse/XWIKI-6199
attach.getAttachment_archive().getVersions();
} catch (NullPointerException e) {
attach.setAttachment_archive(new
ListAttachmentArchive([attach]));
}
// Setup the runnables to do the save but don't save
just yet.
fileAttachStore.getAttachmentContentSaveRunnable(attach,
false, xc)
.runIn(transaction);
} catch (Exception e) {
println("(%style='color:#d00'%)(((");
println("Error in [" + doc.getFullName() + ":" +
attach.getFilename() + "]"
+ e.getMessage());
println(ExceptionUtils.getStackTrace(e));
println(")))");
}
}
if (!dryRun) {
transaction.start();
}
} catch (Exception e) {
println("(%style='color:#d00'%)(((");
println("Failed to port attachments for document [" +
doc.getFullName() + "]");
println(e.getMessage());
println(ExceptionUtils.getStackTrace(e));
println(")))");
}
}
println(")))");
if (startAt < count) {
int attachCount =
xwiki.search("select count(at) from XWikiDocument as doc, "
+ "XWikiAttachment as at where at.docId =
doc.id").get(0).intValue();
println("**[" + attachCount + "] attachments.**");
}
// And now for the deleted attachments.
final AttachmentRecycleBinStore fileBin =
Utils.getComponent(AttachmentRecycleBinStore.class, "file");
final AttachmentRecycleBinStore defaultBin =
Utils.getComponent(AttachmentRecycleBinStore.class, "hibernate");
if (verbose && startAt < count) {
println("\n== Deleted Attachments ==\n");
}
List<Object[]> entries =
xwiki.search("select da.id, da.docName, da.filename, da.date from
DeletedAttachment as da");
if (verbose && entries.size() == 0) {
println("\nnone.");
}
int delAttachCount = 0;
for (Object[] o : entries) {
long delAttachId = o[0];
final String docName = o[1];
final String fileName = o[2];
final Date deleteDate = o[3];
delAttachCount++;
if (count < startAt) {
if (verbose && !ajax) {
println("* [[" + docName + "]] - " + fileName);
}
count++;
continue;
} else if (stopTime < System.currentTimeMillis()) {
return count;
}
count++;
try {
final DeletedAttachment delAttach =
defaultBin.getDeletedAttachment(delAttachId, xc, true);
// Can't use the transaction runnable here because
(non-filesystem)
// deleted attachments hold all content in memory so they have
to be
// handled one at a time.
final XWikiAttachment attach = delAttach.restoreAttachment(null,
xc);
try {
// jira.xwiki.org/jira/browse/XWIKI-6199
attach.getAttachment_archive().getVersions();
} catch (NullPointerException e) {
attach.setAttachment_archive(new
ListAttachmentArchive([attach]));
}
if (!dryRun) {
fileBin.saveToRecycleBin(attach,
delAttach.getDeleter(),
delAttach.getDate(),
xc,
false);
}
if (verbose) {
println("* [[" + docName + "]]");
println("** " + fileName + " - Deleted: " + deleteDate);
}
} catch (Exception e) {
println("(%style='color:#d00'%)(((");
println("* [[" + docName + "]] - " + fileName + " - Deleted: " +
deleteDate);
println(e.getMessage());
println(")))");
println(ExceptionUtils.getStackTrace(e));
}
}
println("\n**[" + delAttachCount + "] deleted attachments.**");
return -1;
}]
at
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:199)
at
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:60)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269)
at
org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:253)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:126)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:56)
at
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
at
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
at
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113)
at
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
at
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
at
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1164)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1127)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1179)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:692)
at sun.reflect.GeneratedMethodAccessor562.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.xwiki.velocity.introspection.TryCatchDirective.render(TryCatchDirective.java:72)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
at
com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821)
at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
at
com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1854)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:821)
at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluateInternal(DefaultVelocityEngine.java:256)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:222)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:198)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.evaluateContent(InternalTemplateManager.java:725)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:626)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:604)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:570)
at
com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:556)
at
com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:65)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1876)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:180)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:431)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:277)
at
org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2340)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.script.ScriptException:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
failed:
Script7.groovy: -1: Mixing private and public/protected methods of the same
name causes multimethods to be disabled and is forbidden to avoid surprising
behaviour. Renaming the private methods will solve the problem.
@ line -1, column -1.
Script7.groovy: 62: Mixing private and public/protected methods of the same
name causes multimethods to be disabled and is forbidden to avoid surprising
behaviour. Renaming the private methods will solve the problem.
@ line 62, column 1.
private void main()
^
2 errors
at
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:159)
at
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.eval(AbstractJSR223ScriptMacro.java:340)
at
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:249)
at
org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.evaluateBlock(AbstractJSR223ScriptMacro.java:194)
... 154 more
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed:
Script7.groovy: -1: Mixing private and public/protected methods of the same
name causes multimethods to be disabled and is forbidden to avoid surprising
behaviour. Renaming the private methods will solve the problem.
@ line -1, column -1.
Script7.groovy: 62: Mixing private and public/protected methods of the same
name causes multimethods to be disabled and is forbidden to avoid surprising
behaviour. Renaming the private methods will solve the problem.
@ line 62, column 1.
private void main()
^
2 errors
at
org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
at
org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1075)
at
org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:591)
at
org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569)
at
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:212)
at
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.getScriptClass(GroovyScriptEngineImpl.java:374)
at
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:151)
... 157 more
--
View this message in context: http://xwiki.475771.n2.nabble.com/Admin-Tools-database-to-filesystem-porter…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi users,
I am writing because I have an object in my Java code to be represented in
XWiki. My idea is to create an XClass and a related style sheet, then I
would create a Base Object for each object to be represented with a wiki
page.
I need to update the wiki every time the data structure that I have in Java
is modified but I can't understand how to do what I've written above.
Thank you,
Giordano.
On 18 Jan 2016 at 11:15:44, Gerritjan Koekkoek (gerritjan@cdlsworld.org(mailto:gerritjan@cdlsworld.org)) wrote:
>
> Could I do this in the params:
>
>
> label=abc
>
>
> target=Sandbox.try2
>
>
> icon=gerritjan.png
>
>
> test=$stringtool.split("item1, item2, item3", “ ,”)
>
> I tried to test it, but did not work?
It won’t work because the parameter values are not typed, they are strings.
So if you have:
#foreach ($uix in $services.uix.getExtensions(…))
#set ($params = $uix.parameters)
...
#end
then $params is always a String.
Thanks
-Vincent
PS: Please always reply to the list ;)
> The velocity part was:
>
>
> #set($items=$extension.getParameters().get('test'))
>
>
>
>
>
>
> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website(http://www.cdlsworld.org)
> Facebook(https://www.facebook.com/gerritjan.koekkoek)
> email(gerritjan(a)cdlsworld.org)
>
>
>
>
>
> From: Vincent Massol on behalf of vincent(a)massol.net
> Sent: 18 January 2016 10:46
> To: XWiki Users
> Cc: Gerritjan Koekkoek
> Subject: Re: [xwiki-users] Data-Types in UIExtension parameters
>
>
> Hi Gerritjan,
>
> On 18 Jan 2016 at 09:34:22, Gerritjan Koekkoek (gerritjan@cdlsworld.org(mailto:gerritjan@cdlsworld.org)) wrote:
> > Hi
> >
> >
> > I wonder if it is possible to use velocity data-types (Number, Date/Time, Array or List, Object) in the parameters field of a UIExtension.
> >
> >
> > I get the impression it is always considered as string and we have to do a conversion?
>
> I’ve updated the UIX Module documentation at
> http://extensions.xwiki.org/xwiki/bin/view/Extension/UIExtension+Module#HMo…
>
> So yes, the parameters field can contain velocity.
>
> > Following example (for a List of items in a Array)
> >
> > cdls.try.abc has the following parameters:
> >
> >
> > label=abc
> >
> > target=Sandbox.try2
> >
> > icon=gerritjan.png
> >
> > test=["Item1", 'item2', "item3"]
> >
> >
> > {{velocity}}
> >
> > $services.uix.getExtensions("cdls.try.abc")
> >
> >
> > #foreach ($extension in $services.uix.getExtensions("cdls.try.abc"))
> >
> > $services.rendering.render($extension.execute(), 'xhtml/1.0')
> >
> > #set($paramlist=$extension.getParameters().get('test'))
> >
> > #end
> >
> >
> > paramlist is String?: $paramlist.class
> >
> >
> > ##Would like it to be a list of items, but now I have to use velocity string functions to create the list...
> >
> > #set($paramlistLengthMinusOne = $paramlist.length() - 1)
> >
> > #set($items = $paramlist.substring(1, $paramlistLengthMinusOne).split(","))
> >
> >
> > #foreach($item in $items)
>
> [snip]
>
> That’s correct, UIX parameters are not typed (they’re strings).
>
> However you can simplify a lot your velocity code.
>
> In the UIX:
> test=item1, item2, item3
>
> In the calling code:
> #set ($paramlist = $extension.getParameters().get('test'))
> #set ($items = $stringtool.split($paramList, “ ,”))
> …
>
> Thanks
> -Vincent
>
> > Gerritjan Koekkoek
> > Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
>
Hi
I wonder if it is possible to use velocity data-types (Number, Date/Time, Array or List, Object) in the parameters field of a UIExtension.
I get the impression it is always considered as string and we have to do a conversion?
Following example (for a List of items in a Array)
cdls.try.abc has the following parameters:
label=abc
target=Sandbox.try2
icon=gerritjan.png
test=["Item1", 'item2', "item3"]
{{velocity}}
$services.uix.getExtensions("cdls.try.abc")
#foreach ($extension in $services.uix.getExtensions("cdls.try.abc"))
$services.rendering.render($extension.execute(), 'xhtml/1.0')
#set($paramlist=$extension.getParameters().get('test'))
#end
paramlist is String?: $paramlist.class
##Would like it to be a list of items, but now I have to use velocity string functions to create the list...
#set($paramlistLengthMinusOne = $paramlist.length() - 1)
#set($items = $paramlist.substring(1, $paramlistLengthMinusOne).split(","))
#foreach($item in $items)
<h1>"$item.replace('"',"")"</h1>
#end
{{/velocity}}
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
Hi,
I'm a real novice, so please forgive my question if it is trivial.
I've created a simple app with App Within Minutes, and I'd like to
customise it a little. For example I have a boolean checkbox and a
user selector with the app, which I'd like to be disabled (uneditable)
for all users except my manager. So that only the manager can edit the
assigned users to a 'task' and mark the task as complete. I'd also
like a second user selector to default to the currently logged in
user.
I've spent a few days googling the problem, and I've come across
information in the xwiki mailing archive etc which makes me think that
it is possible to run checks against the current user using velocity
or groovy scripts embedded in one of the app sheets and modify the
respective elements. But I don't really understand how.
Can this actually be done?
Can anyone direct me to a resource that would clear this up for me? Or
give me an example code snippet and simple directions for its
implementation i.e. what sheet they should be inserted into? A real
idiot's guide
I'd really appreciate any help you could give me,
Thanks
Danny
Hi users,
Today I am wondering about how to create, inside a wiki page, a drop down
menù containing all the child pages of another space.
Any idea?
Giordano.
Hi devs,
I am developing a sort of UI for my java component and I have encountered a
problem:
In a wiki page I've put some input text boxes(i.e. *Page name: <input
type="text" name="pName" >*) in which the user will insert the information
needed by the method that I want to invoke from Velocity when I push a
button.
I have tried some solution but I don't know how to do that, following the
code in my page:
*{{velocity}}*
*#if("$!request.create" == 1)*
* $services.evoS.addInstance("$type", "$pName", "$description")*
*#end*
*{{html}} *
* <form action="" id="dataForm" method="POST">*
* Page name: <input type="text" name="pName" value="$!pName"><br>*
* Description: <input type="text" name="description"
value="$!description"><br>*
* Type: <input type="text" name="type" value="$!type"><br>*
* <div>*
* <input type="hidden" name="create" value="1"/> *
* <span class="buttonwrapper">*
* <input type="submit" value="Create" class="button"/>*
* </span>*
* </div>*
*</form> *
*{{/html}}*
* {{/velocity}}*
Thank you,
Giordano.
Hi users,
I have a problem with my Java component. I have a hjava method wich take as
input 3 strings: wikiName, wikiSpace and the wiki page to retrieve the doc,
thus the content and perform modification.
Ok, when I try to delete a terminal page inside a nested page, there is no
problem, the component retrieve the page's document and can delete it, it
works!
But when I want to delete a terminal page that is inside a nested page
which is inside another nested page it stops working. The point is that I
can't retrieve the terminal page's document, probably because of the
wikiSpace variable.
I have tried "NestedPage1.NestedPage2" but it is not woking at all, it is
keep creating and successively deleting new documents(thus pages).
Thank you,
Giordano.
I can't get my attachment limit above 4Mb. I am running 7.4 on Tomcat 8 with MySQL5.6 all running on Server 2012 R2.
I have included screenshots of the current settings in Xwiki and MySQL
Xwiki Maximum Upload Size = 3000000000
MySQL max_allowed_packet = 900M
Any help would be greatly appreciated.
Joshua Spiva I.T. Manager
1411 Twin Oaks Street, Wichita Falls, TX 76302
tel: (940) 322-2206
dir: (940) 264-9114
jspiva(a)emdinc.com
We are running XWiki Enterprise 7.3 and I would like to enable a 'login
timeout'. Currently the users stay logged in even after the browser has
been closed, which poses a security threat. So how do I set an idle time
after which the users are logged out?
Thanks!
RBG
--
View this message in context: http://xwiki.475771.n2.nabble.com/How-do-I-enable-login-timeout-tp7597463.h…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
Invitation application did not work, so I tried to create a user manually and send him the password.
This seems a very bad practice on myxwiki?
I have get a lot of rights errors, and now user can not update his profile and gets a no-rights on XWikiUserProfileSheet.
What is best way to get users on a myxwiki wiki (as a local user!)
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
On 7 Jan 2016 at 13:33:44, Sunil Khiatani (spawn57@yahoo.com(mailto:spawn57@yahoo.com)) wrote:
> Hi,
>
> I believe its 6.2, in the latest version of chrome. Sorry im at home now so I cant tell exactly.
>
> Also when I switch from wysiwyg to source I remember theres some formatting synyax like ((( sytle="background color etc )))
>
> Again im not at work so i cant tell exactly.
did it work for you when you tried to edit http://playground.xwiki.org/xwiki/bin/view/Main/TestDelete?
Thanks
-Vincent
PS: Please reply to the list ;)
> Sunil
>
>
> Sent from Yahoo Mail on Android(https://overview.mail.yahoo.com/mobile/?.src=Android)
> > On Thu, Jan 7, 2016 at 8:28 pm, vincent(a)massol.net
> > wrote:
> > Hi,
> >
> > On 7 Jan 2016 at 13:25:37, Sunil Khiatani (spawn57@yahoo.com(javascript:return)(mailto:spawn57@yahoo.com(javascript:return))) wrote:
> >
> > > I think explain it without a picture. say I have 2 lines as follows:
> > >
> > > 1 2 3
> > > 4 5 6
> > >
> > > If I place my cursor after 3 and press delete until the two lines merge. Then 4 5 6 will show up with a light grey background.
> >
> > I’ve tried it and pressed suppr when the cursor was after 3 and I got:
> >
> > 1 2 34 5 6
> >
> > But no grey background.
> >
> > What browser and what version are you using? I tried with Chrome 46.0.2490.71 at http://playground.xwiki.org/xwiki/bin/view/Main/TestDelete
> >
> > Thanks
> > -Vincent
> >
> > PS: Please reply to the list ;)
> >
> > > Regards,
> > >
> > > Sunil
> > >
> > > Sent from Yahoo Mail on Android(https://overview.mail.yahoo.com/mobile/?.src=Android)
> > > > On Thu, Jan 7, 2016 at 6:18 pm, vincent@massol.net(javascript:return)
> > > > wrote:
> > > > Hi,
> > > >
> > > > No need for an image, could you please paste the exact content of your page and where the cursor is when you hit the delete key?
> > > >
> > > > Thanks
> > > > -Vincent
> > > >
> > > > PS: The image wasn’t shown in your posting
> > > >
> > > >
> > > > On 7 Jan 2016 at 11:14:05, Sunil Khiatani (spawn57@yahoo.com(javascript:return)(javascript:return)) wrote:
> >
> > > >
> > > > > Hi Vincent,
> > > > > no there's not macro, they're two paragraphs of text.
> > > > > The following screenshots in this imgur album help illustrate this behavior
> > > > > XWiki
> > > > >
> > > > > | |
> > > > > | | | | | | | |
> > > > > | XWikiImgur: The most awesome images on the Internet. |
> > > > > | |
> > > > > | View on imgur.com | Preview by Yahoo |
> > > > > | |
> > > > > | |
> > > > >
> > > > >
> > > > > Regards,
> > > > > Sunil
> > > > >
> > > > > On Thursday, January 7, 2016 6:01 PM, "vincent@massol.net(javascript:return)" wrote:
> > > > >
> > > > >
> > > > >
> > > > > #yiv5080906799 * {font-family:Menlo, Arial;}Hi Sunil,
> > > > >
> > > > > On 7 Jan 2016 at 10:44:32, Sunil Khiatani (spawn57@yahoo.com(javascript:return)(mailto:spawn57@yahoo.com(javascript:return))) wrote:
> > > > >
> > > > > > Hi,
> > > > > > I find that sometimes when I'm editing a page in XWiki part of the text will turn into a light grey background under certain situations.
> > > > > > If I have two paragraphs, and I press delete or backspace so that the two paragraphs become one paragraph. One of the paragraphs will have a light grey background.
> > > > > > Is there a way to turn this behavior off?
> > > > > From IRC:> maybe when you delete a char, the previous element is a macro?> (and thus the whole rendring of that macro gets highlighted)> best would be for you to provide some content for us to reproduce
> > > > > Thanks-Vincent
> > > > > > Regards,
> > > > > > Sunil
> > > > >
Hi,
On 7 Jan 2016 at 13:25:37, Sunil Khiatani (spawn57@yahoo.com(mailto:spawn57@yahoo.com)) wrote:
> I think explain it without a picture. say I have 2 lines as follows:
>
> 1 2 3
> 4 5 6
>
> If I place my cursor after 3 and press delete until the two lines merge. Then 4 5 6 will show up with a light grey background.
I’ve tried it and pressed suppr when the cursor was after 3 and I got:
1 2 34 5 6
But no grey background.
What browser and what version are you using? I tried with Chrome 46.0.2490.71 at http://playground.xwiki.org/xwiki/bin/view/Main/TestDelete
Thanks
-Vincent
PS: Please reply to the list ;)
> Regards,
>
> Sunil
>
> Sent from Yahoo Mail on Android(https://overview.mail.yahoo.com/mobile/?.src=Android)
> > On Thu, Jan 7, 2016 at 6:18 pm, vincent(a)massol.net
> > wrote:
> > Hi,
> >
> > No need for an image, could you please paste the exact content of your page and where the cursor is when you hit the delete key?
> >
> > Thanks
> > -Vincent
> >
> > PS: The image wasn’t shown in your posting
> >
> >
> > On 7 Jan 2016 at 11:14:05, Sunil Khiatani (spawn57@yahoo.com(javascript:return)) wrote:
> >
> > > Hi Vincent,
> > > no there's not macro, they're two paragraphs of text.
> > > The following screenshots in this imgur album help illustrate this behavior
> > > XWiki
> > >
> > > | |
> > > | | | | | | | |
> > > | XWikiImgur: The most awesome images on the Internet. |
> > > | |
> > > | View on imgur.com | Preview by Yahoo |
> > > | |
> > > | |
> > >
> > >
> > > Regards,
> > > Sunil
> > >
> > > On Thursday, January 7, 2016 6:01 PM, "vincent(a)massol.net" wrote:
> > >
> > >
> > >
> > > #yiv5080906799 * {font-family:Menlo, Arial;}Hi Sunil,
> > >
> > > On 7 Jan 2016 at 10:44:32, Sunil Khiatani (spawn57@yahoo.com(mailto:spawn57@yahoo.com)) wrote:
> > >
> > > > Hi,
> > > > I find that sometimes when I'm editing a page in XWiki part of the text will turn into a light grey background under certain situations.
> > > > If I have two paragraphs, and I press delete or backspace so that the two paragraphs become one paragraph. One of the paragraphs will have a light grey background.
> > > > Is there a way to turn this behavior off?
> > > From IRC:> maybe when you delete a char, the previous element is a macro?> (and thus the whole rendring of that macro gets highlighted)> best would be for you to provide some content for us to reproduce
> > > Thanks-Vincent
> > > > Regards,
> > > > Sunil
> > >
Hi,
I find that sometimes when I'm editing a page in XWiki part of the text will turn into a light grey background under certain situations.
If I have two paragraphs, and I press delete or backspace so that the two paragraphs become one paragraph. One of the paragraphs will have a light grey background.
Is there a way to turn this behavior off?
Regards,
Sunil
Hi Edy and all,
On 5 Jan 2016 at 11:52:24, Eduard Moraru (enygma2002@gmail.com(mailto:enygma2002@gmail.com)) wrote:
> Hi Randy,
>
> From your choice of words (and your continued usage of the now deprecated
> "spaces" macro on the homepage, as observed in the screenshot you`ve
> provided), I understand that you still see things in terms of "creating
> spaces" and "creating documents inside spaces" in 7.4 and, IMO, that`s
> really the issue.
>
> In case you`ve missed it from the release notes, starting with 7.2, we`ve
> introduced the notion of Nested Pages [1], which means that you no longer
> have the notion of "pages inside spaces", but always "pages inside pages".
> Technically, it is actually implemented by always creating a "space" when
> you create a page from the UI, but the user should see it as if he is
> always creating a page.
>
> = Use Case 1 =
>
> When your users go to your homepage and create a new page "under the Main
> space", they are actually creating a nested page (old "space"), under the
> homepage (document called "Main") of your wiki. If you change [2] the
> homepage of your wiki to point to a different document instead (say
> "Some.Other.Homepage"), I`m fairly sure that you do not want your users to
> start creating new pages as children of that page (e.g.
> "Some.Other.Homepage.NewUserPage"), because that is what the alternative
> would lead to.
>
> The logic behind the original decision of handling the homepage differently
> was that, even as Guillaume was hinting, the homepage is seen as the "root"
> of your wiki. Creating a page from the root should result in creating top
> level pages, not child pages. If you wanted to create a child page of
> something from the homepage, you would explicitly do so by selecting a
> parent. Not selecting a parent while on the homepage would logically imply
> that you want to create a page in the wiki (i.e. top page).
>
> I`m curious why do you find it normal the other way around, i.e. landing on
> the wiki (i.e. not navigating somewhere in particular) + creating a new
> page => resulting in creating a child page of the "Main" page (which
> happens to be the homepage).
>
> If you always create child pages of the homepage ("Main" page), on the long
> run, all your URLs will be /Main/This/Page, /Main/That/Page,
> /Main/That/Other/Page, etc... but ultimately, what is this "Main", and why
> is it that important to drag it along in all your page URLs? (of course,
> again, if you change your homepage to "Some.Other.Homepage", all your urls
> will be prefixed by that!)
>
> = Use case 2 =
>
> Now, another way of looking at this would be that, for some reason, you
> *really* want to keep all your content under some top level page (e.g. as
> Vincent suggested, a "Content" container page), perhaps to separate it from
> applications (which, for historic reasons, currently are also located in
> the top level) like Blog, Sandbox, etc. or any other reason.
>
> The only limitation in this usecase is if you also want to use that
> container page ("Main", "Content", etc.) as your homepage. In this case,
> indeed, I see no other solution but to modify the createinline.vm template
> or for us to drop this behavior altogether.
>
> ---
>
> Conclusion so far:
> We have 2 use cases regarding a new page's parent. They can both coexist,
> except that, in some cases, the 2nd use case is limited by the first use
> case. If we consider this limitation to be a deal breaker, then we are left
> with 2 choices:
> A. Drop use case 1 (i.e. always propose the current page as parent of the
> new page, regardless if the current page is the homepage or not)
> B. Make use case 1 configurable (i.e. enable or disable it completely, in
> case you are suffering from the limitation of the second use case; this
> allows the user to decide if it's useful or not)
>
> Of course, if option B is what we go for, we also need to figure out where
> we would put such a configuration.
>
> I would be in favor of option B (since I obviously believe that use case 1
> is something useful for the majority of cases), but have no idea on the
> location of the configuration.
>
> WDYT?
I agree about what you’ve said above. However I think the main problem comes from the fact that the user doesn’t know:
* That he’s on a special page (home page). He sees himself/herself on the Main/WebHome page, i.e. in the Main space.
* The user doesn’t realize that the home page of his/her wiki is a virtual page that can be configured to point to any page and that it just happens that by default it’s been set to point to Main.WebHome.
* It can even be argued that the home page doesn’t exist and that the user is redirected to the page configured in the main wiki’s descriptor, i.e. Main.WebHome and thus when you click “+” to add a new page you’re not on the home page anywhere but on Main.WebHome.
So, I see 2 choices:
1) Option A, i.e. "drop use case 1 (i.e. always propose the current page as parent of the new page, regardless if the current page is the homepage or not)."
2) Find a way to make the home page special and different from Main.WebHome. It could be a special URL as suggested by Guillaume in a previous post, such as http://localhost:8080/xwiki/bin/view/ and it would redirect to a special resource type for the home page, which would be served as a template. For example: http://localhost:8080/xwiki/home. This would be easy to implement. Of course we would keep the ability to configure where the home page of the main wiki points to in the Admin UI and /home would be used only when no custom configuration is defined so that it would still be easy for users to configure what they want to display on the home page. In order to make it simpler we could even introduce a "Home Page” entry in the Admin UI. We would also need to find some different content for Main.WebHome.
I haven’t thought about all the consequences of 2) but at first sight it seems it could be something that could work and could even solve the issue we currently have of it being hard to edit. Note that the home page wouldn’t have an Edit button. Seen differently, the home page would be controllable only by an Admin, which IMO can make sense.
So, all in all, I think I’d be in favor of solution 2) (unless some gotchas). Barring that, I’d prefer solution 1) instead of option B above.
WDYT?
Thanks
-Vincent
> Thanks for all your feedback so far and I`m counting on your help and
> anyone else interested to reach a conclusion regarding this.
>
> -Eduard
>
> ----------
> [1] http://platform.xwiki.org/xwiki/bin/view/Features/ContentOrganization
> [2]
> http://www.xwiki.org/xwiki/bin/view/FAQ/How+to+change+the+home+page+destina…
>
> On Mon, Jan 4, 2016 at 3:13 PM, Randy Havens <
> Randy.Havens(a)cityofrochester.gov> wrote:
>
> > > So if we bring
> > > back the old behavior as-is we'd still have to find a solution for
> > > top-level space creation.
> >
> > That’s already taken care of. This is how I always created spaces before:
> > (this is a screenshot from my 7.4 instance, so I know that it is still an
> > option)
> >
> > [cid:image001.png@01D146C6.3625A240]
> > > A suggestion I had now that nested spaces are activated by default was to
> > > make the home page of the wiki be "above" every other space. Said
> > > differently, the home page would reside directly at
> > > https:///xwiki/bin/view/
> > > without anything else being mentioned. From that page you'd be able to
> > > create top-level spaces, and every other page would behave as expected,
> > > including Main.WebHome. I think this is what would feel the most natural,
> > > but it causes many underlying issues, notably because a page with no
> > > document reference cannot really exist in XWiki right now.
> >
> > I agree. This seems to be a sensible solution.
> >
> >
> > image001.png (23K) <
> > http://xwiki.475771.n2.nabble.com/attachment/7597376/0/image001.png>
Hi,
I'm struggling with migrating a 6.3 .war instance to a Debian
APT/package 7.3 instance.
I had hoped I would be able to install as per
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT
choosing the xwiki-enterprise-tomcat7-mysql package, then edit
hibernate.cfg.xml to point at the existing (external) MySQL instance
hosting the database, then edit server.xml, xwiki.cfg and
xwiki.properties to match the previous.
The new instance connects, and after editing xwiki.cfg, I can login as
superadmin, the previously setup LDAP auth not working), I was
expecting to see the xwiki updater run, but it did not, and the top
bar of xwiki is empty, it only has the logo on the far left and the
three little lines on teh far right under which the only option is
logout.
Do I need to to do a .war update to get it up to 7.3 before migrating
to a Debian APT/package instance ? or is there something that I have
missed ?
Cheers
Hi All,
I created one wiki page on my windows 7 machine with some sub pages and some documents inserted so everything is good so far.
But I would like to change URL name of wiki page at moment it’s call: http://localhost:8080/xwiki/bin/view/Main/?srid=EiLr8Qmn
I would like to change that by a pretty name instead the the default path and also able to access the wiki page from another computer on my network.
I checked some document on the xwiki.org regarding Path-based wiki access and Domain-based wiki access.
The documentation is not enough clear for me so someone can give the full steps to change the path and make this access everywhere in the network, please
Regards,
Thanks
H.
Hugor Mbuta
IT Support Analyst
direct dial +44 (0) 20 7332 9995
H.mbuta(a)gasstrategies.com
[http://www.gasstrategies.com/gslogo.jpg]<http://www.gasstrategies.com>
Gas Strategies
10 St Bride Street
London, EC4A 4AD
+44(0) 20 7332 9900
www.gasstrategies.com<http://www.gasstrategies.com>
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. Please note that we do not accept any responsibility for viruses and it is your responsibility to scan the email and attachments (if any). Gas Strategies Group Limited is a company registered in England and Wales under company number 2225820. Gas Strategies is the trading name of Gas Strategies Group Limited. Registered company address: 10 St Bride Street, London, EC4A 4AD
Hi users,
I'm developing a java component that offer APIs accessed through script
services to perfom modification to the wiki.
When I delete a document (thus the related page I guessed) from my java
code with the "*.deleteDocument(doc, context)*", on my browser I see the
last modification as a page deletion but the page is still accessible on
the tree representation.
The XWikiDocument's method ".setHidden(true)" solve my problem, but I can't
catch the relations between xwiki pages-->Documents-->Document reference
and how to handle deletion of non-terminal pages preserving the information
contained in them like: the wiki and the nested page to whom they had been
belonged, the content and the comments.
Thanks for your help,
Giordano.
Hi.
I’d like to register a second new community Xwiki please.
Description:
It is a wiki called Enough For All.
It is designed to be an open community repository for information related to poverty at all levels. It aims to have a social network and collaboration aspect to it.
Owner name: Adam Duus
Username: metamechanic
Wiki name: EnoughForAll
Thank you.
Regards,
Adam Duus.
When I create a new page in my Main space, the "Parent" field defaults to
empty, but when I create a new page in any other space, it defaults to the
name of that space. When a user tries to post a new page with the parent
empty, they get an "access denied" message, but if you put "Main" in the
parent it works as expected. Is there a way to default this value to "Main"
when not in another space, instead of having it default blank? This wasn't
an issue up to XWiki 7.1.2, but it is an issue in 7.3 and 7.4 - when nested
pages started getting worked on.
--
View this message in context: http://xwiki.475771.n2.nabble.com/New-Page-Has-No-Parent-tp7597344.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
I need to write a small Java utility to interact with my XWiki server - it's main purpose is to take a file containing paths to various files, and then upload (POST) them to the server. It looks as though this cannot be done from within the browser directly since sandboxing prevents working with file paths directly.
Having read through the RESTful client information (http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI) I am not sure I need to completely go down this route as I don't need access to representations of the XWiki objects. AFAICS I will simply need to GET and POST to specific URLs of the wiki. However, I would greatly appreciate advice on how best to handle authentication. Guest users are not allowed, so username and password should be provided, and in some way a session needs to be maintained. Are there any simple examples for logging in to XWiki and maintaining a session from within a Java client? I'm wondering if I still might need the RESTful API for this, but the documentation doesn't really cover this in detail.
Thanks,
Bryn
Dear all,
I'm a happy XWiki user since 2013, deployed as internal wiki for a tech
team. Now I'm evaluating the usage of XWiki as CMS for writing product
documentation. In the past I used Alfresco but I think the XWiki approach is
more flexibile and easy for non-technical guys. The latest version I tried
was the 6.4 which it works pretty well for all the use cases I'd like to
fit, except for this need: I'd like to write a set of pages, and then
arrange them in a structured manual with a table of Content, i.e. using a
tree view and moving pages from a section to another, and then export them
as PDF.
For example, I'd like to write 4 wiki pages, and then I'd like to create a
PDF picking up three of them defining a table of contents such as
* page1
o page4
o page2
* page3
I saw this feature as plugin for Confluence: is this available in XWiki or
scheduled for one of the next releases?
Best Regards
Andrea
Hi.
I’d like to register a new community Xwiki please.
Description:
It is a wiki called Global Effort, which stands for Global Energy Futures, Foresight and Transitions.
It is designed to be an open community repository for information related to global energy futures. (Futures as in scenarios, backcasting, forecasts etc and not stock market speculation.) It aims to have a social network and collaboration aspect to it.
Owner name: Adam Duus
Username: metamechanic
Wiki name: globaleffort
Thank you.
Regards,
Adam Duus.
Hi Peter,
No it’s not been fixed in 6.4.x. Maybe Thomas has decided not to backport it since it could a bit dangerous? Thomas?
Thanks
-Vincent
On 4 Jan 2016 at 11:02:58, Peter Huisman (p.huisman@ximm.nl(mailto:p.huisman@ximm.nl)) wrote:
> Hi Vincent,
>
> Thanks for the prompt response and great to hear that it is already fixed! I am wondering (since I can’t find it easily) if you also have fixed in the latest 6.x series since we are not ready to move to 8.
>
> Br,
>
> Peter
> > Op 4 jan. 2016, om 10:59 heeft vincent@massol.net(mailto:vincent@massol.net) het volgende geschreven:
> > Hi Peter,
> > On 4 Jan 2016 at 10:55:49, Peter Huisman (p.huisman@ximm.nl(mailto:p.huisman@ximm.nl)(mailto:p.huisman@ximm.nl)) wrote:
> >
> > > Hi,
> > >
> > > I have a question regarding the import of a XAR.
> > >
> > > When we do an import of a XAR (exported with the History), we have noticed that - when the document NOT contains an attachment - the version history of the document is identical to the original (obviously as expected). However, when the document contains an attachment, it look like a new version of the document is created with the comment being identical to the last available comment. We have experimented with file an DB store (since we have multiple servers in use with different setups) but that does not solve this issue.
> > >
> > > 1 - Is this the expected result?
> > > 2 - Is there a way to work around this (in our case) unwanted result?
> > >
> > > Thanks in advance for looking at this.
> >
> > I think you’ve experienced http://jira.xwiki.org/browse/XWIKI-9960 which we’ve just fixed.
> >
> > Thanks
> > -Vincent
> >
> > > Br,
> > >
> > > Peter
Hi,
I have a question regarding the import of a XAR.
When we do an import of a XAR (exported with the History), we have noticed that - when the document NOT contains an attachment - the version history of the document is identical to the original (obviously as expected). However, when the document contains an attachment, it look like a new version of the document is created with the comment being identical to the last available comment. We have experimented with file an DB store (since we have multiple servers in use with different setups) but that does not solve this issue.
1 - Is this the expected result?
2 - Is there a way to work around this (in our case) unwanted result?
Thanks in advance for looking at this.
Br,
Peter
Hi users,
My project in XWiki consists in a java component which offers some APIs
through a script service called by a Velocity script in a wiki page.
I put my .jar in the directory C:\XWiki Enterprise
7.3\*webapps\xwiki\WEB-INF\lib
*and this is the Velocity and HTML code that I've put in my XWiki page:
{{velocity}}
#if("$!request.evolver" == 1)
## Request for creating a new instance
$services.pars.parse()
$services.evo.removeInstance("Take bike")
$response.sendRedirect($xwiki.getURL('Main.WebHome'))
## Stop processing, since we already sent a redirect.
#stop
#end
{{html}}
<form action="" id="newEvolution" method="post">
<div>
<input type="hidden" name="evolver" value="1"/>
<span class="buttonwrapper">
<input type="submit" value="Evolve" class="button"/>
</span>
</div>
</form>
{{/html}}
{{/velocity}}
Let first say that nothing is happening when I click on the "Evolve" button
and I don't know why...it looks like it should work, also because creating
a Main_test class in Eclipse, I can run my software calling exactly the
same methods and it works!
Moreover my component must create some files to store some information,
thus I am wondering where to save those files in order to make them
accessible by the component.
Any suggestions?
Thanks in advance,
Giordano.
The XWiki development team is proud to announce the availability of XWiki
7.4.
This is our last stabilization release for the XWiki 7.x cycle and the new
Long Term Support (LTS) version. It mainly brings polishing and
stabilization for the Nested Pages feature, especially in the UI. Among
other things, this release introduces a new notifications menu with the
watchlist actions inside. Application Within Minutes now creates a *Code*
and a *Data* page where the application content is stored. And it is now
possible to have template hierarchies and to add an redirection when a page
is renamed.
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/ReleaseNotesXWiki74
The following people have contributed code to this release (sorted
alphabetically):
* Andreas Jonsson
* Clemens Robbenhaar
* Ecaterina Moraru (Valica)
* Eduard Moraru
* Guillaume Delhumeau
* Jean SIMARD
* Manuel Smeria
* Marius Dumitru Florea
* Sergiu Dumitriu
* Thomas Mortagne
* Vincent Massol
Thanks for your support
-The XWiki dev team
Hey all,
I have an instance of XWiki running that is integrated with Active Directory. 99% of the time, users are able to log in without issues. However, once in a while (every month or two), a user will get kicked off (signed out and their credentials no longer work). After a couple hours, they are able to log in perfectly fine. During this time, other users have no login issues and using a different browser, clearing cookies/cache, etc do not seem to help at all. Additionally, the user can still log into other systems that use Active Directory with those same credentials. It also doesn't look like this is happening because of a password reset as far as I can tell; today a user was locked out but their last password reset was last week some time.
Does anyone have any ideas about what might be causing this, or at least know how to narrow it down to figure out if it's an XWiki issue or if it's something else? I have been poking around through the log files but I haven't been able to see anything out of the ordinary.
Thanks,
Harrison
American Express made the following annotations
******************************************************************************
"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."
American Express a ajout� le commentaire suivant le Ce courrier et toute pi�ce jointe qu'il contient sont r�serv�s au seul destinataire indiqu� et peuvent renfermer des
renseignements confidentiels et privil�gi�s. Si vous n'�tes pas le destinataire pr�vu, toute divulgation, duplication, utilisation ou distribution du courrier ou de toute pi�ce jointe est interdite. Si vous avez re�u cette communication par erreur, veuillez nous en aviser par courrier et d�truire imm�diatement le courrier et les pi�ces jointes. Merci.
******************************************************************************
Hi,
The default dashboard is located in Dashboard.WebHome. When you upgraded you should have had the Distribution Wizard upgrade that page. Was that the case? Could you check the history for that page?
Now two things could have happened:
1) you overwrote the changes brought by the Distribution Wizard by importing old versions of pages from your previous wiki. If you’ve done that then you’ve most likely broken the upgrade process since you’ve removed all the upgrades that were required to all default wiki pages! :) See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade for the canonical way of upgrading an XWiki instance. If you’ve done that I suggest that you redo the upgrade.
2) you have modified Dashboard.WebHome. If this is the case then you’ll need to update your version to use the {{documentTree}} macro instead of the spaces macro.
As I’ve mentioned already in my reply the notion of Spaces have been removed from the UI (I’ve linked you to some page with the explanation, have you been able to read that page? was it clear? should we improve things there with more explanations?).
Thanks
Hope it helps,
-Vincent
On 23 Dec 2015 at 12:19:45, KirbY ZhoU (kirbyzhou(a)gmail.com) wrote:
I belived that I have use the space widget version 7.3.
I created a new Xwiki-7.3, and then import the old spaces one by one, excluding 'Main', 'XWiki' and all spaces coming with Xwiki default pages.
I just want to get a simple space list.
发件人: Vincent Massol <vmassol(a)gmail.com> 代表 "vincent(a)massol.net" <vincent(a)massol.net>
日期: 2015年12月23日 星期三 上午4:41
至: XWiki Users <users(a)xwiki.org>
抄送: KirbY ZhoU <kirbyzhou(a)gmail.com>
主题: Re: [xwiki-users] How to avoid nested space?
Hi KirbY,
On 22 Dec 2015 at 21:27:47, KirbY ZhoU (kirbyzhou@gmail.com(mailto:kirbyzhou@gmail.com)) wrote:
> How to avoid nested space?
>
> Since the new nested space feature, a lot of nested space such as "XXX.YYY" appears in the "Space List" in my home page.
> If I want to create a sub page, a new nested space created silently. It becomes more and more, and bothers our users.
>
> I want keep the original simple one level space and documents tree model instead of the new nested space model. How can I get it?
The issue is that you haven’t upgraded your home page (the dashboard I presume). We have replaced the Space widget with a Documents widget. Normally, when you have upgrade you should have had the Distribution Wizard kicking in and updating the default wiki pages. Please let us know what you’ve done when the Distribution Wizard has executed.
The notion of Spaces has been removed starting with XWiki 7.2+
Please see http://platform.xwiki.org/xwiki/bin/view/Features/ContentOrganization
The introduction of Nested Spaces is a large change and we wish to make it as seamless as possible to our users. Please let us know any issue you see and we’ll try to help you and see if we can improve things by default so that other users have less problems upgrading.
Thanks for your help and patience.
-Vincent
Is there a simple way to create a document tree default expand to 3 levels?
For example:
* Level 1
** Level 2
*** Level 3
*** Level 3
** Level 2
*** Level 3
** Level 2
*** Level 3
And, DO NOT use "see more" button to hide items.
DocumentTree macro seems do not work for this situation.
How to avoid nested space?
Since the new nested space feature, a lot of nested space such as "XXX.YYY" appears in the "Space List" in my home page.
If I want to create a sub page, a new nested space created silently. It becomes more and more, and bothers our users.
I want keep the original simple one level space and documents tree model instead of the new nested space model. How can I get it?
The XWiki development team is proud to announce the availability of XWiki 7.4 Release Candidate 1.
This is our last stabilization branch for the XWiki 7.x Cycle. It brings polishing and stabilization for the Nested Pages feature and the changes in UI that resulted from it.
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/ReleaseNotesXWiki74RC1
The following people have contributed code to this release (sorted alphabetically):
Guillaume Delhumeau
Sergiu Dumitriu
Marius Dumitru Florea
Vincent Massol
Thomas Mortagne
Thanks for your support
-The XWiki dev team
Xwiki-7.3
For example:
My page hierarchy looks like:
Sandbox.WebHome
TestPage1
TestPage2
TestPage3
SubPage1
SubPage2
SubPage3
SubPage3-1
I want to create a tree open to 'SubPage2'
So the tree should like:
*Sandbox.WebHome
** TestPage1
** TestPage2
** TestPage3
*** SubPage1
*** SubPage2
*** SubPage3
I have a lot of code such like:
{{documentTree root="space:Sandbox" showRoot="false" showTranslations="false" hierarchyMode="parentchild" openTo="document:Sandbox.SubPage1"/}}
{{documentTree root="space:Sandbox" showRoot="false" showTranslations="false" hierarchyMode="parentchild" openTo="document:Sandbox.TestPage3.SubPage1"/}}
But none of it works; the tree view user seen is always NOT expanded! It has just one level:
*Sandbox.WebHome
My user have to expand the tree hand by hand.
Anyone can help me?