Hello,
A new version of the Nested Pages Migrator Application is available. See
http://extensions.xwiki.org/xwiki/bin/view/Extension/Nested+Pages+Migrator+…
You can install or upgrade with the Extension Manager.
This version brings a new tool that help you to check if the migration is
needed.
Thanks,
--
Guillaume Delhumeau (guillaume.delhumeau(a)xwiki.com)
Research & Development Engineer at XWiki SAS
Committer on the XWiki.org project
No the macro doesn't work with
{{code}}
test
{{/code}}
same error.
I must try with same couple tomcat/java on my dev server.
I think the problem coming from secure stuff (chroot, acl, reverse proxy, etc.) on our data center but i don't know where to search error source :-/
--------------------------------------------
En date de : Mar 29.11.16, Thomas Mortagne <thomas.mortagne(a)xwiki.com> a écrit :
Objet: Re: [xwiki-users] code macro/jython-standalone-2.7.0-xwiki-3.jar problem
À: "Pascal BASTIEN" <pbasnews-xwiki(a)yahoo.fr>, "XWiki Users" <users(a)xwiki.org>
Date: Mardi 29 novembre 2016, 18h33
The error you pasted have
nothing to do with
http://jira.xwiki.org/browse/XWIKI-7984
plus XWIKI-7984 is specific to
Jboss
AS.
The code macro works
well with Tomcat and the setup you indicated is
pretty standard for XWiki. It's probably a
Jython or Pygments bug with
the specific
content you tried.
Does the
macro work with some very simple content like:
{{code}}
test
{{/code}}
?
If it work with other content then please
create a jira issue with the
content that
reproduce the error and we will try to reproduce it and
understand where it come from exactly.
On Tue, Nov 29, 2016 at 3:55 PM, Pascal BASTIEN
<pbasnews-xwiki(a)yahoo.fr>
wrote:
> Hello,
>
> I try to deploy xwiki 8.4 on Tomcat
8.0.32/ java 1.8.0_74 on our datacenter but I have a issue
with the code macro:
> {{code}}
> My code
> {{/code}}
>
> The page displayed:
"Failed to execute the [code] macro. Cause: [String
index out of range: 3]. Click on this message for
details.".
> I pasted the details
here: http://pastebin.ca/3743091
>
> I tested this way http://jira.xwiki.org/browse/XWIKI-7984
> (open jython-standalon jar/extract
everything in Lib/* and put this in a new jar at the root of
the jar/put the new ) but it doesn't work.
>
> Do you have an idea
what this problem coming from?
>
> (It seem that someone else have same
problem: https://demon.aeto.net/Macro/CitationBox)
>
> Thxs for any help
>
> Pascal
BASTIEN
--
Thomas
Mortagne
Hello,
I try to deploy xwiki 8.4 on Tomcat 8.0.32/ java 1.8.0_74 on our datacenter but I have a issue with the code macro:
{{code}}
My code
{{/code}}
The page displayed: "Failed to execute the [code] macro. Cause: [String index out of range: 3]. Click on this message for details.".
I pasted the details here: http://pastebin.ca/3743091
I tested this way http://jira.xwiki.org/browse/XWIKI-7984
(open jython-standalon jar/extract everything in Lib/* and put this in a new jar at the root of the jar/put the new ) but it doesn't work.
Do you have an idea what this problem coming from?
(It seem that someone else have same problem: https://demon.aeto.net/Macro/CitationBox)
Thxs for any help
Pascal BASTIEN
Hello,
I added some others attributes (I don't know if you can do the same with file)
Add some attributes here: /bin/edit/XWiki/XWikiUsers?editor=class
e.g. myaddress
(disabled it to prevent your user modified it)
Add this field "myaddress" on the sheet: /bin/view/XWiki/AdminUserProfileSheet
and finally add it in xwiki.cfg:
#-# retrieve the following fields from LDAP and store them in the XWiki user object (xwiki-attribute=ldap-attribute)
xwiki.authentication.ldap.fields_mapping=last_name=sn,first_name=givenName,email=xxxxx....cut....,myaddress=street
and choose a value for this setting:
#-# On every login update the mapped attributes from LDAP to XWiki otherwise this happens only once when the XWiki
#-# account is created.
#-# - 0: only when creating user
#-# - 1: at each authentication
#-# The default is 0
xwiki.authentication.ldap.update_user=1
(eventually add a XWiki.TranslationDocumentClass to translate myaddress attribute)
Pascal BASTIEN
--------------------------------------------
En date de : Ven 25.11.16, mh(a)ow2.org <mh(a)ow2.org> a écrit :
Objet: [xwiki-users] API/Scripting : create user and attach some files to its profile
À: "XWiki Users" <users(a)xwiki.org>
Date: Vendredi 25 novembre 2016, 12h37
Hi,
I'm working on a registration system around xwiki.
The basic workflow is the user is created in a LDAP
directory at
registration time. Then the user can login to xwiki.
It's only upon the first successful login to xwiki that the
user's xwiki
profile is created in xwiki database.
Now here is my point : how could I prepare the user profile
*before* he
gets connected ? For example I would be able to attach some
files to
XWiki.<username> and why not some others attributes.
Is anyone already achieved this ?
Cheers
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
I use Autohotkey to get text from a page with this url:
UrlDownloadToFile, http://
Server:8080/xwiki/rest/wikis/wiki/subwiki/Main/pages/MyPage?outputSyntax=plain&xpage=plain
C:\temp\MyText.txt
How do i do this with curl from a *SUBWIKI*?
curl -u Admin:admin
"Server:8080/xwiki/rest/wikis/wiki/*subwiki*/Main/pages/MyPage?outputSyntax=plain&xpage=plain"
is not working
Thanks Volker
Hi everyone,
I have spent some time trying to use the Include macro without success. It
requires a reference to the entity (e.g. document) that I want to be
included, but it is not obvious how to correctly generate this reference
value. Some guides say it should be in the form of <space name>.<document
name> but where are spaces in XWiki? I know XWiki has subwikis but I don't
see spaces anywhere. And I tried <subwiki name>.<document name> too, to no
avail. No errors were displayed either.
Thanks!
Hi,
I'm working on a registration system around xwiki.
The basic workflow is the user is created in a LDAP directory at
registration time. Then the user can login to xwiki.
It's only upon the first successful login to xwiki that the user's xwiki
profile is created in xwiki database.
Now here is my point : how could I prepare the user profile *before* he
gets connected ? For example I would be able to attach some files to
XWiki.<username> and why not some others attributes.
Is anyone already achieved this ?
Cheers
On Thu, Nov 24, 2016 at 2:28 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> wrote:
>
>> >> >
>> >> > I use this methods,
>> >> hasParent(EntityReference
>> expectedParent) and i noticed that
>> >>
>> I can not use string to set EntityReference.
>> >> > Then i must use this before:
>> "#set
>> >> ($reference =
>> >>
>> $services.model.resolveSpace('xwiki:Encyclopédie'))"
>> >> and
>> "$doc.documentReference.hasParent($reference)"
>> >> because
>> >>
>> $doc.documentReference.hasParent('xwiki:Encyclopédie')
>> >> doesn't work.
>> >> > Am I right? Anyway, I
>> >> can understand that.
>> >>
>> >> There
>> >> is one magic thing about Velocity in
>> XWiki that you need to
>> >> keep
>> >> in mind: it automatically convert
>> >> parameters to the right type (when
>> >> there is
>> >> a
>> converter provided for that type).
>> >>
>> >> For example
>> the converter for the type
>> >>
>> EntityReference understand the
>> >>
>> following
>> >> syntax:
>> [<entitytype>:]<entityreference> (the
>> >> default entity
>> >> type is "document"
>> >> if you don't provide it) so the
>> space with
>> >> reference
>> "xwiki:Encyclopédie" will
>> >> be the string
>> >>
>> "space:xwiki:Encyclopédie" as in
>> >>
>> hasParent('space:xwiki:Encyclopédie').
>> >
>> > Right :-)
>> $doc.documentReference.hasParent('space:xwiki:Encyclopédie')
>> work well but I don't understand why we must use
>> "xwiki" in space name.
>>
>> You don't have to use "xwiki".
>> "xwiki" is is the wiki in which the
>> space is located, if you want the space
>> "Encyclopédie" in the current
>> wiki then just don't put the wiki as in
>> $doc.documentReference.hasParent('space:Encyclopédie').
>> Keep it mind
>> that we are talking about the
>> space reference here, not the space
>> name.
>
> Heu .... it is not the same?
>
> Then maybe I found an issue because without "xwiki:" documentReference.hasParent doesn't work:
> On jetty package 8.4:
> I paste this velocity code: in the page: http://localhost:8080/xwiki/bin/edit/Paréééént/sousParent/WebHome
> $doc.documentReference.hasParent('space:Paréééént') doesn't work (false)
> $doc.documentReference.hasParent('space:xwiki:Paréééént') work well (true)
>
> $doc.documentReference.hasParent('space:sousParent') doesn't work (false)
> $doc.documentReference.hasParent('space:xwiki:Paréééént.sousParent') work well (true)
Indeed I skipped the fact that hasParent does not resolve the
parameter, it has to be the full reference so indeed you have to
explicitly indicate the wiki or it won't match the document wiki.
Then it depend what is your exact use case:
* if you want to check if the document in in the space "Paréééént" of
the current wiki then you should resolve "Paréééént" and then passe
the resolved reference to hasParent
* if you know you are searching in wiki "xwiki" then it's fine with
hasParent('space:xwiki:Paréééént')
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne