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