Hi,
Is it possible to create a new object of a custom class using the RESTful API?
The documentation page only lists the following POST method, which
doesn't accept a class name:
/wikis/{wikiName}/spaces/{spaceName}/pages/{pageName}/objects[?start=offset&number=n]
I have tried things like the following:
curl -u Admin:admin -X POST -H "Content-type: text/plain" -H "Accept:
application/xml" -d "@test.xml"
http://localhost/xwiki/rest/wikis/xwiki/spaces/Test/pages/Test/objects/XWik…
Where test.xml contains some variation on:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<properties xmlns="http://www.xwiki.org">
<property type="com.xpn.xwiki.objects.classes.TextAreaClass" name="Text">
<attribute value="Text" name="name"/>
<attribute value="Test" name="prettyName"/>
<attribute value="0" name="unmodifiable"/>
<attribute value="0" name="disabled"/>
<attribute value="100" name="size"/>
<attribute value="10" name="rows"/>
<attribute value="" name="customDisplay"/>
<attribute value="Text" name="editor"/>
<attribute value="6" name="number"/>
<attribute value="0" name="picker"/>
<attribute value="" name="validationMessage"/>
<attribute value="" name="validationRegExp"/>
<value>
This is some text.
</value>
</properties>
Curl returns this:
<html>
<head>
<title>Status page</title>
</head>
<body>
<h3>The method specified in the request is not allowed for the resource identifi
ed by the request URI</h3><p>You can get technical details <a href="http://www.w
3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6">here</a>.<br>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>
Simpler syntax without the XML file still fails for me. In fact, I
can't seem to even get the basic "create object" method to work, even
without the class. For example:
curl -u Admin:admin -X POST
http://localhost/xwiki/rest/wikis/xwiki/spaces/Test/pages/Test/objects
Just comes back with a "malformed syntax" error.
Is there an example anywhere of how to do this?
Thank you,
Aaron
I am looking to modify the editor in two ways:
1) I would like to change the default editor to the new CKEditor per these instructions: http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration#H… I get stuck at: "In order to open the CKEditor by default (i.e. replace the default editor) you can edit the CKEditor.EditMenuEntry page in Objects mode..."
2) I would like to change the “Is Minor Edit” to checked by default and these are the only instructions I can find: http://lists.xwiki.org/pipermail/users/2009-August/012857.html I can locate many files in the /usr/lib/xwiki/templates folder that start with the word ‘edit’ but none of them are ‘editactions.vm’.
I am sorry if these are two totally different questions but they both seem to be related, as in each case I am unable to find the avenue for changing the default editor behavior. Thanks for your time.
Regards,
Jesse
Hello all,
I created an application on xwiki Enterprise 7.4 and it works.
<http://xwiki.475771.n2.nabble.com/file/n7598300/xwikiapplication.bmp>
One issue I face is for all users I see the option to "Edit Application"
(see attached picture), I would like to limit this only to a specific group.
Where can I change the access rights?
I searched the forum but could not find any response, if the answer is very
simple pardon me I am new to use wiki tools :-)
Thanks in advance for your reponse,
Chandra
--
View this message in context: http://xwiki.475771.n2.nabble.com/Issue-after-creating-application-in-xwiki…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
I just found out that all my (LDAP auth) users have administrator rights
on the wiki !
This is the case for only a short time. I did not update or that sort of
thing.
Yet, if I look at the rights of groups and users, everything looks good.
Even if I clearly prohibits the administration rights to XWikiAllGroup,
all users always have admin rights !
I don't understand what's happening !
Do you have an idea ?
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>
_________________________________________________
Hi All,
Tell me please is it possible to use in MacroProperties classes fields with values from external sources?
For example I have list of project from Jira or Redmine and I would like to select one project from ListBox from "Insert Macro” dialog box
So for example I have macro issues and it has mandatory parameter project. I can write follow macro {{issues project=“PROJECT_NAME”}} In such case I have to know PROJECT_NAME which is existed but If I don’t know it, I could be able to select Macro-> Insert Macro select My Macro and select project from combo box
But all I see it is possible to use only Enum classes for this dialog…
Best regards,
Maksim Birukov
--- En date de : Jeu 3.3.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 to disable versionning for a document
> À: "XWiki Users" <users(a)xwiki.org>
> Cc: "XWiki Users" <users(a)xwiki.org>
> Date: Jeudi 3 mars 2016, 16h41
> Hi Pascal,
>
>
> On 2 Mar 2016 at 14:53:55, Pascal BASTIEN (pbasnews-xwiki@yahoo.fr(mailto:pbasnews-xwiki@yahoo.fr))
> wrote:
>
> >
> >
> > --- En date de : Mer 2.3.16, vincent(a)massol.net
> a écrit :
> >
> > > De: vincent(a)massol.net
>
> > > Objet: Re: [xwiki-users] How to disable
> versionning for a document
> > > À: "XWiki Users"
> > > Date: Mercredi 2 mars 2016, 12h19
> > >
> > >
> > > On 2 Mar 2016 at 11:50:30, Pascal BASTIEN (pbasnews-xwiki@yahoo.fr(mailto:pbasnews-xwiki@yahoo.fr))
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > I have a page
> > > cronly updated with RESTful API and I want disable
> document
> > > versionning for this page only.
> > >
...
> > …
>
> Ok thanks. Why do you want to delete the revisions (it
> shouldn’t matter if there are a lot)? :) XWiki should
Good to know :-) => less code to write for me ;-)
> support a lot of revisions (even though we have some perf
> issues at some places when there’s are too many revisions
> and we need to fix this ;)).
>
> Otherwise, what you’re looking for is http://jira.xwiki.org/browse/XWIKI-500 but
> there’s little chance this is going to be implemented
> anytime soon (I’m not even sure there’s a consensus on
> it!).
>
great feature (no simple to implement)!
btw "spring cleaning" on http://jira.xwiki.org/ is a good idea :-)
Please guys, I have to graduate in 20 days and I can´t do it if I am not
able to test my software.
At least tell me how can I completely unistall everything from my machine
so I can perform a clean isntallation of XWiki Enterprise.
Giordano.
2016-03-01 19:30 GMT+01:00 Giordano Ninonà <giordano.ninona(a)gmail.com>:
> I don't really know what is going on, I start to get error during the
> loading phase after I click on "XWiki Home Page" icon on my desktop.
> In the attachments you can find my terminal after I started the service
> (Terminal1.PNG) and a portion of the errors that I get after I click on
> "XWiki Home Page" icon. (Terminal 2.PNG, and Terminal 3.PNG).
>
> Giordano.
>
> 2016-03-01 19:03 GMT+01:00 Giordano Ninonà <giordano.ninona(a)gmail.com>:
>
>> HI users,
>>
>> I was in the final testing phase of my component, like always I have ran
>> my Xwiki (version 7.3) then I have deleted the pages that I have to create
>> automatically with my component as well as those apges containing XClass
>> and the sheets. I don't know what I have done uncorrectly, but the point is
>> that now the terminal is saying that there is an* Error number 3202:
>> Exception while reading document [...] *for all the ages that I have
>> deleted, inside the wiki there is no pages to delete.
>>
>> I have unistalled and re-installed my XWiki, and I have tried to create
>> a new wiki with the same identifier and the problem presists.
>>
>> Any help?
>> Giordano.
>>
>
>
Hello,
I try to list the connected users.
I fall on "Connected Users List Macro" but it dates from 2014.
Should I use this extension or is there another way to list open
connections ?
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>
_________________________________________________
Hi Pascal,
On 2 Mar 2016 at 14:53:55, Pascal BASTIEN (pbasnews-xwiki@yahoo.fr(mailto:pbasnews-xwiki@yahoo.fr)) wrote:
>
>
> --- En date de : Mer 2.3.16, vincent(a)massol.net a écrit :
>
> > De: vincent(a)massol.net
> > Objet: Re: [xwiki-users] How to disable versionning for a document
> > À: "XWiki Users"
> > Date: Mercredi 2 mars 2016, 12h19
> >
> >
> > On 2 Mar 2016 at 11:50:30, Pascal BASTIEN (pbasnews-xwiki@yahoo.fr(mailto:pbasnews-xwiki@yahoo.fr))
> > wrote:
> >
> > > Hi,
> > >
> > > I have a page
> > cronly updated with RESTful API and I want disable document
> > versionning for this page only.
> >
> > I’m interested in knowing more about the use
> > case to see if there’s a generic need.
>
> Sure :-) I must read json data from another web site to display it on myxwiki.org web site.
> This one:
> https://set7z18fgf.execute-api.us-east-1.amazonaws.com/prod/?route=getClanD…
> but myxwiki.org log show a certificate problem when i use $xwiki.getURLContent API
> (In fact https://api.clashofclans.com/v1/clans/%23L9CGQYC?Authorization=Bearer xxxxxx with Bearer authentication)
>
> Then my solution, is to add a local cron to:
> - wget my json data from https://set7z18fgf.execute-api.us-east-1.amazonaws.com/
> - use curl to upload json data in a page of myxwiki.org with RESTful api
> This page will be update periodicaly (1 or 2 time per week or less), then I need to wipe history of this updated page.
>
> …
Ok thanks. Why do you want to delete the revisions (it shouldn’t matter if there are a lot)? :) XWiki should support a lot of revisions (even though we have some perf issues at some places when there’s are too many revisions and we need to fix this ;)).
Otherwise, what you’re looking for is http://jira.xwiki.org/browse/XWIKI-500 but there’s little chance this is going to be implemented anytime soon (I’m not even sure there’s a consensus on it!).
Thanks
-Vincent
> > I’ve added this snippet not long ago that you
> > could find useful for this:
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Delete+Revisions+From+…
>
> It is usefull :-)
>
> Thxs
>
> Pascal B
Hello,
I quickly tested the latest version of CKEditor. Here are my remarks :
* when I push the "Source" button, nothing appears. On the button, the
loading sign turns without ever stopping
* the style "Marker" is invisible
* is it possible to add a button for "Typewriter Text" (useful for the
code or configuration files)
* the horizontal line is invisible
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>
_________________________________________________
We try to move two Apps Within A Minute to another xwiki installation. The
files import properly but no icon appears on the left site under
applications. How can we achieve that the Apps Within A Minute will appear
as a real application and not only as pages.
Thank you!
--
View this message in context: http://xwiki.475771.n2.nabble.com/Moving-Apps-within-a-minute-to-another-Xw…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi users,
Yesterday I was testing my java component and after I have deleted some
pages from my wiki (I am running XWiki Enterprise 7.3) I started to get
some errors and malfunctioning such as: I don't see anymore any pages under
the "Deleted pages" index and when I try to delete some nested pages the
wiki is telling me that the deletion would affect several childern even if
those children are not diplayed anywhere. If I agree I got errors becase "I
don't have the permission to delete them" even if I am logged as
administrator.
When I see that I am not even able to call the methods from my java
component through the script service,( those method are in charge of
creating new pages as well XClasses and XObjects) I have decided to
unistall XWiki Enterprise and re-install it. Unfortunately I see that I
have the same errors.
Moreover after I have started the XWiki, before I click on the "XWiki Home"
icon on my desktop, I have noticed in the terminal the following warnings:
*[main] WARN ltInstalledExtensionRepository - Invalid extension
[org.xwiki.platform:xwiki-platform-wiki-ui-common-7.3] on namespace
[wiki:WIKINAME] (InvalidExtensionException: No compatible extension is
installed for dependency
[org.xwiki.platform:xwiki-platform-wiki-ui-common-7.3]*
And I get this warning for each wiki that I have created BEFORE I
UNISTALLED IT.
After I try to call my methods (that should creates wiki pages Xclasses and
Xobjects) it start working until I get a bunch of Exceptions and some ERROR
3002 and some ERROR 2002. The strange thing is that a couple of days ago it
worked fine.
So finally my question is how can I COMPLETELY delete everything that is
related to XWiki Enterprise in my computer and then perform a clean XWiki
Enterprise installation?
I hope to get a quick answer because this is my master thesis project and I
only need to perform some final testing as I am graduating in 40 days.
Please help me in find a solution
Giordano.
Hi
Which versions of Wildfly has Xwiki been tested on, if any?
I'm trying to deploy on 9.0.2 and am getting the following error - and it
fails to deploy:
17:19:23,505 ERROR [io.undertow.request] (
http://localhost:8080/xwiki/bin/view/Main/) UT005023: Exception handling
request to /xwiki/bin/view/Main/: javax.servlet.ServletException:
com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract
Entity Resource Reference from URL [
http://localhost:8080/xwiki/bin/view/Main/]
at
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427)
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
io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)
at
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
at
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
at
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
at
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
at
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
at
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
at
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
at
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
at
io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
at
io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)
at
io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at
io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at
org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at
io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
at
io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at
io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at
io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
at
io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:72)
at
io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
at
io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at
org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:282)
at
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:261)
at
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:80)
at
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:172)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:774)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to
extract Entity Resource Reference from URL [
http://localhost:8080/xwiki/bin/view/Main/]
at com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:808)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:752)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:236)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:191)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
... 55 more
Caused by: java.lang.RuntimeException: Failed to locate wiki descriptor for
alias [localhost]
at
org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:80)
at
org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61)
at
org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.extract(DomainWikiReferenceExtractor.java:47)
at
org.xwiki.url.internal.standard.entity.BinEntityResourceReferenceResolver.extractWikiReference(BinEntityResourceReferenceResolver.java:51)
at
org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:92)
at
org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:51)
at
org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:61)
at
org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:47)
at
org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:64)
at
org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:43)
at
org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:93)
at
org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:48)
at com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:805)
... 59 more
Caused by: org.xwiki.wiki.manager.WikiManagerException: Failed to locate
XWiki.XWikiServerClass document for wiki alias [localhost]
at
org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocumentReference(DefaultWikiDescriptorDocumentHelper.java:128)
at
org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocument(DefaultWikiDescriptorDocumentHelper.java:140)
at
org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager.getByAlias(DefaultWikiDescriptorManager.java:146)
at
org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:78)
... 71 more
Caused by: org.xwiki.query.QueryException: Exception while translating
[where doc.object(XWiki.XWikiServerClass).server = :wikiAlias and doc.name
like 'XWikiServer%'] XWQL query to the [hql] language. Query statement =
[where doc.object(XWiki.XWikiServerClass).server = :wikiAlias and doc.name
like 'XWikiServer%']
at
org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:123)
at
org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71)
at org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287)
at
org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocumentReference(DefaultWikiDescriptorDocumentHelper.java:121)
... 74 more
Caused by: com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception
while reading document [xwiki:XWiki.XWikiServerClass]
at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:989)
at
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:299)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1634)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1680)
at com.xpn.xwiki.XWiki.getXClass(XWiki.java:5890)
at com.xpn.xwiki.XWiki.getClass(XWiki.java:5903)
at
com.xpn.xwiki.doc.DefaultDocumentAccessBridge.isPropertyCustomMapped(DefaultDocumentAccessBridge.java:497)
at
org.xwiki.query.xwql.internal.QueryContext$PropertyInfo.isCustomMapped(QueryContext.java:153)
at
org.xwiki.query.xwql.internal.QueryContext$ObjectInfo.isCustomMapped(QueryContext.java:122)
at
org.xwiki.query.xwql.internal.hql.ObjectPrinter.print(ObjectPrinter.java:37)
at org.xwiki.query.xwql.internal.hql.Printer.print(Printer.java:70)
at
org.xwiki.query.xwql.internal.hql.XWQLtoHQLTranslator.translate(XWQLtoHQLTranslator.java:61)
at
org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:90)
... 77 more
Caused by: org.hibernate.HibernateException: Could not create a DBCP pool.
There is an error in the Hibernate configuration file, please review it.
at
com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:232)
at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143)
at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:84)
at
org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:459)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:90)
at
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:253)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:681)
at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:853)
... 89 more
Caused by: java.sql.SQLException: Cannot load JDBC driver class
'org.hsqldb.jdbcDriver'
at
org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:2139)
at
org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2033)
at
org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
at
com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:215)
... 99 more
Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:193)
at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:180)
at java.security.AccessController.doPrivileged(Native Method)
at org.xwiki.classloader.URIClassLoader.findClass(URIClassLoader.java:179)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at
org.xwiki.classloader.xwiki.internal.ContextNamespaceURLClassLoader.loadClass(ContextNamespaceURLClassLoader.java:176)
at
org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:2131)
... 102 more
Thanks
--
Anton Hughes
I started out with my system configured to use the hibernate attachment
storage and then later converted it to file storage using the Database to
Filesystem porter in the Admin Tools extension. Initially everything
appeared to work fine. Attached images reappeared on the pages after I ran
the porter. But now I'm finding that, if I load a new version of an
attachment image, the page continues to display the old version of the image
instead of the new one. If I edit the page, delete the image and then
reinsert it, the updated version is displayed in the WYSIWYG view. But after
I Save & View the page, the old version of the image is displayed. Even if I
delete the attachment completely from the list of attachments and the page
and then reload the new version (so that the old version is no longer
listed) and add it back to the page, the old version is still displayed.
My environment is as follows:
Debian 8, Java openjdk-7-jre-headless, postgresql 9.4.6, tomcat8
The problem occurs in both my production system on 7.4.1 and a new VM
created from scratch with 7.4.2.
Note that, in order to get the porter to work, I had to replace the groovy
script with the new version provided by Caleb as per
http://xwiki.475771.n2.nabble.com/Admin-Tools-database-to-filesystem-porter…
--
View this message in context: http://xwiki.475771.n2.nabble.com/New-versions-of-attachments-not-recognize…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi users,
I'm trying new ways to spread the word about XWiki. One approach that seems
to be popular right now are review websites such as Getapp and G2Crowd. For
instance Drupal has a page on G2Crowd
<https://www.g2crowd.com/products/drupal/reviews>, so I thought it could be
interesting to try it out too.
In order to see whether this could work well for XWiki, I have created a
page on G2Crowd: *https://www.g2crowd.com/products/xwiki/reviews
<https://www.g2crowd.com/products/xwiki/reviews>*
It would be very cool if you could spend a bit of time to add a review of
your experience with XWiki there!
Thanks and happy XWikiing,
Guillaume
Hi all,
In various web applications these days it is now possible to copy and paste images into web pages which makes the process of adding an image to a document online so much easier as you do not need to save it off somewhere, then upload it. Copy and paste makes the process so much more efficient.
See the upload feature on http://imgur.com/ for example, where they also support drag and drop.
Thanks,
Stuart
Disclaimer: The contents of this E-mail plus any attachment is intended for the use of the addressee only and is confidential, proprietary and may be privileged. It will not be binding upon Trace Group or any group company (Trace). Opinions, conclusions, contractual obligations and other information in this message in so far as they relate to the official business of Trace must be specifically confirmed in writing by Trace. If you are not the intended recipient you must not copy this message or attachment, use or disclose the contents to any other person, but are requested to telephone or E-mail the sender and delete the message and any attachment from your system. Trace takes all reasonable precautions to ensure that no virus or defect is transmitted via this e mail, however Trace accepts no responsibility for any virus or defect that might arise from opening this E-mail or attachments.
--- En date de : Mer 2.3.16, vincent(a)massol.net <vincent(a)massol.net> a écrit :
> De: vincent(a)massol.net <vincent(a)massol.net>
> Objet: Re: [xwiki-users] How to disable versionning for a document
> À: "XWiki Users" <users(a)xwiki.org>
> Date: Mercredi 2 mars 2016, 12h19
>
>
> On 2 Mar 2016 at 11:50:30, Pascal BASTIEN (pbasnews-xwiki@yahoo.fr(mailto:pbasnews-xwiki@yahoo.fr))
> wrote:
>
> > Hi,
> >
> > I have a page
> cronly updated with RESTful API and I want disable document
> versionning for this page only.
>
> I’m interested in knowing more about the use
> case to see if there’s a generic need.
Sure :-) I must read json data from another web site to display it on myxwiki.org web site.
This one:
https://set7z18fgf.execute-api.us-east-1.amazonaws.com/prod/?route=getClanD…
but myxwiki.org log show a certificate problem when i use $xwiki.getURLContent API
(In fact https://api.clashofclans.com/v1/clans/%23L9CGQYC?Authorization=Bearer xxxxxx with Bearer authentication)
Then my solution, is to add a local cron to:
- wget my json data from https://set7z18fgf.execute-api.us-east-1.amazonaws.com/
- use curl to upload json data in a page of myxwiki.org with RESTful api
This page will be update periodicaly (1 or 2 time per week or less), then I need to wipe history of this updated page.
...
>
> I’ve added this snippet not long ago that you
> could find useful for this:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Delete+Revisions+From+…
It is usefull :-)
Thxs
Pascal B
Hi,
We use version 7.1.2. We created some groups in xwiki. And set up them in
LDAP menu. For example, perform next actions:
1. Create xwiki group `test`.
2. In LDAP menu in group mapping section input group name `xwiki.test` and
group in LDAP for mapping `CN=test.... `
It works, users login and appear in group, but after few weeks we see many
duplicated entries in group. If really in group must be ~200 users then
today I see ~4000. This problem exist almost in all LDAP groups.
Why xwiki duplicate user entries in groups? How to delete duplicated entries
in groups ?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Duplicated-entries-in-group-from-LDAP-tp7…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi there,
The login page of XWiki is situated in the XWiki space. From this space
it is not possible to load pages with a XMLHttpRequest in javascript. I
want to work around this by creating a seperate login page with exactly
the same content as the current XWiki login page.
I would like to know if this will pose a security risk or not. I do not
understand why it should but I am asking you to make sure I am not
forgetting anything.
If you like I can share the procedure with you because I think it can be
an improvement over the current situation.
Kind regards,
Jan-Paul Kleijn
Hi Users,
i try to create a hql-query which gives me all documents which contain a
custom object and and a defined property. As properties i have in the object
a multiselect user-list. Now i want to get all documents in which a specific
user is selected in the object. How can i write the hql?
I tried something from
http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples but
nothing seems to work because i always get no results.
Could you help me?
Regards,
Matthias
--
View this message in context: http://xwiki.475771.n2.nabble.com/HQL-Query-on-custom-object-with-user-list…
Sent from the XWiki- Users mailing list archive at Nabble.com.
In 7.4.1 (standalone installation) I'm trying to create a new skin using A.
and C. in http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins. I've a
couple of different variations but can't figure out what I'm doing wrong.
The steps I followed are:
1. Login as Admin - URL is http://localhost:8080/xwiki/bin/view/Main/
2. Edit URL and go to http://localhost:8080/xwiki/bin/view/Main/MySkinPage/
3. I see that the page does not exist and follow the 'edit this page' to
create it.
4. Press the Create button and then Save & View.
5. Open the Objects editor and select the XWiki.XWikiSkins class - press Add
6. In the object properties, set the Name to 'My New Skin'
7. Set the base skin to 'flamingo' - Press Save & View.
8. Select the Test this skin link and everything looks fine.
9. Go to Administer Wiki -> Presentation.
10. Set both the Stylesheet and Stylesheets fields to Main.MySkinPage
11. Set the Skin field to 'My New Skin' and press Save.
12. This results in a Java error
...
Caused by: java.net.URISyntaxException: Illegal character in path at index
9: /skins/My New Skin/admin.vm
...
I thought maybe the error was that spaces were not allowed. So I created a
new instance and followed the same steps but in steps 6 and 11 used
'MyNewSkin'. Then the browser showed the following:
Error
You are not allowed to view this page or perform this action.
The URL was
http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences?editor=globala…
I also thought that maybe in step 11 I need to use Main.MySkinPage instead.
This resulted in the same error, i.e.
Error
You are not allowed to view this page or perform this action.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Not-able-to-create-new-skin-tp7598159.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I have the following question.
I have an main wiki (xwiki) and a subwiki (test)
I want to access objects from class ’space.someclassClass’ located on a page ‘space.somepage' in the main wiki
When in the subwiki, I have a query such as:
String query = "select name.value from XWikiDocument doc, BaseObject obj, StringProperty name where doc.fullName=obj.name and obj.className=‘space.someclassClass’ and” +
"obj.className<>’space.someclassTemplate’ and name.id.id=obj.id order by doc.title"
List<java.lang.Object[]> results = (List<java.lang.Object[]>) (List) this.queryManager.createQuery(query, Query.XWQL).setWiki(“xwiki").execute();
This gives me the name.value of the property of the object in the main wiki.
What I need however is something like:
String query = "select obj from XWikiDocument doc, BaseObject obj where doc.fullName=obj.name and obj.className=‘space.someclassClass’ and” +
"obj.className<>’space.someclassTemplate’ order by doc.title”
I expect this to return a BaseObject. When displaying this (toXMLString()), it is however an empty object:
<?xml version="1.0" encoding="UTF-8"?>
<object>
<name>space.somepage</name>
<number>0</number>
<className>space.someclassClass</className>
<guid>3c145abe-b334-4801-a100-24c8ef2eea9f</guid>
</object>
There is no way (that I have tried) that would give me the object of class “xwiki:space.someclassClass” that contains the properties that I need (and get using the first query).
I expect that it might have to do with the context but I’m not that familiar with it that I know how to do this.
Can someone please shed some light on this?
With kind regards,
Peter Huisman
Hi,
I have a page cronly updated with RESTful API and I want disable document versionning for this page only.
I want to save a little bit storage :-)
Is it possible and how?
If not I suppose I must schedule a full history wipe?
Thxs.
Pascal B
Hi All,
Could you please help me with information about debugging client part!
I don’t understand why I have in the GWT development mode this error:
[ERROR] Errors in 'org/xwiki/gwt/wysiwyg/client/converter/HTMLConverter.java’
[ERROR] Line 22: The import org.xwiki.component cannot be resolved
[ERROR] Line 32: Role cannot be resolved to a type
As I see this package org.xwiki.component.annotation exists in the xwiki-commons-component-api and client part includes this package as maven dependency...
I use file start_wysiwyg_noserver_debug.sh where I added maven dependencies now it looks like :
XE_VERSION=7.4;
GWT_VERSION=2.6.0;
GWT_INCUBATOR_VERSION=2.0.1;
SMART_GWT_VERSION=2.4;
M2_REPO=~/.m2/repository;
APP_DIR=`dirname $0`/webapps/xwiki;
java \
-Xmx1024m \
-Xdebug \
-Xnoagent \
-Djava.compiler=NONE \
-Xrunjdwp:transport=dt_socket,server=y,address=5006,suspend=y \
-cp \
$M2_REPO/org/xwiki/platform/xwiki-platform-gwt-dom/$XE_VERSION/xwiki-platform-gwt-dom-$XE_VERSION.jar:\
$M2_REPO/org/xwiki/platform/xwiki-platform-gwt-user/$XE_VERSION/xwiki-platform-gwt-user-$XE_VERSION.jar:\
$M2_REPO/org/xwiki/platform/xwiki-platform-oldcore/$XE_VERSION/xwiki-platform-oldcore-$XE_VERSION.jar:\
$M2_REPO/org/xwiki/commons/xwiki-commons-component-api/8.0-SNAPSHOT/xwiki-commons-component-api-8.0-SNAPSHOT.jar:\
$M2_REPO/org/xwiki/platform/xwiki-platform-wysiwyg-client/$XE_VERSION/xwiki-platform-wysiwyg-client-$XE_VERSION.jar:\
$M2_REPO/org/xwiki/platform/xwiki-platform-wysiwyg-server/$XE_VERSION/xwiki-platform-wysiwyg-server-$XE_VERSION.jar:\
$M2_REPO/org/xwiki/platform/xwiki-platform-wysiwyg-client/$XE_VERSION/xwiki-platform-wysiwyg-client-shared-$XE_VERSION.jar:\
$M2_REPO/org/xwiki/platform/xwiki-platform-wysiwyg-plugin-api/$XE_VERSION/xwiki-platform-wysiwyg-plugin-api-$XE_VERSION.jar:\
$M2_REPO/com/google/gwt/gwt-user/$GWT_VERSION/gwt-user-$GWT_VERSION.jar:\
$M2_REPO/com/google/gwt/gwt-dev/$GWT_VERSION/gwt-dev-$GWT_VERSION.jar: \
com.google.gwt.dev.DevMode \
-noserver \
-port 8080 \
-war $APP_DIR/resources/js/xwiki/wysiwyg \
-startupUrl xwiki/bin/edit/Sandbox/Test?editor=wysiwyg \
org.xwiki.gwt.wysiwyg.Wysiwyg
Best regards,
Maxim Birukov