Re: [xwiki-users] debian + xwiki 7.1.1

2015-06-26 Thread Thomas Mortagne
Maybe it's related to http://jira.xwiki.org/browse/XWIKI-12246 then.

On Thu, Jun 25, 2015 at 6:58 PM, Oli Bertu  wrote:
> I saw xwiki.org had same issue as me, after clearing of a cache is xwiki.org
> looking good, but my XWiki page has still same issue. But it's only after
> changing XWiki as root webapp
>
> Oli
>
> On Thu, Jun 25, 2015 at 6:18 PM,  wrote:
>
>>
>>
>> Message: 2
>> Date: Thu, 25 Jun 2015 14:50:24 +0200
>> From: Thomas Mortagne 
>> To: XWiki Users 
>> Subject: Re: [xwiki-users] debian + xwiki 7.1.1
>> Message-ID:
>> > go33oh...@mail.gmail.com>
>> Content-Type: text/plain; charset=UTF-8
>>
>> I had the issue on xwiki.org but then I cleared by browser cache and
>> it's fine for me now, maybe that's your issue too.
>>
>> On Thu, Jun 25, 2015 at 2:12 PM, Oli Bertu  wrote:
>> > Hello,
>> >
>> > I made installation of XWiki on debian using APT by next steps
>> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT
>> >
>> > I followed also XWiki as root webapp, but I have problem, that icons for
>> > buttons changed and button for submenu also doesn't work. You can see
>> also
>> > that icons are also strange on main page of xwiki.org.
>> >
>> > Do you know somebody how to correct it?
>> >
>> > BR Oli
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>>
>>
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Transfer from Confluence

2015-07-06 Thread Thomas Mortagne
You can look at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Confluence+XML+module
for the technical how to import a Confluence export file.

Right now there is no general migrate from Confluence documentation I
can think of.

On Mon, Jul 6, 2015 at 11:53 AM, Paul Libbrecht  wrote:
>
> Hello XWiki experts,
>
> I see that the Confluence syntax is supported and seems to be working
> well. That is cool.
> Is there a more global advice about migrating from Confluence?
>
> I see here and there mentions of big XMLs which would be exports from
> Confluence but nothing that looks like a recipe.
>
> Thanks for hints.
>
> paul
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] database name using the standalone jetty?

2015-07-07 Thread Thomas Mortagne
Actually this is probably not related to hibernate configuration file
but to the fact that the fist thing XWiki does is switching to the
database corresponding to wiki in the XWikiContext (so "xwiki" by
default for the main wiki when the database is MySQL). You can change
it in xwiki.cfg (property xwiki.db).xwiki

On Tue, Jul 7, 2015 at 5:17 PM, Paul Libbrecht  wrote:
>
> Hello XWiki experts,
>
> today, I tried to install a fresh xwiki. I downloaded the jetty thing in
> the current release (I do not like installers) and adjusted the
> hibernate.cfg.xml to uncomment the MySQL part and have
>name="connection.url">jdbc:mysql://localhost/notationCensus
> and related user and password.
>
> At launch, http://localhost:8080/xwiki/bin/view/Main/, however, it tells me:
>   com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access
> denied for user 'xwiki'@'localhost' to database 'xwiki'
>
> So...
> - the change to MySQL is well received
> - the change of user is right (I also tried changing it)
> - but the database name seems to be stuck.
>
> Is there some multiwiki ghost somewhere that I need to educate?
>
> thanks in advance.
>
> Paul
> _______
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] database name using the standalone jetty?

2015-07-08 Thread Thomas Mortagne
What would be even better is to use whatever is the database in the
hibernate configuration as main wiki database but in the meantime
adding some comment would be useful yes.

On Tue, Jul 7, 2015 at 11:34 PM, Paul Libbrecht  wrote:
> thanks Thomas,
>
> that was helpful.
> I uncommented xwiki.db= and set it accordingly. And it started to work.
> It would be good to add a comment about it into each of the DBs' section
> of the hibernate file.
>
> Paul
>
>
>
>
>> Thomas Mortagne <mailto:thomas.morta...@xwiki.com>
>> 7 juillet 2015 17:33via Postbox
>> <https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_campaign=reach>
>> Actually this is probably not related to hibernate configuration file
>> but to the fact that the fist thing XWiki does is switching to the
>> database corresponding to wiki in the XWikiContext (so "xwiki" by
>> default for the main wiki when the database is MySQL). You can change
>> it in xwiki.cfg (property xwiki.db).xwiki
>>
>>
>>
>> Paul Libbrecht <mailto:p...@hoplahup.net>
>> 7 juillet 2015 17:17via Postbox
>> <https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_campaign=reach>
>> Hello XWiki experts,
>>
>> today, I tried to install a fresh xwiki. I downloaded the jetty thing in
>> the current release (I do not like installers) and adjusted the
>> hibernate.cfg.xml to uncomment the MySQL part and have
>> > name="connection.url">jdbc:mysql://localhost/notationCensus
>> and related user and password.
>>
>> At launch, http://localhost:8080/xwiki/bin/view/Main/, however, it
>> tells me:
>> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access
>> denied for user 'xwiki'@'localhost' to database 'xwiki'
>>
>> So...
>> - the change to MySQL is well received
>> - the change of user is right (I also tried changing it)
>> - but the database name seems to be stuck.
>>
>> Is there some multiwiki ghost somewhere that I need to educate?
>>
>> thanks in advance.
>>
>> Paul
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] DocumentSavingEvent

2015-07-10 Thread Thomas Mortagne
Nop you can't cancel saving right now, but you can use
DocumentSavingEvent to revert any change you don't like in the
document before the save.


On Fri, Jul 10, 2015 at 11:05 AM, Peter Huisman  wrote:
> Hi,
>
> I was wondering if there is a way to stop the document from being saved using 
> this event listener (or any similar event listener for that matter)?
>
> With kind regards,
>
> Peter
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] DocumentCreatingEvent

2015-07-10 Thread Thomas Mortagne
Same answer than for DocumentSavingEvent mail.

On Fri, Jul 10, 2015 at 11:06 AM, Peter Huisman  wrote:
> Hi,
>
> I was wondering if there is a way to stop the document from being saved using 
> this event listener (or any similar event listener for that matter)?
>
> With kind regards,
>
> Peter
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] DocumentSavingEvent

2015-07-10 Thread Thomas Mortagne
SaveAction is only one way to modify a document, it won't cover things
like scripts for example.

On Fri, Jul 10, 2015 at 12:07 PM, Peter Huisman  wrote:
> Thanks Thomas,
>
> Sorry about the double question. It was intended to be only one :-) I am 
> however able to cancel the SAVE by canceling the 
> ActionExecutingEvent(SaveAction.ACTION_NAME) which is triggered by the Save. 
> This however displays an empty page when I send an event.cancel().
>
> It would be a solution if I could somehow display the previous page or some 
> kind of error message. I’m not that much of an expert in Java / xWiki that I 
> understand if and how this could be accomplished. Any suggestions?
>
> Br,
>
> Peter
>> Op 10 jul. 2015, om 12:00 heeft users-requ...@xwiki.org het volgende 
>> geschreven:
>>
>> Send users mailing list submissions to
>>   users@xwiki.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>   http://lists.xwiki.org/mailman/listinfo/users
>> or, via email, send a message with subject or body 'help' to
>>   users-requ...@xwiki.org
>>
>> You can reach the person managing the list at
>>   users-ow...@xwiki.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of users digest..."
>> Today's Topics:
>>
>>   1. DocumentSavingEvent (Peter Huisman)
>>   2. DocumentCreatingEvent (Peter Huisman)
>>   3. Re: DocumentSavingEvent (Thomas Mortagne)
>>   4. Re: DocumentCreatingEvent (Thomas Mortagne)
>>
>> Van: Peter Huisman 
>> Onderwerp: [xwiki-users] DocumentSavingEvent
>> Datum: 10 juli 2015 11:05:14 CEST
>> Aan: users@xwiki.org
>> Antwoord aan: XWiki Users 
>>
>>
>> Hi,
>>
>> I was wondering if there is a way to stop the document from being saved 
>> using this event listener (or any similar event listener for that matter)?
>>
>> With kind regards,
>>
>> Peter
>>
>>
>>
>> Van: Peter Huisman 
>> Onderwerp: [xwiki-users] DocumentCreatingEvent
>> Datum: 10 juli 2015 11:06:59 CEST
>> Aan: users@xwiki.org
>> Antwoord aan: XWiki Users 
>>
>>
>> Hi,
>>
>> I was wondering if there is a way to stop the document from being saved 
>> using this event listener (or any similar event listener for that matter)?
>>
>> With kind regards,
>>
>> Peter
>>
>>
>>
>> Van: Thomas Mortagne 
>> Onderwerp: Antw.: [xwiki-users] DocumentSavingEvent
>> Datum: 10 juli 2015 11:08:49 CEST
>> Aan: XWiki Users 
>> Antwoord aan: XWiki Users 
>>
>>
>> Nop you can't cancel saving right now, but you can use
>> DocumentSavingEvent to revert any change you don't like in the
>> document before the save.
>>
>>
>> On Fri, Jul 10, 2015 at 11:05 AM, Peter Huisman  wrote:
>>> Hi,
>>>
>>> I was wondering if there is a way to stop the document from being saved 
>>> using this event listener (or any similar event listener for that matter)?
>>>
>>> With kind regards,
>>>
>>> Peter
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>>
>>
>>
>>
>> Van: Thomas Mortagne 
>> Onderwerp: Antw.: [xwiki-users] DocumentCreatingEvent
>> Datum: 10 juli 2015 11:09:30 CEST
>> Aan: XWiki Users 
>> Antwoord aan: XWiki Users 
>>
>>
>> Same answer than for DocumentSavingEvent mail.
>>
>> On Fri, Jul 10, 2015 at 11:06 AM, Peter Huisman  wrote:
>>> Hi,
>>>
>>> I was wondering if there is a way to stop the document from being saved 
>>> using this event listener (or any similar event listener for that matter)?
>>>
>>> With kind regards,
>>>
>>> Peter
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>>
>>
>>
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Javascript Errors

2015-07-17 Thread Thomas Mortagne
Sounds like for some reason you don't have require.js loaded.

When you look at a page source do you find  in
the head ?

If you do is this link actually returning you javascript ?

On Fri, Jul 17, 2015 at 3:12 PM, Listes N>T
 wrote:
>
> Hello,
>
> I install xwiki 7.1.1 or 7.2M1 on a debian 7 or 8 (newer, fresh install), i 
> have a javascript problem :
> ReferenceError: require is not defined
>
> These errors appear during installation and on the wii also.
> These errors block all web pages javascript
>
>
> How can i do to resolve these errors ?
> The new version, 7.2M1 do not correct these errors.
>
> I use the Debian package.
>
> Thans for your help,
>
> Julien
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Javascript Errors

2015-07-17 Thread Thomas Mortagne
You should also probably clean your browser cache, just in case.

On Fri, Jul 17, 2015 at 4:13 PM, Thomas Mortagne
 wrote:
> Sounds like for some reason you don't have require.js loaded.
>
> When you look at a page source do you find  type="text/javascript"
> src="/xwiki/webjars/requirejs/2.1.15/require.min.js?r=1"> in
> the head ?
>
> If you do is this link actually returning you javascript ?
>
> On Fri, Jul 17, 2015 at 3:12 PM, Listes N>T
>  wrote:
>>
>> Hello,
>>
>> I install xwiki 7.1.1 or 7.2M1 on a debian 7 or 8 (newer, fresh install), i 
>> have a javascript problem :
>> ReferenceError: require is not defined
>>
>> These errors appear during installation and on the wii also.
>> These errors block all web pages javascript
>>
>>
>> How can i do to resolve these errors ?
>> The new version, 7.2M1 do not correct these errors.
>>
>> I use the Debian package.
>>
>> Thans for your help,
>>
>> Julien
>>
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Javascript Errors

2015-07-17 Thread Thomas Mortagne
Ok so looks like XWiki webjars handling is not a big fan of root webapp.

Would be great if you could create a bug issue on http://jira.xwiki.org.

On Fri, Jul 17, 2015 at 4:23 PM, Listes N>T
 wrote:
> Hello,
>
> i find
>
>  src="//webjars/requirejs/2.1.15/require.min.js?r=1 
> <view-source:<a  rel="nofollow" href="http://webjars/requirejs/2.1.15/require.min.js?r=1">http://webjars/requirejs/2.1.15/require.min.js?r=1</a>>">
>
> because xwiki is my root webapp
>
> i rename xwiki.xml in ROOT.xml and change xpath to / .
>
>
> Thanks for your help.
>
> Julien
>
>
>
>> Le 17 juil. 2015 à 16:13, Thomas Mortagne  a 
>> écrit :
>>
>> Sounds like for some reason you don't have require.js loaded.
>>
>> When you look at a page source do you find > type="text/javascript"
>> src="/xwiki/webjars/requirejs/2.1.15/require.min.js?r=1"> in
>> the head ?
>>
>> If you do is this link actually returning you javascript ?
>>
>> On Fri, Jul 17, 2015 at 3:12 PM, Listes N>T
>>  wrote:
>>>
>>> Hello,
>>>
>>> I install xwiki 7.1.1 or 7.2M1 on a debian 7 or 8 (newer, fresh install), i 
>>> have a javascript problem :
>>> ReferenceError: require is not defined
>>>
>>> These errors appear during installation and on the wii also.
>>> These errors block all web pages javascript
>>>
>>>
>>> How can i do to resolve these errors ?
>>> The new version, 7.2M1 do not correct these errors.
>>>
>>> I use the Debian package.
>>>
>>> Thans for your help,
>>>
>>> Julien
>>>
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Active Directory 1000 user query limit

2015-07-23 Thread Thomas Mortagne
Since 6.3 there is a xwiki.authentication.ldap.maxresults
configuration in xwiki.cfg file to configure this.

Before that there is not really any way to do that out of the box.
However LDAP authenticator is not changing very often so you could
probably try to replace the xwiki-platform-ldap-authenticator jar you
have in WEB-INF/lib by the 6.3 (or more) one you can find on
http://nexus.xwiki.org/nexus/content/groups/public/org/xwiki/platform/xwiki-platform-ldap-authenticator/6.3/.

On Mon, Jul 20, 2015 at 11:49 PM, Johns,Andy  wrote:
> Need to open up a wiki to more than 1000 users using  active directory.
> Using Enterprise version 5.42
>
> Thanks
>
> Andy
>
>
>
> If you are not the intended recipient of this message (including 
> attachments), or if you have received this message in error, immediately 
> notify us and delete it and any attachments.
>
> If you do not wish to receive any email messages from us, excluding 
> administrative communications, please email this request to 
> messa...@edwardjones.com along with the email address you wish to unsubscribe.
>
> For important additional information related to this email, visit 
> www.edwardjones.com/US_email_disclosure<http://www.edwardjones.com/US_email_disclosure>.
>  Edward D. Jones & Co., L.P. d/b/a Edward Jones, 12555 Manchester Road, St. 
> Louis, MO 63131 © Edward Jones. All rights reserved.
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] LDAP exeption Confidentiality Required

2015-07-28 Thread Thomas Mortagne
pplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  [tomcat-catalina-7.0.52.jar:7.0.52]
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  [tomcat-catalina-7.0.52.jar:7.0.52]
> at 
> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
>  [xwiki-platform-container-servlet-6.4.4.jar:na]
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>  [tomcat-catalina-7.0.52.jar:7.0.52]
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  [tomcat-catalina-7.0.52.jar:7.0.52]
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>  [tomcat-catalina-7.0.52.jar:7.0.52]
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>  [tomcat-catalina-7.0.52.jar:7.0.52]
> at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>  [tomcat-catalina-7.0.52.jar:7.0.52]
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) 
> [tomcat-catalina-7.0.52.jar:7.0.52]
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) 
> [tomcat-catalina-7.0.52.jar:7.0.52]
> at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) 
> [tomcat-catalina-7.0.52.jar:7.0.52]
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>  [tomcat-catalina-7.0.52.jar:7.0.52]
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) 
> [tomcat-catalina-7.0.52.jar:7.0.52]
> at 
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
>  [tomcat-coyote-7.0.52.jar:7.0.52]
> at 
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
>  [tomcat-coyote-7.0.52.jar:7.0.52]
> at 
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
>  [tomcat-coyote-7.0.52.jar:7.0.52]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>  [na:1.7.0_79]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>  [na:1.7.0_79]
> at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
>
>
> Caused by: com.novell.ldap.LDAPException:Confidentiality Required
>
>
> at com.novell.ldap.LDAPResponse.getResultException(Unknown Source) 
> ~[jldap-4.3.jar:na]
> at com.novell.ldap.LDAPResponse.chkResultCode(Unknown Source) 
> ~[jldap-4.3.jar:na]
> at com.novell.ldap.LDAPConnection.chkResultCode(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:231)
>  ~[xwiki-platform-ldap-authenticator-6.4.4.jar:na]
>     at 
> com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:193)
>  ~[xwiki-platform-ldap-authenticator-6.4.4.jar:na]
> ... 55 common frames omitted
> 2015-07-24 14:06:36,209 
> [http://myserver.com/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG 
> u.i.L.XWikiLDAPAuthServiceImpl - Trying authentication against XWiki DB
> 2015-07-24 14:06:36,212 
> [http://myserver.com/xwiki/bin/loginsubmit/XWiki/XWikiLogin] DEBUG 
> u.i.L.XWikiLDAPAuthServiceImpl - LDAP authentication failed for user [Dummy 
> User]
>
>
> Does anyone know how to fix "Confidentiality Required" error?
>
> Thanks in advance!
>
>
> Kind regards,
>
> Dmitry
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] problem after update to 7.1.1

2015-07-30 Thread Thomas Mortagne
beddableComponentManager.java:363)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:424)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:214)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> ... 19 common frames omitted
> Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to 
> lookup component [org.xwiki.context.internal.DefaultExecutionContextManager] 
> identified by [role = [interface org.xwiki.context.ExecutionContextManager] 
> hint = [default]]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:394)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:190)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:363)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:424)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:392)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> ... 24 common frames omitted
> Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to 
> lookup component [role = [interface 
> org.xwiki.context.ExecutionContextInitializer] hint = [velocity]]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.getInstanceMap(EmbeddableComponentManager.java:216)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.getInstanceList(EmbeddableComponentManager.java:198)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:350)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:424)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> at 
> org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:392)
>  ~[xwiki-commons-legacy-component-default-7.1.1.jar:na]
> ... 29 common frames omitted
> Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to 
> lookup component [org.xwiki.velocity.internal.DefaultVelocityContextFactory] 
> identified by [role = [interface org.xwiki.velocity.VelocityContextFactory] 
> hint = [default]]
>
> And I'm not able to change the configuration of the ROOT path to access to 
> the XWiki. I need to use the following urtl 
> http://:8080/xwiki<http://%3cserver%3e:8080/xwiki>. But I want to 
> access with the url http://:8080/<http://%3cserver%3e:8080/>.
>
> Some help, please.
> Regards
> /Olivier
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Getting user name with a Java Component

2015-07-31 Thread Thomas Mortagne
DocumentAccessBridge is still the current way to get the context user.

Now the way ExecutionContext has been designed it will always be
generic and you are supposed to use specialised API to access
something like the current user (you are not supposed to know how
exactly it's stored in the context) and user concept will probably
always be a XWiki Platform concept anyway. Now we would like to put
Platform in Maven central but we still have lots of dependencies that
are not there.

On Fri, Jul 31, 2015 at 9:06 AM, Bryn Jeffries
 wrote:
> Some time last year I had to write a component for XWiki 6.3 that required 
> the current user name, which following the advice at the time required 
> injecting a DocumentAccessBridge:
>
> @Inject
> private DocumentAccessBridge documentAccessBridge;
>
> and then calling documentAccessBridge.getCurrentUserReference().getName())
>
> This has the consequence of having to pull in the xwiki-core-bridge module 
> from the  XWiki Remote Maven repo, rather than just using the XWiki Commons 
> code in Maven Central.
>
> At the time, Vincent mentioned 
> (http://xwiki.475771.n2.nabble.com/Getting-user-name-with-a-Java-Component-td7593245.html#a7593275)
>  "You're right, our goal is to have all context information (including the 
> user) be put in the Execution Context."
>
> I'm now having to rewrite some of this component, and I'm now using XWiki 
> 7.1.1. Has there been any development in shifting the user name over to the 
> Execution Context so that I can avoid using the bridge module?
>
> Thanks,
>
> Bryn
> _______
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Getting user name with a Java Component

2015-07-31 Thread Thomas Mortagne
On Fri, Jul 31, 2015 at 9:47 AM, Bryn Jeffries
 wrote:
> Thomas Mortagne wrote:
>>
>> DocumentAccessBridge is still the current way to get the context user.
>>
>> Now the way ExecutionContext has been designed it will always be generic
>> and you are supposed to use specialised API to access something like the
>> current user (you are not supposed to know how exactly it's stored in the
>> context) and user concept will probably always be a XWiki Platform concept
>> anyway. Now we would like to put Platform in Maven central but we still
>> have lots of dependencies that are not there.
>
> Fair enough. For some reason I'm really struggling to include the right 
> repository for Platform. What details should I be using in my settings.xml? 
> I've included everything from the example in 
> http://dev.xwiki.org/xwiki/bin/view/Community/Building but I still can't 
> resolve the dependency.

What's in 
http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven
should be enough, that's exactly what I have on my side.

>
> Thanks,
>
> Bryn
>
> _______
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Generating a DocumentReference

2015-08-05 Thread Thomas Mortagne
It all depend why you need a DocumentReference.

* if you are in Velocity and need to pass a DocumentReference to a
method then you can directly pass the string and it will be converted
to DocumentReference automatically based on the current context
* otherwise for this use case you are usually supposed to use a resolver:
** in Velocity: $services.model.resolveDocumet($docString)
** in java: the "current" DocumentReferenceResolver in your case

See 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Model+Module#HResolvingaReference
for more detail about resolvers.

On Wed, Aug 5, 2015 at 8:00 PM, Peter Huisman  wrote:
> Hi,
>
> I am looking for a way to create a document reference without the “hassle” of 
> worrying about the WikiName. In a listener, I get a document name which I use 
> for input in a query. The result is a list of documentNames in the format 
> [space.docname]. I need to transform this into a DocumentReference. I can do 
> this without using the wiki, but this gives me “wiki” as the default Wiki. I 
> gate get the wiki from (e.g.) the context, but this means I have to do - as 
> far as I know - one of the two following creations:
>
> 1 - documentReferenceResolver ( wikiName + “:” + docFullName)
>
> Where docFullName is in the format [space.docname]
>
> 2 - new DocumentReference ( wikiName, spaceName, docName)
>
> In this case, I will have to split the fullName string in order to get access 
> to the spaceName and the docName. If I use a query that delivers me only the 
> pageName, I have the problem of not being able to resolve the spaceName.
>
> I am fairly sure I miss something essential here. Could someone help me out? 
> I’m also fine with any answer that gives me a XWikiDocument :-)
>
> With kind regards,
>
> Peter
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] jQuery UI components in XWiki

2015-08-13 Thread Thomas Mortagne
Yes bootstrap is bundled mostly because XWiki skin is based on it.
Le 13 août 2015 6:42 AM, "Bryn Jeffries"  a
écrit :

> Vincent Massol wrote:
> > Would be great if you could help us and add this information
> > on http://platform.xwiki.org/xwiki/bin/view/DevGuide/FrontendResources :
> )
> >
> > If you don’t have the time, I’ll do it when I’m back from holidays
> (still on
> > holidays for the coming 4 days :)).
>
> Sure, I'll add what I can. Incidentally, am I right in thinking Bootstrap
> is also bundled with XWiki?
>
> Many thanks for responding during your well-earned time off.
>
> Bryn
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-08-16 Thread Thomas Mortagne
XWiki require Java 7 since 6.0.

On Sun, Aug 16, 2015 at 3:11 PM, Mohit Gupta  wrote:
> I download the xwiki war file i.e xwiki-enterprise-web-7.2-milestone-2 with
> db as Oracle.
>
> Here the configuration in hibernate.cfg.file
>
> jdbc:oracle:thin:@localhost
> :1521:orcl
> xwiki
> xwiki
>  name="connection.driver_class">oracle.jdbc.driver.OracleDriver
>  name="dialect">org.hibernate.dialect.Oracle10gDialect
> true
> 0
> false
> true
> 20
> 
> 
> 
> 
> 
>
> But when i hit the url in browser i get below error
>
>
>
>
> XWiki initialization failed!
>
> Exception thrown during job execution
> class java.lang.AbstractMethodError: null
> at
> org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
> at
> org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
> at
> org.apache.commons.dbcp2.PoolableConnection.validate(PoolableConnection.java:283)
> at
> org.apache.commons.dbcp2.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:357)
> at
> org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2304)
> at
> org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2287)
> at
> org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2038)
> at
> org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
> at
> com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:215)
> 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:842)
> at
> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:299)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1562)
> at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1609)
> at
> org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getBaseObject(AbstractDocumentConfigurationSource.java:209)
> at
> org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getBaseProperty(AbstractDocumentConfigurationSource.java:219)
> at
> org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getPropertyValue(AbstractDocumentConfigurationSource.java:315)
> at
> org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getProperty(AbstractDocumentConfigurationSource.java:272)
> at
> org.xwiki.annotation.internal.DefaultAnnotationConfiguration.getAnnotationClassReference(DefaultAnnotationConfiguration.java:120)
> at
> org.xwiki.annotation.internal.AnnotationClassDocumentInitializer.getDocumentReference(AnnotationClassDocumentInitializer.java:67)
> at com.xpn.xwiki.XWiki.initializeMandatoryDocument(XWiki.java:1042)
> at com.xpn.xwiki.XWiki.initializeMandatoryDocuments(XWiki.java:1021)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:966)
> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:887)
> at com.xpn.xwiki.XWiki.(XWiki.java:876)
> at
> com.xpn.xwiki.internal.XWikiInitializerJob.runInternal(XWikiInitializerJob.java:117)
> at
> org.xwiki.job.internal.AbstractJob.runInContext(AbstractJob.java:209)
> at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:192)
>     at java.lang.Thread.run(Thread.java:724)
>
>
> I am using jdk 6, tomcat 7
>
>
> I am not sure what is missing here ?
>
> Thanks and Regards
> Mohit
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [myxwiki] new wiki request

2015-08-16 Thread Thomas Mortagne
Sorry for the delay, August is not the best month to ask stuff :)

You can access your new wiki on http://fabfarm.myxwiki.org. Enjoy !

On Mon, Aug 10, 2015 at 6:45 AM,   wrote:
> description: forking opensource hardware project (opensourceecology.org -> 
> “fabfarm”)
> owner name: AndrewRoberts
> wiki name: fabfarm.myxwiki.org
>
>
>
>
>
>
> Sent from Windows Mail
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-08-17 Thread Thomas Mortagne
Yes the exact error looks more like jdbc issue but the first thing is
to move to Java 7 instead of Java 6 in any case. I'm even surprised it
went as far as trying to initialize the DB.

On Mon, Aug 17, 2015 at 10:57 AM, Clemens Klein-Robbenhaar
 wrote:
>
> Alternatively it might have something to do with the JDBC driver.
>
> XWiki wants a JDBC-4 driver for the 7.x series
> (This information can be found somewhere in the release notes for 7.0:
>   
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki70#HIssuesspecifictoXWiki7.0
>  )
>
> Maybe you have a somewhat "older" Oracle JDBC driver?
>
> (Somehow your tomcat must have found a new java version, btw, or it would 
> fail to start up with a different error message than what you got:
>   
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUnsupportedmajor.minorversion51.0
>  )
>
>
> just a guess
> Clemens
>
>
>> But this issue does not seems to be related to java 6/7. Looking at logs
>> looks like its an issue related to database. Isn't it ?
>>
>> On Mon, Aug 17, 2015 at 11:52 AM, Thomas Mortagne >> wrote:
>>
>>> XWiki require Java 7 since 6.0.
>>>
>>> On Sun, Aug 16, 2015 at 3:11 PM, Mohit Gupta  wrote:
>>>> I download the xwiki war file i.e xwiki-enterprise-web-7.2-milestone-2
>>> with
>>>> db as Oracle.
>>>>
>>>> Here the configuration in hibernate.cfg.file
>>>>
>>>> jdbc:oracle:thin:@localhost
>>>> :1521:orcl
>>>> xwiki
>>>> xwiki
>>>> >>> name="connection.driver_class">oracle.jdbc.driver.OracleDriver
>>>> >>> name="dialect">org.hibernate.dialect.Oracle10gDialect
>>>> true
>>>> 0
>>>> false
>>>> true
>>>> 20
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>>
>>>> But when i hit the url in browser i get below error
>>>>
>>>>
>>>>
>>>>
>>>> XWiki initialization failed!
>>>>
>>>> Exception thrown during job execution
>>>> class java.lang.AbstractMethodError: null
>>>> at
>>>>
>>> org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
>>>> at
>>>>
>>> org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
>>>> at
>>>>
>>> org.apache.commons.dbcp2.PoolableConnection.validate(PoolableConnection.java:283)
>>>> at
>>>>
>>> org.apache.commons.dbcp2.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:357)
>>>> at
>>>>
>>> org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2304)
>>>> at
>>>>
>>> org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2287)
>>>> at
>>>>
>>> org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2038)
>>>> at
>>>>
>>> org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
>>>> at
>>>>
>>> com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:215)
>>>> 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(XWikiHi

Re: [xwiki-users] Transfer from Confluence

2015-08-17 Thread Thomas Mortagne
You should get a detailed log of what happen somewhere in
jobs/status/filter/converter/.

On Mon, Aug 17, 2015 at 2:29 PM, Paul Libbrecht  wrote:
>
>
> Thomas Mortagne wrote:
>> You can look at
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Confluence+XML+module
>> for the technical how to import a Confluence export file.
>> Right now there is no general migrate from Confluence documentation I
>> can think of.
> This was potentially a good start, with a very basic tutorial that could
> have been sufficient, but nothing seems to happen beyond "Conversion
> started."
>
> What parameter should I change to get some logging from this?
> Is this filter supposed to take care of attachments?
>
> thanks
>
> paul
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Transfer from Confluence

2015-08-17 Thread Thomas Mortagne
Could you copy the full error.

On Mon, Aug 17, 2015 at 3:21 PM, Paul Libbrecht  wrote:
> I've reached as deep as:
> java.io.FileInputStream.<init>(FileInputStream.java:130)
> org.xwiki.filter.confluence.xml.internal.ConfluenceXMLPackage.createTree(ConfluenceXMLPackage.java:313)
> org.xwiki.filter.confluence.xml.internal.ConfluenceXMLPackage.<init>(ConfluenceXMLPackage.java:223)
> with either entities.xml or the path of the zip or the entities.xml.
>
> Any way to go deeper?
>
> paul
>
>
>> Thomas Mortagne <mailto:thomas.morta...@xwiki.com>
>> 17 août 2015 14:53
>> You should get a detailed log of what happen somewhere in
>> jobs/status/filter/converter/.
>>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Transfer from Confluence

2015-08-17 Thread Thomas Mortagne
Did you indicated a path to the Confluence XML package to load in the
"target" property ?

On Mon, Aug 17, 2015 at 3:28 PM, Paul Libbrecht  wrote:
> Thomas Mortagne wrote:
>> Could you copy the full error.
> complete file at:
> http://direct.hoplahup.net/tmp/status.xml
> Interesting bit:
> 
>   Failed to read package
>   
> 
>
> java.io.FileInputStream.<init>(FileInputStream.java:130)
>
> org.xwiki.filter.confluence.xml.internal.ConfluenceXMLPackage.createTree(ConfluenceXMLPackage.java:313)
>
> org.xwiki.filter.confluence.xml.internal.ConfluenceXMLPackage.<init>(ConfluenceXMLPackage.java:223)
>
> org.xwiki.filter.confluence.xml.internal.input.ConfluenceInputFilterStream.read(ConfluenceInputFilterStream.java:88)
>
> org.xwiki.filter.confluence.xml.internal.input.ConfluenceInputFilterStream.read(ConfluenceInputFilterStream.java:59)
>
> org.xwiki.filter.input.AbstractBeanInputFilterStream.read(AbstractBeanInputFilterStream.java:80)
>
> org.xwiki.filter.internal.job.FilterStreamConverterJob.runInternal(FilterStreamConverterJob.java:100)
>
> org.xwiki.job.internal.AbstractJob.runInContext(AbstractJob.java:209)
>
> org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:192)
>
> org.xwiki.filter.script.internal.ScriptFilterStreamConverterJob.run(ScriptFilterStreamConverterJob.java:75)
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>   java.lang.Thread.run(Thread.java:745)
> 
>  class="java.util.Collections$UnmodifiableRandomAccessList"
> resolves-to="java.util.Collections$UnmodifiableList">
>   
>   
> 
>   
>   
>
> org.xwiki.filter.confluence.xml.internal.input.ConfluenceInputFilterStream.read(ConfluenceInputFilterStream.java:90)
>
> org.xwiki.filter.confluence.xml.internal.input.ConfluenceInputFilterStream.read(ConfluenceInputFilterStream.java:59)
>
> org.xwiki.filter.input.AbstractBeanInputFilterStream.read(AbstractBeanInputFilterStream.java:80)
>
> org.xwiki.filter.internal.job.FilterStreamConverterJob.runInternal(FilterStreamConverterJob.java:100)
>
> org.xwiki.job.internal.AbstractJob.runInContext(AbstractJob.java:209)
>
> org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:192)
>
> org.xwiki.filter.script.internal.ScriptFilterStreamConverterJob.run(ScriptFilterStreamConverterJob.java:75)
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> java.lang.Thread.run(Thread.java:745)
>   
>class="java.util.Collections$UnmodifiableRandomAccessList"
> reference="../cause/suppressedExceptions"/>
> 
>
>
> paul
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Transfer from Confluence

2015-08-17 Thread Thomas Mortagne
On Mon, Aug 17, 2015 at 3:44 PM, Paul Libbrecht  wrote:
> I have indicated the following in the the latest "The source" field:

Yes "source" not "target" sorry.

>
> file:/Users/paul/projects/Notations-Census/move/ntns-141744-48/entities.xml
> which I think is the target.

However this filter expect an unzipped Confluence package and not the
entities.xml file.

> The output-type, however, is "XWiki instance output stream
> (xwiki+instance)".
> paul
>
> Thomas Mortagne wrote:
>> Did you indicated a path to the Confluence XML package to load in the
>> "target" property ?
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Transfer from Confluence

2015-08-17 Thread Thomas Mortagne
On Mon, Aug 17, 2015 at 5:04 PM, Paul Libbrecht  wrote:
>
>
> Thomas Mortagne wrote:
>>> >
>>> > file:/Users/paul/projects/Notations-Census/move/ntns-141744-48/entities.xml
>>> > which I think is the target.
>>
>> However this filter expect an unzipped Confluence package and not the
>> entities.xml file.
> A folder?
> I tried it and it complained it's a folder (maybe it's a difference
> between a trailing /?)
> The entities.xml is part of the folder.
>
> A zip?

Yes Confluence give you a zip when you do an export.

>
> I see no constructor in
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-filter/xwiki-platform-filter-streams/xwiki-platform-filter-stream-confluencexml/src/main/java/org/xwiki/filter/confluence/xml/internal/input/ConfluenceInputFilterStream.java
> But that's the object being built, right?
>
> paul
> _______
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Transfer from Confluence

2015-08-17 Thread Thomas Mortagne
On Mon, Aug 17, 2015 at 5:06 PM, Thomas Mortagne
 wrote:
> On Mon, Aug 17, 2015 at 5:04 PM, Paul Libbrecht  wrote:
>>
>>
>> Thomas Mortagne wrote:
>>>> >
>>>> > file:/Users/paul/projects/Notations-Census/move/ntns-141744-48/entities.xml
>>>> > which I think is the target.
>>>
>>> However this filter expect an unzipped Confluence package and not the
>>> entities.xml file.
>> A folder?
>> I tried it and it complained it's a folder (maybe it's a difference
>> between a trailing /?)
>> The entities.xml is part of the folder.
>>
>> A zip?
>
> Yes Confluence give you a zip when you do an export.
>
>>
>> I see no constructor in
>> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-filter/xwiki-platform-filter-streams/xwiki-platform-filter-stream-confluencexml/src/main/java/org/xwiki/filter/confluence/xml/internal/input/ConfluenceInputFilterStream.java
>> But that's the object being built, right?

ConfluenceInputFilterStream is a component so it only have default constructor.

>>
>> paul
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Transfer from Confluence

2015-08-17 Thread Thomas Mortagne
Hmm looks like something changed in 5.7,
https://confluence.atlassian.com/display/CONF56/Exporting+Confluence+Pages+and+Spaces+to+XML
documentation exist only until 5.6.x.

We might have to look at whatever is the new format.

On Mon, Aug 17, 2015 at 5:07 PM, Thomas Mortagne
 wrote:
> On Mon, Aug 17, 2015 at 5:06 PM, Thomas Mortagne
>  wrote:
>> On Mon, Aug 17, 2015 at 5:04 PM, Paul Libbrecht  wrote:
>>>
>>>
>>> Thomas Mortagne wrote:
>>>>> >
>>>>> > file:/Users/paul/projects/Notations-Census/move/ntns-141744-48/entities.xml
>>>>> > which I think is the target.
>>>>
>>>> However this filter expect an unzipped Confluence package and not the
>>>> entities.xml file.
>>> A folder?
>>> I tried it and it complained it's a folder (maybe it's a difference
>>> between a trailing /?)
>>> The entities.xml is part of the folder.
>>>
>>> A zip?
>>
>> Yes Confluence give you a zip when you do an export.
>>
>>>
>>> I see no constructor in
>>> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-filter/xwiki-platform-filter-streams/xwiki-platform-filter-stream-confluencexml/src/main/java/org/xwiki/filter/confluence/xml/internal/input/ConfluenceInputFilterStream.java
>>> But that's the object being built, right?
>
> ConfluenceInputFilterStream is a component so it only have default 
> constructor.
>
>>>
>>> paul
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>
>
>
> --
> Thomas Mortagne



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [ANN] XWiki 7.1.2 released

2015-08-17 Thread Thomas Mortagne
The XWiki development team is proud to announce the availability of XWiki 7.1.2.
 This is a stabilization release that fixes important bugs discovered
in the previous 7.1.1 version.

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/ReleaseNotesXWiki712

The following people have contributed code to this release:

Ecaterina Moraru (Valica)
Eduard Moraru
Guillaume Delhumeau
Jean SIMARD
Thomas Mortagne
Vincent Massol

Thanks for your support
-The XWiki dev team
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [myxwiki] new wiki request

2015-08-17 Thread Thomas Mortagne
You can login with the user you gave me in the first mail.

On Mon, Aug 17, 2015 at 5:49 PM, Andrew Roberts
 wrote:
> Hi Thomas,
>
> Very cool, thanks for your efforts.  However, did I miss how to login
> administratively?
>
> Best,
> Andy
>
> On Mon, Aug 17, 2015 at 1:29 AM, Thomas Mortagne 
> wrote:
>
>> Sorry for the delay, August is not the best month to ask stuff :)
>>
>> You can access your new wiki on http://fabfarm.myxwiki.org. Enjoy !
>>
>> On Mon, Aug 10, 2015 at 6:45 AM,   wrote:
>> > description: forking opensource hardware project (opensourceecology.org
>> -> “fabfarm”)
>> > owner name: AndrewRoberts
>> > wiki name: fabfarm.myxwiki.org
>> >
>> >
>> >
>> >
>> >
>> >
>> > Sent from Windows Mail
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [myxwiki] new wiki request

2015-08-19 Thread Thomas Mortagne
That user does exist, you are probably using the wrong password.

On Mon, Aug 17, 2015 at 5:58 PM, Andrew Roberts
 wrote:
> Hmmm,
>
> The *AndrewRoberts* user does not exist
>
>
> Correct me if I'm wrong but that's the name I submitted?
>
> A
>
> On Mon, Aug 17, 2015 at 10:55 AM, Thomas Mortagne > wrote:
>
>> You can login with the user you gave me in the first mail.
>>
>> On Mon, Aug 17, 2015 at 5:49 PM, Andrew Roberts
>>  wrote:
>> > Hi Thomas,
>> >
>> > Very cool, thanks for your efforts.  However, did I miss how to login
>> > administratively?
>> >
>> > Best,
>> > Andy
>> >
>> > On Mon, Aug 17, 2015 at 1:29 AM, Thomas Mortagne <
>> thomas.morta...@xwiki.com>
>> > wrote:
>> >
>> >> Sorry for the delay, August is not the best month to ask stuff :)
>> >>
>> >> You can access your new wiki on http://fabfarm.myxwiki.org. Enjoy !
>> >>
>> >> On Mon, Aug 10, 2015 at 6:45 AM,   wrote:
>> >> > description: forking opensource hardware project (
>> opensourceecology.org
>> >> -> “fabfarm”)
>> >> > owner name: AndrewRoberts
>> >> > wiki name: fabfarm.myxwiki.org
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > Sent from Windows Mail
>> >> > ___
>> >> > users mailing list
>> >> > users@xwiki.org
>> >> > http://lists.xwiki.org/mailman/listinfo/users
>> >>
>> >>
>> >>
>> >> --
>> >> Thomas Mortagne
>> >> ___
>> >> users mailing list
>> >> users@xwiki.org
>> >> http://lists.xwiki.org/mailman/listinfo/users
>> >>
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Transfer from Confluence

2015-08-19 Thread Thomas Mortagne
There is nothing to debug, again this module expect a zipped
Confluence package (Confluence 4.x was used as reference when starting
working on this module) so it will have to be modified to support
whatever Confluence 3.0 produces if that's not the same format. If you
have a Confluence package in 3.0 version that does not contain
anything too personal so that someone can use it as work base you
should create a jira issue and attach it. Also maybe there is some
Confluence plugin to export a more recent format of package.

On Mon, Aug 17, 2015 at 7:12 PM, Paul Libbrecht  wrote:
> Erm. That confluence is version 3.0.
> So... I should just try to follow that with a debugger?
>
> paul
>
> Thomas Mortagne wrote:
>> Hmm looks like something changed in 5.7,
>> https://confluence.atlassian.com/display/CONF56/Exporting+Confluence+Pages+and+Spaces+to+XML
>> documentation exist only until 5.6.x.
>>
>> We might have to look at whatever is the new format.
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [myxwiki] new wiki request

2015-08-24 Thread Thomas Mortagne
Actually you can login with your main wiki user from your wiki (which
is a subwiki).

On Wed, Aug 19, 2015 at 8:39 PM, Andrew Roberts
 wrote:
> Hi Thomas,
>   That's my bad... didn't realize I need to login through the main site.
>
> Thank you!
> Andy
>
> On Wed, Aug 19, 2015 at 2:10 AM, Thomas Mortagne 
> wrote:
>
>> That user does exist, you are probably using the wrong password.
>>
>> On Mon, Aug 17, 2015 at 5:58 PM, Andrew Roberts
>>  wrote:
>> > Hmmm,
>> >
>> > The *AndrewRoberts* user does not exist
>> >
>> >
>> > Correct me if I'm wrong but that's the name I submitted?
>> >
>> > A
>> >
>> > On Mon, Aug 17, 2015 at 10:55 AM, Thomas Mortagne <
>> thomas.morta...@xwiki.com
>> >> wrote:
>> >
>> >> You can login with the user you gave me in the first mail.
>> >>
>> >> On Mon, Aug 17, 2015 at 5:49 PM, Andrew Roberts
>> >>  wrote:
>> >> > Hi Thomas,
>> >> >
>> >> > Very cool, thanks for your efforts.  However, did I miss how to login
>> >> > administratively?
>> >> >
>> >> > Best,
>> >> > Andy
>> >> >
>> >> > On Mon, Aug 17, 2015 at 1:29 AM, Thomas Mortagne <
>> >> thomas.morta...@xwiki.com>
>> >> > wrote:
>> >> >
>> >> >> Sorry for the delay, August is not the best month to ask stuff :)
>> >> >>
>> >> >> You can access your new wiki on http://fabfarm.myxwiki.org. Enjoy !
>> >> >>
>> >> >> On Mon, Aug 10, 2015 at 6:45 AM,  
>> wrote:
>> >> >> > description: forking opensource hardware project (
>> >> opensourceecology.org
>> >> >> -> “fabfarm”)
>> >> >> > owner name: AndrewRoberts
>> >> >> > wiki name: fabfarm.myxwiki.org
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > Sent from Windows Mail
>> >> >> > ___
>> >> >> > users mailing list
>> >> >> > users@xwiki.org
>> >> >> > http://lists.xwiki.org/mailman/listinfo/users
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Thomas Mortagne
>> >> >> ___
>> >> >> users mailing list
>> >> >> users@xwiki.org
>> >> >> http://lists.xwiki.org/mailman/listinfo/users
>> >> >>
>> >> > ___
>> >> > users mailing list
>> >> > users@xwiki.org
>> >> > http://lists.xwiki.org/mailman/listinfo/users
>> >>
>> >>
>> >>
>> >> --
>> >> Thomas Mortagne
>> >> ___
>> >> users mailing list
>> >> users@xwiki.org
>> >> http://lists.xwiki.org/mailman/listinfo/users
>> >>
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Import JSPWiki history

2015-08-24 Thread Thomas Mortagne
reprehenderit in voluptate velit esse
> cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
> non proident, sunt in culpa qui officia deserunt mollit anim id
> est
> 
>
>
> Obviously it is not the same format and I don't understand this format, can
> someone explain me how it is generated, and how I can modify my file to
> import it on XWiki correctly.
>
> --
> Quentin
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Import-JSPWiki-history-tp7595692.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Container authentication

2015-08-24 Thread Thomas Mortagne
The minimum group is XWiki.XWikiAllGroup.

On Mon, Aug 24, 2015 at 1:50 PM, Tim Dudgeon
 wrote:
> On 24/08/2015 04:24, Thomas Mortagne wrote:
>>
>> Sounds like your user is not added in the right group(s) (which mean
>> it does not have any right).
>
>
> Quite likely. But what groups are needed?
>
>
> Tim
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Container authentication

2015-08-24 Thread Thomas Mortagne
Note that an authenticator is supposed to use
com.xpn.xwiki.XWiki#createUser API which automatically add the user in
the minimum groups.

On Mon, Aug 24, 2015 at 4:11 PM, Thomas Mortagne
 wrote:
> The minimum group is XWiki.XWikiAllGroup.
>
> On Mon, Aug 24, 2015 at 1:50 PM, Tim Dudgeon
>  wrote:
>> On 24/08/2015 04:24, Thomas Mortagne wrote:
>>>
>>> Sounds like your user is not added in the right group(s) (which mean
>>> it does not have any right).
>>
>>
>> Quite likely. But what groups are needed?
>>
>>
>> Tim
>>
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Container authentication

2015-08-25 Thread Thomas Mortagne
On Tue, Aug 25, 2015 at 5:04 PM, Tim Dudgeon
 wrote:
> So it looks like the AppServerTrustedAuthServiceImpl class is calling
> createUser():
> https://github.com/xwiki/xwiki-platform/blob/dd5152e8ff39e6358c20becb4c9925628cf08ea4/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/user/impl/xwiki/AppServerTrustedAuthServiceImpl.java
>
> But that should mean that my externally authenticated user should be being
> added and should get the XWiki.XWikiAllGroup.
>
> But that doesn't seem to be happening in my case as I'm being although I'm
> authenticated I'm denied access.

It's easy to check in the administration who is part of XWikiAllGroup.

>
> Have I misunderstood the situation?
>
> Tim
>
>
>
>
> On 24/08/2015 10:15, Thomas Mortagne wrote:
>>
>> Note that an authenticator is supposed to use
>> com.xpn.xwiki.XWiki#createUser API which automatically add the user in
>> the minimum groups.
>>
>> On Mon, Aug 24, 2015 at 4:11 PM, Thomas Mortagne
>>  wrote:
>>>
>>> The minimum group is XWiki.XWikiAllGroup.
>>>
>>> On Mon, Aug 24, 2015 at 1:50 PM, Tim Dudgeon
>>>  wrote:
>>>>
>>>> On 24/08/2015 04:24, Thomas Mortagne wrote:
>>>>>
>>>>>
>>>>> Sounds like your user is not added in the right group(s) (which mean
>>>>> it does not have any right).
>>>>
>>>>
>>>>
>>>> Quite likely. But what groups are needed?
>>>>
>>>>
>>>> Tim
>>>>
>>>> ___
>>>> users mailing list
>>>> users@xwiki.org
>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>
>>>
>>>
>>>
>>> --
>>> Thomas Mortagne
>>
>>
>>
>>
>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] on XWiki.StyleSheetExtension

2015-08-26 Thread Thomas Mortagne
You can enable Velocity in StyleSheetExtension content (the "Parse
content" property).

The problem is that it means you need to disable caching as otherwise
the browser will stick with the first version it downloaded.

On Wed, Aug 26, 2015 at 10:32 AM, [IDIS Technical Secretariat] Ricardo
Rodríguez  wrote:
> Hi!
>
> Please, is it possible to customise a XWiki.StyleSheetExtension object to
> apply different properties to different actions in the same page?
>
> For instance, I would like to use different #mainContentArea { margin-top:
> ; } values when viewing, or editing a page, i.e. Home.WebHome, or creating
> new pages in that Home space.
>
> Thanks for your help!
>
> Ricardo
>
> --
> Ricardo Rodríguez
> Research Management and Promotion Technician
> Technical Secretariat
> Health Research Institute of Santiago de Compostela (IDIS)
> http://www.idisantiago.es
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] on XWiki.StyleSheetExtension

2015-08-26 Thread Thomas Mortagne
"{{velocity}}" is wiki syntax to indicate that you want to insert some
Velocity. When you enable "parsing" the whole content become Velocity
already.

On Wed, Aug 26, 2015 at 1:04 PM, [IDIS Technical Secretariat] Ricardo
Rodríguez  wrote:
> Thanks! So simple, so nice...
>
> Still, I'm not able to get it working yet... Here what I'm trying to get...
>
> {{velocity}}
> #if($context.action == 'view')
> #mainContentArea {
>   margin-top: -35px;
>   padding: 0px 0px;
> }
> #end
> {{/velocity}}
>
> I didn't get this code read while within the Velocity IF structure. In the
> log, I'm getting this...
>
> 2015-08-26 13:00:13,926 [
> http://localhost:8080/xwiki/bin/ssx/Home/WebHome?language=en] WARN
>  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of getter
> [com.xpn.xwiki.api.DeprecatedContext.getAction] in 360:xwiki:Home.WebHome@6
> ,14
>
> Please, what am I doing wrong? Thanks!
>
> Ricardo
>
>
> On Wed, Aug 26, 2015 at 10:52 AM, Thomas Mortagne > wrote:
>
>> You can enable Velocity in StyleSheetExtension content (the "Parse
>> content" property).
>>
>> The problem is that it means you need to disable caching as otherwise
>> the browser will stick with the first version it downloaded.
>>
>> On Wed, Aug 26, 2015 at 10:32 AM, [IDIS Technical Secretariat] Ricardo
>> Rodríguez  wrote:
>> > Hi!
>> >
>> > Please, is it possible to customise a XWiki.StyleSheetExtension object to
>> > apply different properties to different actions in the same page?
>> >
>> > For instance, I would like to use different #mainContentArea {
>> margin-top:
>> > ; } values when viewing, or editing a page, i.e. Home.WebHome, or
>> creating
>> > new pages in that Home space.
>> >
>> > Thanks for your help!
>> >
>> > Ricardo
>> >
>> > --
>> > Ricardo Rodríguez
>> > Research Management and Promotion Technician
>> > Technical Secretariat
>> > Health Research Institute of Santiago de Compostela (IDIS)
>> > http://www.idisantiago.es
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>> _______
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
>
> --
> Ricardo Rodríguez
> Research Management and Promotion Technician
> Technical Secretariat
> Health Research Institute of Santiago de Compostela (IDIS)
> http://www.idisantiago.es
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] on XWiki.StyleSheetExtension

2015-08-26 Thread Thomas Mortagne
On Wed, Aug 26, 2015 at 1:37 PM, [IDIS Technical Secretariat] Ricardo
Rodríguez  wrote:
> Thanks! But there is still something I doing the wrong way. If I introduce
> the following lines in the XWiki.StyleSheetExtension object code...
>
> #if($context.action == 'view')
> #mainContentArea {
>   margin-top: -35px;
>   padding: 0px 0px;
> }
> #else
> #mainContentArea {
>   margin-top: 100px;
>   padding: 0px 0px;
> }
> #end
>
> I do get a 100px top margin when viewing the page...
>
> http://portal.idisantiago.es
>
> I'm afraid I'm wrongly using $context.action, but I don't understand why!

The problem with this specific use case is that your code is not
executed in the context of the document view but as an asynchronous
ssx resource with an URL looking like
http://mydomain/xwiki/bin/ssx/Space/Page and the action being "ssx" I
think (not view in any case).

If you are the one calling $xwiki.ssx.use("Spac.Page") you could do
something like $xwiki.ssx.use('Space.Page', {'sourceAction' :
$xcontext.action}) and then modify your ssx to be something like

#if($request.sourceAction == 'view')
#mainContentArea {
  margin-top: -35px;
  padding: 0px 0px;
}
#else
#mainContentArea {
  margin-top: 100px;
  padding: 0px 0px;
}
#end

> Help, please!
>
> Thanks,
>
> Ricardo
>
> On Wed, Aug 26, 2015 at 1:14 PM, Thomas Mortagne 
> wrote:
>
>> "{{velocity}}" is wiki syntax to indicate that you want to insert some
>> Velocity. When you enable "parsing" the whole content become Velocity
>> already.
>>
>> On Wed, Aug 26, 2015 at 1:04 PM, [IDIS Technical Secretariat] Ricardo
>> Rodríguez  wrote:
>> > Thanks! So simple, so nice...
>> >
>> > Still, I'm not able to get it working yet... Here what I'm trying to
>> get...
>> >
>> > {{velocity}}
>> > #if($context.action == 'view')
>> > #mainContentArea {
>> >   margin-top: -35px;
>> >   padding: 0px 0px;
>> > }
>> > #end
>> > {{/velocity}}
>> >
>> > I didn't get this code read while within the Velocity IF structure. In
>> the
>> > log, I'm getting this...
>> >
>> > 2015-08-26 13:00:13,926 [
>> > http://localhost:8080/xwiki/bin/ssx/Home/WebHome?language=en] WARN
>> >  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of getter
>> > [com.xpn.xwiki.api.DeprecatedContext.getAction] in
>> 360:xwiki:Home.WebHome@6
>> > ,14
>> >
>> > Please, what am I doing wrong? Thanks!
>> >
>> > Ricardo
>> >
>> >
>> > On Wed, Aug 26, 2015 at 10:52 AM, Thomas Mortagne <
>> thomas.morta...@xwiki.com
>> >> wrote:
>> >
>> >> You can enable Velocity in StyleSheetExtension content (the "Parse
>> >> content" property).
>> >>
>> >> The problem is that it means you need to disable caching as otherwise
>> >> the browser will stick with the first version it downloaded.
>> >>
>> >> On Wed, Aug 26, 2015 at 10:32 AM, [IDIS Technical Secretariat] Ricardo
>> >> Rodríguez  wrote:
>> >> > Hi!
>> >> >
>> >> > Please, is it possible to customise a XWiki.StyleSheetExtension
>> object to
>> >> > apply different properties to different actions in the same page?
>> >> >
>> >> > For instance, I would like to use different #mainContentArea {
>> >> margin-top:
>> >> > ; } values when viewing, or editing a page, i.e. Home.WebHome, or
>> >> creating
>> >> > new pages in that Home space.
>> >> >
>> >> > Thanks for your help!
>> >> >
>> >> > Ricardo
>> >> >
>> >> > --
>> >> > Ricardo Rodríguez
>> >> > Research Management and Promotion Technician
>> >> > Technical Secretariat
>> >> > Health Research Institute of Santiago de Compostela (IDIS)
>> >> > http://www.idisantiago.es
>> >> > ___
>> >> > users mailing list
>> >> > users@xwiki.org
>> >> > http://lists.xwiki.org/mailman/listinfo/users
>> >>
>> >>
>> >>
>> >> --
>> >> Thomas Mortagne
>> >> ___
>> >> users mailing list
>> >> users@xwiki.org
>> >> http://lists.xwiki.org/mailman/listinfo/users
>> >>
>> >
>> >
>> >
>> > --
>> > Ricardo Rodríguez
>> > Research Management and Promotion Technician
>> > Technical Secretariat
>> > Health Research Institute of Santiago de Compostela (IDIS)
>> > http://www.idisantiago.es
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
>
> --
> Ricardo Rodríguez
> Research Management and Promotion Technician
> Technical Secretariat
> Health Research Institute of Santiago de Compostela (IDIS)
> http://www.idisantiago.es
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] on XWiki.StyleSheetExtension

2015-08-27 Thread Thomas Mortagne
On Thu, Aug 27, 2015 at 1:13 AM, [IDIS Technical Secretariat] Ricardo
Rodríguez  wrote:
> Thanks! Please, read below...
>
> On Wed, Aug 26, 2015 at 2:45 PM, Thomas Mortagne 
> wrote:
>
>> On Wed, Aug 26, 2015 at 1:37 PM, [IDIS Technical Secretariat] Ricardo
>> Rodríguez  wrote:
>> > Thanks! But there is still something I doing the wrong way. If I
>> introduce
>> > the following lines in the XWiki.StyleSheetExtension object code...
>> >
>> > #if($context.action == 'view')
>> > #mainContentArea {
>> >   margin-top: -35px;
>> >   padding: 0px 0px;
>> > }
>> > #else
>> > #mainContentArea {
>> >   margin-top: 100px;
>> >   padding: 0px 0px;
>> > }
>> > #end
>> >
>> > I do get a 100px top margin when viewing the page...
>> >
>> > http://portal.idisantiago.es
>> >
>> > I'm afraid I'm wrongly using $context.action, but I don't understand why!
>>
>> The problem with this specific use case is that your code is not
>> executed in the context of the document view but as an asynchronous
>> ssx resource with an URL looking like
>> http://mydomain/xwiki/bin/ssx/Space/Page and the action being "ssx" I
>> think (not view in any case).
>>
>> If you are the one calling $xwiki.ssx.use("Spac.Page") you could do
>> something like $xwiki.ssx.use('Space.Page', {'sourceAction' :
>> $xcontext.action}) and then modify your ssx to be something like
>>
>> #if($request.sourceAction == 'view')
>> #mainContentArea {
>>   margin-top: -35px;
>>   padding: 0px 0px;
>> }
>> #else
>> #mainContentArea {
>>   margin-top: 100px;
>>   padding: 0px 0px;
>> }
>> #end
>>
>
> Following these notes plus reading once again..
>
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial
>
> I've done this..
>
> 1) Change to SSX extension to on demand only to be sure when and which
> extension I'm calling.
>
> 2) Call the extension from the concerned page with this code...
>
> {{velocity}}
> #set($void = $xwiki.ssx.use($doc.fullName, {'sourceAction' :
> $xcontext.action}))
> {{/velocity}}
>
> 3) Modify the code of the SSX extension the way you proposed...
>
> #if($request.sourceAction == 'view')
> #mainContentArea {
>   margin-top: -35px;
>   padding: 0px 0px;
> }
> #else
> #mainContentArea {
>   margin-top: 100px;
>   padding: 0px 0px;
> }
> #end
>
> I've learnt a lot! Thank you very much! Unfortunately my programming
> background, despite years of good intentions, remains still quite poor!
> I'll keep trying.

Don't worry it's not general programming background issue, just XWiki
known how and I doubt you have years of this ;)

>
>
>> > Help, please!
>> >
>> > Thanks,
>> >
>> > Ricardo
>> >
>> > On Wed, Aug 26, 2015 at 1:14 PM, Thomas Mortagne <
>> thomas.morta...@xwiki.com>
>> > wrote:
>> >
>> >> "{{velocity}}" is wiki syntax to indicate that you want to insert some
>> >> Velocity. When you enable "parsing" the whole content become Velocity
>> >> already.
>> >>
>> >> On Wed, Aug 26, 2015 at 1:04 PM, [IDIS Technical Secretariat] Ricardo
>> >> Rodríguez  wrote:
>> >> > Thanks! So simple, so nice...
>> >> >
>> >> > Still, I'm not able to get it working yet... Here what I'm trying to
>> >> get...
>> >> >
>> >> > {{velocity}}
>> >> > #if($context.action == 'view')
>> >> > #mainContentArea {
>> >> >   margin-top: -35px;
>> >> >   padding: 0px 0px;
>> >> > }
>> >> > #end
>> >> > {{/velocity}}
>> >> >
>> >> > I didn't get this code read while within the Velocity IF structure. In
>> >> the
>> >> > log, I'm getting this...
>> >> >
>> >> > 2015-08-26 13:00:13,926 [
>> >> > http://localhost:8080/xwiki/bin/ssx/Home/WebHome?language=en] WARN
>> >> >  o.x.v.i.DefaultVelocityEngine  - Deprecated usage of getter
>> >> > [com.xpn.xwiki.api.DeprecatedContext.getAction] in
>> >> 360:xwiki:Home.WebHome@6
>> >> > ,14
>> >> >
>> >> > Please, what am I doing wrong? Thanks!
>> >> >
>&

Re: [xwiki-users] Container authentication

2015-08-27 Thread Thomas Mortagne
Seems to be some AppServerTrustedAuthServiceImpl specfic thing. When
looking at the code it looks like by default it does not even create
the user at all, just set it as context user. As far as I can see in
the code to actually create the user (and then for it to be
automatically added to the default group(s)) this authenticator seems
to expect the undocumented xwiki.authentication.createuser parameter
in xwiki.cfg to be set to "empty" as in

xwiki.authentication.createuser=empty

On Wed, Aug 26, 2015 at 6:13 PM, Tim Dudgeon
 wrote:
> So its not working for me.
>
> I've made sure the external user has the XWiki.XWikiAllGroup role and its
> still not working. The user does not get the necessary rights and I get the
> "Error. You are not allowed to view this document or perform this action"
> error message.
> Also, that user is not added to the XWiki users.
>
> Are there any example sof how to get this working?
>
> Tim
>
>
>
>
> On 26/08/2015 02:51, Thomas Mortagne wrote:
>>
>> On Tue, Aug 25, 2015 at 5:04 PM, Tim Dudgeon
>>  wrote:
>>>
>>> So it looks like the AppServerTrustedAuthServiceImpl class is calling
>>> createUser():
>>>
>>> https://github.com/xwiki/xwiki-platform/blob/dd5152e8ff39e6358c20becb4c9925628cf08ea4/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/user/impl/xwiki/AppServerTrustedAuthServiceImpl.java
>>>
>>> But that should mean that my externally authenticated user should be
>>> being
>>> added and should get the XWiki.XWikiAllGroup.
>>>
>>> But that doesn't seem to be happening in my case as I'm being although
>>> I'm
>>> authenticated I'm denied access.
>>
>>
>> It's easy to check in the administration who is part of XWikiAllGroup.
>>
>>>
>>> Have I misunderstood the situation?
>>>
>>> Tim
>>>
>>>
>>>
>>>
>>> On 24/08/2015 10:15, Thomas Mortagne wrote:
>>>>
>>>>
>>>> Note that an authenticator is supposed to use
>>>> com.xpn.xwiki.XWiki#createUser API which automatically add the user in
>>>> the minimum groups.
>>>>
>>>> On Mon, Aug 24, 2015 at 4:11 PM, Thomas Mortagne
>>>>  wrote:
>>>>>
>>>>>
>>>>> The minimum group is XWiki.XWikiAllGroup.
>>>>>
>>>>> On Mon, Aug 24, 2015 at 1:50 PM, Tim Dudgeon
>>>>>  wrote:
>>>>>>
>>>>>>
>>>>>> On 24/08/2015 04:24, Thomas Mortagne wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Sounds like your user is not added in the right group(s) (which mean
>>>>>>> it does not have any right).
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Quite likely. But what groups are needed?
>>>>>>
>>>>>>
>>>>>> Tim
>>>>>>
>>>>>> ___
>>>>>> users mailing list
>>>>>> users@xwiki.org
>>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thomas Mortagne
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>>
>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Change Page Owner

2015-08-27 Thread Thomas Mortagne
On Thu, Aug 27, 2015 at 1:52 PM, Eduard Moraru  wrote:
> You don`t need admin rights to rename a page, just the 'delete' right on
> the page to rename and edit rights in the space you are about to
> rename/move the page to.
>

> It`s like this because currently rename performs 2 operations in the
> background: copy (old document to new location/name) + delete (the old
> document).

Nothing to do with the actions used behind the scene IMO, whatever the
way to implement it you will end up with a document added somewhere
(so you need the right to do that) and a document that used to be in
some place not there anymore (so you also need the right to do that).

>
> Thanks,
> Eduard
>
> On Tue, Aug 25, 2015 at 8:50 AM, Hamster  wrote:
>
>> Our use case:
>>
>> We use a script that displays the childpages of a page (the user can also
>> choose how many columns that list should have). These pages are display in
>> alphabetic-order based on the PageName (not display name).
>>
>> In order to change the order of that list, one must rename the page...which
>> only the owner of that page can do (or an admin, but I don't like giving
>> admin rights to other people :-)
>>
>> Giving a user the right to rename a page would indeed solve my problem :-)
>>
>>
>>
>> --
>> View this message in context:
>> http://xwiki.475771.n2.nabble.com/Change-Page-Owner-tp7219422p7595737.html
>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [myxwiki] XWiki Enterprise 7.1.2 Upgrade

2015-09-01 Thread Thomas Mortagne
Hi everyone,

myxwiki.org has been upgraded to XE 7.1.2. If you own a wiki hosted
there you should have a look at the release notes for this version at:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/

You should automatically get an upgrade wizard for your wiki when you
login as admin.
For more details see the upgrade guide available at :
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade#HUpgradingwikidocuments

To be notified of the myxwiki.org server upgrade you can follow
myxwiki on twitter:
http://twitter.com/myxwiki

Thanks,
-XWiki Community
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Rename document with dot in groovy

2015-09-03 Thread Thomas Mortagne
You also need to escape \ itself to be complete. If you were using
model script service as Vincent suggested you would not need to worry
about escaping.

On Thu, Sep 3, 2015 at 5:10 PM, qvendeville
 wrote:
> Thanks Vincent for your answer, but I found a solution :)
>
> I must espace the dot in the docName when I get my document, not in the
> rename method :
>
> document =
> xwiki.getDocument(spaceName+"."+docName.replace(".","\\."),context);
>
>
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Rename-document-with-dot-in-groovy-tp7595887p7595889.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] LDAP service is not available after update from 6.4.2 to 7.1.2

2015-09-08 Thread Thomas Mortagne
On Tue, Sep 8, 2015 at 3:45 PM, aleksey-s  wrote:
> Hi,
>
> After update from 6.4.2 to 7.1.2 we faced with message in LDAP settings:
>
> But it work, I can access to xwiki with my LDAP login and password.
> I changed logging level for
> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl in debug mode and see
> in log:
> DEBUG u.i.L.XWikiLDAPAuthServiceImpl - LDAP authentication succeed with
> principal [XWiki.aleksey-s]
>
> xwiki.cfg for 6.4.2 and 7.1.2 identical.
>
>
> We  tested  rollback  xwiki to 6.4.2 and message "LDAP service is not
> available. Please verify your installation." disappeared..
>
> Why the message "LDAP service is not available. Please verify your
> installation" appeared on 7.1.2 ?

Are you sure you have the same thing in the new xwiki.cfg ? Nothing
really changed in LDAP between 6.4.2 and 7.1.2 so all I can think of
is xwiki.cfg file not properly migrated.

>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/LDAP-service-is-not-available-after-update-from-6-4-2-to-7-1-2-tp7595928.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] LDAP service is not available after update from 6.4.2 to 7.1.2

2015-09-09 Thread Thomas Mortagne
As far as I know "LDAP service is not available" error message is only
displayed in LDAP UI extension and indicate that it cannot find the
service that is supposed to be located in xwiki-platform-ldap-api
("XWiki Platform - LDAP - API" extension) jar. Either you installed it
by hand last time and forgot to put it in the new install or you
installed it as extension and forgot to keep your permanent directory
when you upgraded.

On Wed, Sep 9, 2015 at 9:24 AM, aleksey-s  wrote:
> Hi!
>
> Yes. To make sure I copied xwiki.cfg from old to new version again and
> restart xwiki.
>
> In xwiki.cfg in LDAP section uncommented  only next strings
>
> xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
> xwiki.authentication.ldap.server=127.0.0.1
> xwiki.authentication.ldap.port=389
> xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP
> xwiki.authentication.ldap.bind_pass={1}
> xwiki.authentication.ldap.base_DN=
> xwiki.authentication.ldap.fields_mapping=last_name=sn,first_name=givenName,email=mail
> xwiki.authentication.ldap.update_user=1
> xwiki.authentication.ldap.trylocal=1
>
> But in XWikiPreferences some parameters not match to xwiki.cfg (ldap server
> and etc). It was on old version too.
>
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/LDAP-service-is-not-available-after-update-from-6-4-2-to-7-1-2-tp7595928p7595937.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Fw : Re: Fw : Include & Co board effect

2015-09-14 Thread Thomas Mortagne
On Mon, Sep 14, 2015 at 4:02 PM, Pascal BASTIEN  wrote:
> Ok thxs for your answer, but in fact I (try to)  explain 2 problems with 
> include functions with velocity:
> - main problem with include: in a main doc you can not call a custom velocity 
> macro  (ie foo) with include if this macro is declared in another page.
>
> Main doc containing something like this:
> {{include reference="BacASable.PageWithACustomMacro" /}}
> #foo('blue'') doesn't work

Why do you need to include this page inside the {{velocity}} macro ?
If it's just some definition of velocity macros you should include it
before the {{velocity}} macro.

>
>
> BacASable.PageWithACustomMacro containing:
> #macro( foo $color)
> My Color is $color
> #end
>
> In old doc: 
> https://network.xwiki.com/xwiki/bin/view/DocXE31Fr/IncludeInVelocity you 
> recommanded #includeInContext but new doc recommand include instead.
>
> - second "problem" , when I want to avoid main problem with #includeInContext
> Main doc containing something like this:
> $xwiki.includeForm("BacASable.PageWithACustomMacro")
> ## or #includeInContext("BacASable.PageWithACustomMacro")
> {{html}}
> #foo('blue'') work well
> {{/html}}
>
> BacASable.PageWithACustomMacro containing:
> #macro( foo $color)
> My Color is $color
> #end
>
> I though wrongly then that #includeInContext working like #parse... and 
> doesn't render the content.
>
> Thxs
>
> Pascal B.
>
> 
> En date de : Lun 14.9.15, vinc...@massol.net  a écrit :
>
>  Objet: Re: Fw : Re: [xwiki-users] Fw : Include & Co board effect
>  À: "XWiki Users" 
>  Cc: pbasnews-xw...@yahoo.fr
>  Date: Lundi 14 septembre 2015, 15h15
>
>
>  On 14
>  Sep 2015 at 15:02:40, Pascal BASTIEN 
> (pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr))
>  wrote:
>
>  > Nope: both
>  method doesn't work with velocity macro...
>  > Do you want a nice xar to check? Then
>  where I can upload it? in Jira?
>
>  In your example below you were not inside a
>  velocity macro!
>
>  You
>  said:
>
>  > Then to obtain
>  what I want I must user
>  > html tag:
>  >
>  > {{html}}
>  >
>  #includeInContext("mySpace.myPage")
>  > {{/html}}
>
>  The {{html}} macro cannot work inside a
>  velocity macro…
>
>  Now,
>  #include* macros all render the content, which is why you
>  get HTML.
>
>  Thanks
>  -Vincent
>
>
>  > --- En date de : Lun 14.9.15, vinc...@massol.net
>  a écrit :
>  >
>  > >
>  De: vinc...@massol.net
>
>  > > Objet: Re: [xwiki-users] Fw :
>  Include & Co board effect
>  > > À:
>  "XWiki Users"
>  > > Cc: pbasnews-xw...@yahoo.fr
>  > > Date: Lundi 14 septembre 2015,
>  14h00
>  > > #yiv5668446636
>  > > body{font-family:Helvetica,
>  > > Arial;font-size:13px;}Hi Pascal,
>  > > You should use {{include}}
>  > > for transclusions and {{display}} for
>  inserting the result
>  > > of the
>  execution of some page.
>  > >
>  Thanks-Vincent
>  > >
>  > > On 10 Sep 2015 at 11:26:25,
>  > > Pascal BASTIEN (pbasnews-xw...@yahoo.fr)
>  > > wrote: NB: new
>  >
>  > include function {{include
>  > >
>  reference="BacASable.Page"
>  >
>  > type="document" /}} doesn't work well
>  when
>  > > target page contains a
>  velocity macro
>  > >
>  > > If target page contains a macro
>  velocity
>  > > (#macro( foo $color ),
>  the main page containing
>  > >
>  "include reference" can't call foo macro.
>  > >
>  > > (with
>  includeInContext it's working)
>  >
>  >
>  > >
>  > >
>  > > --- En date de : Jeu 10.9.15,
>  Pascal
>  > > BASTIEN a écrit :
>  >
>  >
>  > >
>  > >
>  > > > De: Pascal BASTIEN
>  > >
>  > >
>  > > > Objet: [xwiki-users] Include
>  & Co
>  > > board effect
>  > >
>  > > > À:
>  "XWiki Users"
>  > >
>  > >
>  > > > Date:
>  Jeudi 10 septembre 2015, 10h33
>  > >
>  > > > Hello,
>  >
>  >
>  > > >
>  >
>  >
>  > > > In my velocity script I
>  try to include
>  > > some velocity
>  code
>  > >
>  > >
>  > from another page.

Re: [xwiki-users] Migration away from TikiWiki - Forms based question.

2015-09-15 Thread Thomas Mortagne
On Tue, Sep 15, 2015 at 9:53 PM, HadleysHope
 wrote:
> I wonder if anyone can help.  I started using xwiki but have been a long time
> use user of tikiwiki.  In it there is something called "trackers" these are
> basically forms.  So I can create trackers that people can fill out and even
> forms that reference other forms.  So for instance I might have a tracker
> called regions that might have two fields, State and City.  So I fill out a
> bunch of those for different states.
>
> Then I can use this in another tracker so that when I select a state, a list
> of cities relevant to that state entered in the previous tracker will auto
> populate a drop down.
>
> My question is, firstly, how do you create these forms (I looked at create
> app and it doesn't seem to do what i want it to) and secondly how do you
> reference other forms?

When you create an application class you have one kind of field called
"Database List" which get the values you can select from others object
by indicating class and a field (which is what you are looking for) or
even a custom hql request. You have a short tutorial on
http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipInXWiki.

>
> Any help greatly appreciated.
>
> HH
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Migration-away-from-TikiWiki-Forms-based-question-tp7595997.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Migration away from TikiWiki - Forms based question.

2015-09-18 Thread Thomas Mortagne
HQL is just the last resort. As I indicated in my previous message in
your case you can simply indicate the class and the field of the other
kind of object where you want to look for possible values to select in
your database list field.

On Thu, Sep 17, 2015 at 9:48 PM, HadleysHope
 wrote:
> Thomas, do you think I would need to use a HQL query to do this? do you know
> of any examples I might look at for querying other fields to perform the
> filter? I am entirely unfamiliar with HQL and as of right now struggling not
> to just uninstall this and move on.
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Migration-away-from-TikiWiki-Forms-based-question-tp7595997p7596051.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Migration away from TikiWiki - Forms based question.

2015-09-18 Thread Thomas Mortagne
http://extensions.xwiki.org/xwiki/bin/view/Extension/Repository+Application
use this a lot. For example each type of extension has it's own object
with various information and documentation associated to the type and
then in the extension class (ExtensionCode.ExtensionClass) the "type"
field is a database list linked to class
"ExtensionCode.ExtensionTypeClass" and field "id", no HQL request
involved (it's a bit like defining a foreign key in a database).

On Fri, Sep 18, 2015 at 9:40 AM, Thomas Mortagne
 wrote:
> HQL is just the last resort. As I indicated in my previous message in
> your case you can simply indicate the class and the field of the other
> kind of object where you want to look for possible values to select in
> your database list field.
>
> On Thu, Sep 17, 2015 at 9:48 PM, HadleysHope
>  wrote:
>> Thomas, do you think I would need to use a HQL query to do this? do you know
>> of any examples I might look at for querying other fields to perform the
>> filter? I am entirely unfamiliar with HQL and as of right now struggling not
>> to just uninstall this and move on.
>>
>>
>>
>> --
>> View this message in context: 
>> http://xwiki.475771.n2.nabble.com/Migration-away-from-TikiWiki-Forms-based-question-tp7595997p7596051.html
>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>> _______
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Using LDAP for page access rights with Kerberos auth

2015-09-18 Thread Thomas Mortagne
If you have an authenticator in front of XWiki that populate the
REMOTE_USER request property you could use
http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+Authenticator+Trusted+LDAP
which has been designed specifically for this use case.

On Fri, Sep 18, 2015 at 3:05 AM, Debajit Adhikary  wrote:
> I have an XWiki setup that uses Kerberos for authentication.
>
> I would like to continue using Kerberos, but use LDAP groups for
> controlling page access rights.
>
> How could I do this?
>
> (If you could point me in the right direction, or to any appropriate
> documentation, that would be a big help)
>
> Thanks in advance
> —Debajit
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Migration away from TikiWiki - Forms based question.

2015-09-18 Thread Thomas Mortagne
Sorry looks like I misread your last message, I did not understood you
already did that part (thanks Vincent for the explanation).

For the second part (field "pre-filter" by first field) I don't think
HQL request will be enough and you will probably have to do your own
custom displayer for it.

On Fri, Sep 18, 2015 at 9:45 AM, Thomas Mortagne
 wrote:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Repository+Application
> use this a lot. For example each type of extension has it's own object
> with various information and documentation associated to the type and
> then in the extension class (ExtensionCode.ExtensionClass) the "type"
> field is a database list linked to class
> "ExtensionCode.ExtensionTypeClass" and field "id", no HQL request
> involved (it's a bit like defining a foreign key in a database).
>
> On Fri, Sep 18, 2015 at 9:40 AM, Thomas Mortagne
>  wrote:
>> HQL is just the last resort. As I indicated in my previous message in
>> your case you can simply indicate the class and the field of the other
>> kind of object where you want to look for possible values to select in
>> your database list field.
>>
>> On Thu, Sep 17, 2015 at 9:48 PM, HadleysHope
>>  wrote:
>>> Thomas, do you think I would need to use a HQL query to do this? do you know
>>> of any examples I might look at for querying other fields to perform the
>>> filter? I am entirely unfamiliar with HQL and as of right now struggling not
>>> to just uninstall this and move on.
>>>
>>>
>>>
>>> --
>>> View this message in context: 
>>> http://xwiki.475771.n2.nabble.com/Migration-away-from-TikiWiki-Forms-based-question-tp7595997p7596051.html
>>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>
>
>
> --
> Thomas Mortagne



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Fwd: XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-09-21 Thread Thomas Mortagne
rror
>> >>> message):
>> >>>
>> >>> select doc.fullName from XWikiDocument as doc , BaseObject as _o1 where
>> >>> ( doc.object ( XWiki.XWikiServerClass ) . server = :wikiAlias
>> >>> and doc.name like 'XWikiServer%' ) and doc.fullName=_o1.name and
>> >>> _o1.className='XWiki.XWikiServerClass'
>> >>>
>> >>> Of course the "( doc.object ( XWiki.XWikiServerClass ) . server" is not
>> >>> proper HQL, something must have gone amiss when translating the XWQL to 
>> >>> HQL.
>> >>>
>> >>> What puzzles me is why this has something to do with the Oracle driver
>> >>> (It is no general bug for sure, otherwise it would have blocked any
>> >>> development ...)
>> >>> I just checked and I get basically the same error message when I try to
>> >>> execute the generated HQL "manually" (from a groovy script in a page),
>> >>> but of course no such error when executing the XWQL (would not have been
>> >>> able to start the server then).
>> >>>
>> >>>
>> >>> Is it possible to direct the installation temporarily to e.g. HSQL-DB
>> >>> (something along
>> >>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationHSQL )
>> >>> - just for testing if the issue goes away then? (It is sure not useful
>> >>> for production use that way until switched back to Oracle ...)
>> >>> If the issue does not go away, then it must be something else ...
>> >>>
>> >>>
>> >>> > Do you still have the problem?
>> >>> >
>> >>> > Could you provide the exact JDBC driver and Oracle versions you use?
>> >>> >
>> >>> > Thanks
>> >>> > -Vincent
>> >>> >
>> >>> > [snip]
>> >>> >
>> >>> > ___
>> >>> > users mailing list
>> >>> > users@xwiki.org
>> >>> > http://lists.xwiki.org/mailman/listinfo/users
>> >>> >
>> >>>
>> >>> ___
>> >>> users mailing list
>> >>> users@xwiki.org
>> >>> http://lists.xwiki.org/mailman/listinfo/users
>> >>>
>> >>
>> >>
>> >
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Using LDAP for page access rights with Kerberos auth

2015-09-23 Thread Thomas Mortagne
On Wed, Sep 23, 2015 at 4:42 AM, Debajit Adhikary  wrote:
> Thanks, I was able to set it up successfully.
>
> I want to check if the currently logged-in user ($xwiki.getUser()) is a
> member of a particular LDAP group. What is the best way to do this with the
> "Trusted LDAP" setup?
>
> *Option 1:*
> I could map the LDAP groups to XWiki groups.

That would be the easiest I think.

>
> *Option 2:*
> Can I do this dynamically without having to map the LDAP groups? (i.e. is
> there an easy way to check if a user belongs to an LDAP group without
> having to map the LDAP group to an XWiki group?)

There is some more or less hidden APIs you can use for that (basically
the tools used by the authenticator to synchronize LDAP Groups and
XWiki Groups) but it's really not been written with Velocity scripting
in mind.

You can look at
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-ldap/xwiki-platform-ldap-authenticator/src/main/java/com/xpn/xwiki/user/impl/LDAP/XWikiLDAPAuthServiceImpl.java#L280
for an example of how to setup those tools (in Groovy for example).
Then you can use APIs like XWikiLDAPUtils#getGroupMembers.

>
>
> On Fri, Sep 18, 2015 at 12:47 AM, Thomas Mortagne > wrote:
>
>> If you have an authenticator in front of XWiki that populate the
>> REMOTE_USER request property you could use
>>
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+Authenticator+Trusted+LDAP
>> which has been designed specifically for this use case.
>>
>> On Fri, Sep 18, 2015 at 3:05 AM, Debajit Adhikary 
>> wrote:
>> > I have an XWiki setup that uses Kerberos for authentication.
>> >
>> > I would like to continue using Kerberos, but use LDAP groups for
>> > controlling page access rights.
>> >
>> > How could I do this?
>> >
>> > (If you could point me in the right direction, or to any appropriate
>> > documentation, that would be a big help)
>> >
>> > Thanks in advance
>> > —Debajit
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Set plain output from within script

2015-09-23 Thread Thomas Mortagne
On Wed, Sep 23, 2015 at 9:27 AM, Bryn Jeffries
 wrote:
> I  wrote:
>>> I have several scripts (Groovy and Velocity) that generate output that 
>>> should not be rendered as a Wiki page. This is necessary, for example, when 
>>> rendering JSON. As documented before 
>>> (http://extensions.xwiki.org/xwiki/bin/view/Extension/Output+JSON) , it's 
>>> possible to allow such content by including request parameters xpage=plain 
>>> and outputSyntax=plain. However, this approach requires all pages that 
>>> refer to the script to remember to include these parameters, which is 
>>> rather error prone.
>>>
>>> Is there a way for a script to explicitly disable rendering instead?
>
> Vincent replied:
>> Yes, there is :)
>>
>> For Groovy, see 
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Script+Macro
>> (check the output and wiki parameters)
>>
>> For Velocity, see 
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Velocity+Macro
>> (same parameter names).
>
> OK, so trying both options with a content body
>
> {{velocity output="false" wiki="false"}}
> $response.setContentType('application/json')
> {
> "greeting" : "Hello",
> "location": "World"
> }
> {{/velocity}}
>
> I get a document of Content-Script-Type  text/javascript but with a 38KB file 
> of HTML containing the usual Wiki page content, which I'd like to avoid. I 
> think if I explicitly set xpage=plain in the request then the template skips 
> rendering this stuff, but what I was wondering was whether I could set this 
> from within my script instead.

There is two different things, wiki="false" indicate that the source
is plain text but by default the output is html so to make sure to
have only your page content and rendered as plain text you can use add
/get/ action and outputSyntax=plain in the URL as in:

http://platform.xwiki.org/xwiki/bin/get/Main/SecondGenerationWiki?outputSyntax=plain

See 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Standard+URL+Format#HAction:get
and 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Standard+URL+Format#HParameter:outputSyntaxandoutputSyntaxVersion
for more details.

> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWQL query: Grouping Date properties by year ?

2015-09-23 Thread Thomas Mortagne
Unfortunately extracting the year of a date field is not supported by
XWQL. See http://jira.xwiki.org/browse/XWIKI-6645.

On Wed, Sep 23, 2015 at 12:01 PM, Sylvain MARIE
 wrote:
> Hello,
>
> The following query counts documents by publication date.
> {{velocity}}
> ## Count all publication dates
> #set($results=$services.query.xwql("select guide.DocumentDate, 
> count(guide.DocumentDate) from Document doc, doc.object(BIMGuides.GuideClass) 
> as guide group by guide.DocumentDate order by guide.DocumentDate").execute())
> PublicationDate,Count
> #foreach($result in $results)
> #set($resDate = $result.get(0))
> #set($resString = $resDate.toString().substring(0, 10))
> $resString,$result.get(1)
> #end
> {{/velocity}}
>
> I would like to regroup publication dates by year (getting « 2014,3 » when 2 
> documents are published in Jan2014 and 1 in Oct2014) instead of getting all 
> single dates.
>
> Any idea ?
>
> Thank you in advance!
> Sylvain
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Using LDAP for page access rights with Kerberos auth

2015-09-24 Thread Thomas Mortagne
On Thu, Sep 24, 2015 at 4:09 AM, Debajit Adhikary  wrote:
> Thanks for the clarification, Thomas.
>
> Does LDAP group syncing work with Trusted LDAP?
>
> (I am able to log in using Trusted LDAP, and can see my LDAP details like
> full-name and email address show up, but I am not able to get LDAP
> group_mapping to work at all — so I'd like to confirm if it would work with
> Trusted LDAP in the first place)

Yep as far as I know it works. It's the exact same code than standard
LDAP, basically most of Trusted LDAP job is to call standard LDA P
authenticator with the right setting depending on REMOTE_USER domain.

>
>
>
> On Tue, Sep 22, 2015 at 11:59 PM, Thomas Mortagne > wrote:
>
>> On Wed, Sep 23, 2015 at 4:42 AM, Debajit Adhikary 
>> wrote:
>> > Thanks, I was able to set it up successfully.
>> >
>> > I want to check if the currently logged-in user ($xwiki.getUser()) is a
>> > member of a particular LDAP group. What is the best way to do this with
>> the
>> > "Trusted LDAP" setup?
>> >
>> > *Option 1:*
>> > I could map the LDAP groups to XWiki groups.
>>
>> That would be the easiest I think.
>>
>> >
>> > *Option 2:*
>> > Can I do this dynamically without having to map the LDAP groups? (i.e. is
>> > there an easy way to check if a user belongs to an LDAP group without
>> > having to map the LDAP group to an XWiki group?)
>>
>> There is some more or less hidden APIs you can use for that (basically
>> the tools used by the authenticator to synchronize LDAP Groups and
>> XWiki Groups) but it's really not been written with Velocity scripting
>> in mind.
>>
>> You can look at
>>
>> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-ldap/xwiki-platform-ldap-authenticator/src/main/java/com/xpn/xwiki/user/impl/LDAP/XWikiLDAPAuthServiceImpl.java#L280
>> for an example of how to setup those tools (in Groovy for example).
>> Then you can use APIs like XWikiLDAPUtils#getGroupMembers.
>>
>> >
>> >
>> > On Fri, Sep 18, 2015 at 12:47 AM, Thomas Mortagne <
>> thomas.morta...@xwiki.com
>> >> wrote:
>> >
>> >> If you have an authenticator in front of XWiki that populate the
>> >> REMOTE_USER request property you could use
>> >>
>> >>
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+Authenticator+Trusted+LDAP
>> >> which has been designed specifically for this use case.
>> >>
>> >> On Fri, Sep 18, 2015 at 3:05 AM, Debajit Adhikary 
>> >> wrote:
>> >> > I have an XWiki setup that uses Kerberos for authentication.
>> >> >
>> >> > I would like to continue using Kerberos, but use LDAP groups for
>> >> > controlling page access rights.
>> >> >
>> >> > How could I do this?
>> >> >
>> >> > (If you could point me in the right direction, or to any appropriate
>> >> > documentation, that would be a big help)
>> >> >
>> >> > Thanks in advance
>> >> > —Debajit
>> >> > ___
>> >> > users mailing list
>> >> > users@xwiki.org
>> >> > http://lists.xwiki.org/mailman/listinfo/users
>> >>
>> >>
>> >>
>> >> --
>> >> Thomas Mortagne
>> >> ___
>> >> users mailing list
>> >> users@xwiki.org
>> >> http://lists.xwiki.org/mailman/listinfo/users
>> >>
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Antw.: XAR

2015-09-24 Thread Thomas Mortagne
al.jar:3.6.9.Final]
> at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1090) 
> ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
> at org.hibernate.impl.SessionImpl.load(SessionImpl.java:974) 
> ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
> at 
> com.xpn.xwiki.store.XWikiHibernateVersioningStore$4.doInHibernate(XWikiHibernateVersioningStore.java:297)
>  ~[xwiki-platform-legacy-oldcore-6.4.5.jar:na]
> at 
> com.xpn.xwiki.store.XWikiHibernateVersioningStore$4.doInHibernate(XWikiHibernateVersioningStore.java:292)
>  ~[xwiki-platform-legacy-oldcore-6.4.5.jar:na]
> at 
> com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1299)
>  ~[xwiki-platform-legacy-oldcore-6.4.5.jar:na]
> ... 64 common frames omitted
>
>
>
>> Br,
>>
>> Peter
>>
>>> Hi Peter,
>>>
>>> Of course, though you might want to think a bit on the approach.
>>>
>>> 1) If you want to do it in XWiki using the scheduler plugin, you have to
>>> write some groovy script [1] in the scheduled task that you create in
>> order
>>> to use the filter module [2] (or the old packager module [3], whichever
>> you
>>> choose) in order to export the pages you are interested in and save the
>>> result (on the filesystem or as an attachment in a page).
>>>
>>> As inspiration, you could check out the source code (in java) of the
>> export
>>> action [4] which is exactly what is going on when you are exporting a
>> page
>>> from the UI.
>>>
>>> 2) A simpler choice, IMO, would be to schedule a cron [5] task on a linux
>>> machine (possible the same one running the XWiki instance) and have that
>>> task simply download (using something like cURL [6]) the result of a
>>> manually crafter export URL (as detailed in our documentation [7])
>>> containing the list of pages to export.
>>>
>>> Hope this helps,
>>> Eduard
>>>
>>> --
>>> [1] http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting 
>>> <http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting>
>>> [2] http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Module 
>>> <http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Module>
>>> [3]
>>>
>> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/plugin/packaging/PackageAPI.java
>>  
>> <https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/plugin/packaging/PackageAPI.java>
>>> [4]
>>>
>> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/ExportAction.java#L244
>>> [5] https://en.wikipedia.org/wiki/Cron
>>> [6] https://en.wikipedia.org/wiki/CURL
>>> [7] http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport
>>>
>>>
>>> On Thu, Sep 17, 2015 at 3:49 PM, Peter Huisman 
>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Is there a way to generate XAR’s using XWiki’s scheduling function? I’m
>>>> not looking for a DB based backup but merely for a backup of spaces /
>> pages.
>>>>
>>>> With kind regards,
>>>>
>>>> Peter
>>>> ___
>>>> users mailing list
>>>> users@xwiki.org
>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>
>>>
>>
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [myxwiki] Request for new wiki

2015-09-24 Thread Thomas Mortagne
You can access your new wiki on http://grw.myxwiki.org.

Enjoy !

On Thu, Sep 24, 2015 at 10:35 AM, Caleb James DeLisle  wrote:
> Hi,
>
> I'd like to start a wiki for documenting a small sociological project
> which I'm doing with a few friends. It will be closed while the project
> is ongoing but we intend to make our findings usable to the outside world
> when the project is complete.
>
> My username is CalebJamesDeLisle and I'd like a wiki named 'grw'
>
> Thanks,
> Caleb
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Antw.: Antw.: XAR

2015-09-24 Thread Thomas Mortagne
>>>  [catalina.jar:7.0.54]
>>>at 
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>  [catalina.jar:7.0.54]
>>>at 
>>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
>>>  [xwiki-platform-container-servlet-6.4.5.jar:na]
>>>at 
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>  [catalina.jar:7.0.54]
>>>at 
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>  [catalina.jar:7.0.54]
>>>at 
>>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
>>>  [xwiki-platform-container-servlet-6.4.5.jar:na]
>>>at 
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>  [catalina.jar:7.0.54]
>>>at 
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>  [catalina.jar:7.0.54]
>>>at 
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>>>  [catalina.jar:7.0.54]
>>>at 
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>>>  [catalina.jar:7.0.54]
>>>at 
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>>>  [catalina.jar:7.0.54]
>>>at 
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>>  [catalina.jar:7.0.54]
>>>at 
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>  [catalina.jar:7.0.54]
>>>at 
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) 
>>> [catalina.jar:7.0.54]
>>>at 
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>>>  [catalina.jar:7.0.54]
>>>at 
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) 
>>> [catalina.jar:7.0.54]
>>>at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193) 
>>> [tomcat-coyote.jar:7.0.54]
>>>at 
>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
>>>  [tomcat-coyote.jar:7.0.54]
>>>at 
>>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
>>>  [tomcat-coyote.jar:7.0.54]
>>>at 
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>  [na:1.7.0_85]
>>>at 
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>  [na:1.7.0_85]
>>>at 
>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>  [tomcat-coyote.jar:7.0.54]
>>>at java.lang.Thread.run(Thread.java:745) [na:1.7.0_85]
>>> Caused by: org.hibernate.ObjectNotFoundException: No row with the given 
>>> identifier exists: 
>>> [com.xpn.xwiki.doc.rcs.XWikiRCSNodeContent#com.xpn.xwiki.doc.rcs.XWikiRCSNodeId@472d6673[docId=9066115529778850634,version=11.1]]
>>>at 
>>> org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:435)
>>>  ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
>>>at 
>>> org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:233)
>>>  ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
>>>at 
>>> org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:285)
>>>  ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
>>>at 
>>> org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152)
>>>  ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
>>>at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1090) 
>>> ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
>>>at org.hibernate.impl.SessionImpl.load(SessionImpl.java:974) 
>>> ~[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
>>>at 
>>> com.xpn.xwiki.store.XWikiHibernateVersioningStore$4.doInHibernate(XWikiHibernateVersioningStore.java:297)
>>>  ~[xwiki-platform-legacy-oldcore-6.4.5.jar:na]
>>>at 
>>> com.xpn.xwiki.store.XWikiHibernateVersioningStore$4.doInHibernate(XWikiHibernateVersioningStore.java:292)
>>>  ~[xwiki-platform-legacy-oldcore-6.4.5.jar:na]
>>>at 
>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1299)
>>>  ~[xwiki-platform-legacy-oldcore-6.4.5.jar:na]
>>>... 64 common frames omitted
>>>
>>>
>>>
>>>> Br,
>>>>
>>>> Peter
>>>>
>>>>> Hi Peter,
>>>>>
>>>>> Of course, though you might want to think a bit on the approach.
>>>>>
>>>>> 1) If you want to do it in XWiki using the scheduler plugin, you have to
>>>>> write some groovy script [1] in the scheduled task that you create in
>>>> order
>>>>> to use the filter module [2] (or the old packager module [3], whichever
>>>> you
>>>>> choose) in order to export the pages you are interested in and save the
>>>>> result (on the filesystem or as an attachment in a page).
>>>>>
>>>>> As inspiration, you could check out the source code (in java) of the
>>>> export
>>>>> action [4] which is exactly what is going on when you are exporting a
>>>> page
>>>>> from the UI.
>>>>>
>>>>> 2) A simpler choice, IMO, would be to schedule a cron [5] task on a linux
>>>>> machine (possible the same one running the XWiki instance) and have that
>>>>> task simply download (using something like cURL [6]) the result of a
>>>>> manually crafter export URL (as detailed in our documentation [7])
>>>>> containing the list of pages to export.
>>>>>
>>>>> Hope this helps,
>>>>> Eduard
>>>>>
>>>>> --
>>>>> [1] http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting 
>>>>> <http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting>
>>>>> [2] http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Module 
>>>>> <http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Module>
>>>>> [3]
>>>>>
>>>> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/plugin/packaging/PackageAPI.java
>>>>  
>>>> <https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/plugin/packaging/PackageAPI.java>
>>>>> [4]
>>>>>
>>>> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/ExportAction.java#L244
>>>>> [5] https://en.wikipedia.org/wiki/Cron
>>>>> [6] https://en.wikipedia.org/wiki/CURL
>>>>> [7] http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport
>>>>>
>>>>>
>>>>> On Thu, Sep 17, 2015 at 3:49 PM, Peter Huisman 
>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Is there a way to generate XAR’s using XWiki’s scheduling function? I’m
>>>>>> not looking for a DB based backup but merely for a backup of spaces /
>>>> pages.
>>>>>>
>>>>>> With kind regards,
>>>>>>
>>>>>> Peter
>>>>>> ___
>>>>>> users mailing list
>>>>>> users@xwiki.org
>>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>>
>>>>>
>>>>
>>>> ___
>>>> users mailing list
>>>> users@xwiki.org
>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>>
>>
>>
>>
>> Van: Caleb James DeLisle 
>> Onderwerp: [xwiki-users] [myxwiki] Request for new wiki
>> Datum: 24 september 2015 10:35:49 CEST
>> Aan: XWiki Users 
>> Antwoord aan: XWiki Users 
>>
>>
>> Hi,
>>
>> I'd like to start a wiki for documenting a small sociological project
>> which I'm doing with a few friends. It will be closed while the project
>> is ongoing but we intend to make our findings usable to the outside world
>> when the project is complete.
>>
>> My username is CalebJamesDeLisle and I'd like a wiki named 'grw'
>>
>> Thanks,
>> Caleb
>>
>>
>>
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Antw.: Antw.: XAR

2015-09-24 Thread Thomas Mortagne
Actually it's a little more that than, it ask for a String version of
the history which is more what happen when a document is deleted.

On Thu, Sep 24, 2015 at 10:59 AM, Thomas Mortagne
 wrote:
> According to the trace it just ask for document version handler,
> nothing more. And that supposed to happen exactly the same way when
> you look at the document versions.
>
>
> On Thu, Sep 24, 2015 at 10:57 AM, Peter Huisman  wrote:
>> That’s the point: As far as I can tell, everything seems to be in order. 
>> What really puzzles me is that - as per the first example - there is no 
>> version history present. The only available version is 1.2. Is the export 
>> function looking for versions earlier than the current function or is it 
>> just looking for “page version objects”?
>>
>> If I use the default Admin Export function, I do see all available versions 
>> for the documents. Importing the page also gives me a full list of all 
>> available versions which I can also revert. After this, it also show up with 
>> no errors in it.
>>
>>>
>>> Looks like the history of those object is not in a great shape. Are
>>> you able to view the history of those documents in error and access
>>> each version ?
>>>
>>> On Thu, Sep 24, 2015 at 10:14 AM, Peter Huisman  wrote:
>>>> Hi Eduard,
>>>>
>>>> We have proceeded as per your advice and created a cron with the URL as 
>>>> explained on 
>>>> http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport 
>>>> <http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport>. It 
>>>> however generates a lot of (in my eyes) unexpected errors in the Log file 
>>>> (resulting in a Log file size of over 500Mb). When we do an export using 
>>>> the Admin panel, we do not encounter this problem.
>>>>
>>>> [example 1]
>>>> the Page (in Bold) has only 1 version (version 1.2) present (and no minor 
>>>> versions). There are no additional errors for this document.
>>>> [example 2]
>>>> This page (also Bold) actually has a version history. The document’s 
>>>> current version is 14.1 with 2 intermediate (lower) versions before 11.1 
>>>> and quite a few below that. Apparently, the export indicates that there is 
>>>> an error in 11.1 but I’m unable to determine the error in the objects. The 
>>>> higher versions do not generate an error and I expect that he quits after 
>>>> the error.
>>>>
>>>> Note: Our pages only contain Custom Objects and Comment objects. There’s 
>>>> no actual content on the page.
>>>> Note: I can not find any version information in the XAR. It seems that 
>>>> only a single version is included in the Export.
>>>>
>>>> Can someone explain why this is happening or guide me towards a solution 
>>>> and (more important :-)) how to correct this?
>>>>
>>>> With kind regards,
>>>>
>>>> Peter
>>>>
>>>> [example 1]
>>>> 2015-09-23 03:10:40,084 
>>>> [http://wiki.dkf.wiki/xwiki/bin/export/Space/Page?format=xar&pages=vr360brabant:%25.%25&name=vr360brabant&history=true&backup=true&author=XWiki.Admin
>>>>  
>>>> <http://wiki.dkf.wiki/xwiki/bin/export/Space/Page?format=xar&pages=vr360brabant:%25.%25&name=vr360brabant&history=true&backup=true&author=XWiki.Admin>]
>>>>  ERROR kiDocumentLocaleEventGenerator - Document 
>>>> [vr360brabant:ZTCVR50348655.EIGSW_jq4Q8bdPCP7zE] has malformed history
>>>> com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while 
>>>> hibernate execute
>>>>at 
>>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1305)
>>>>  ~[xwiki-platform-legacy-oldcore-6.4.5.jar:na]
>>>>at 
>>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:1338)
>>>>  ~[xwiki-platform-legacy-oldcore-6.4.5.jar:na]
>>>>at 
>>>> com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadRCSNodeContent(XWikiHibernateVersioningStore.java:291)
>>>>  ~[xwiki-platform-legacy-oldcore-6.4.5.jar:na]
>>>>at 
>>>> com.xpn.xwiki.doc.rcs.XWikiRCSNodeInfo.getContent(XWikiRCSNodeInfo.java:194)
>>>>  ~[xwiki-platform-legacy-oldcore-6.4.5.jar:na]
>>>>at 
>>>> com.xpn.xwiki.doc.rcs.XWiki

Re: [xwiki-users] Antw.: Antw.: XAR

2015-09-24 Thread Thomas Mortagne
From what I understand from the error it looks like some version(s) of
the document have identifiers but no content.

On Thu, Sep 24, 2015 at 11:01 AM, Thomas Mortagne
 wrote:
> Actually it's a little more that than, it ask for a String version of
> the history which is more what happen when a document is deleted.
>
> On Thu, Sep 24, 2015 at 10:59 AM, Thomas Mortagne
>  wrote:
>> According to the trace it just ask for document version handler,
>> nothing more. And that supposed to happen exactly the same way when
>> you look at the document versions.
>>
>>
>> On Thu, Sep 24, 2015 at 10:57 AM, Peter Huisman  wrote:
>>> That’s the point: As far as I can tell, everything seems to be in order. 
>>> What really puzzles me is that - as per the first example - there is no 
>>> version history present. The only available version is 1.2. Is the export 
>>> function looking for versions earlier than the current function or is it 
>>> just looking for “page version objects”?
>>>
>>> If I use the default Admin Export function, I do see all available versions 
>>> for the documents. Importing the page also gives me a full list of all 
>>> available versions which I can also revert. After this, it also show up 
>>> with no errors in it.
>>>
>>>>
>>>> Looks like the history of those object is not in a great shape. Are
>>>> you able to view the history of those documents in error and access
>>>> each version ?
>>>>
>>>> On Thu, Sep 24, 2015 at 10:14 AM, Peter Huisman  wrote:
>>>>> Hi Eduard,
>>>>>
>>>>> We have proceeded as per your advice and created a cron with the URL as 
>>>>> explained on 
>>>>> http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport 
>>>>> <http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport>. 
>>>>> It however generates a lot of (in my eyes) unexpected errors in the Log 
>>>>> file (resulting in a Log file size of over 500Mb). When we do an export 
>>>>> using the Admin panel, we do not encounter this problem.
>>>>>
>>>>> [example 1]
>>>>> the Page (in Bold) has only 1 version (version 1.2) present (and no minor 
>>>>> versions). There are no additional errors for this document.
>>>>> [example 2]
>>>>> This page (also Bold) actually has a version history. The document’s 
>>>>> current version is 14.1 with 2 intermediate (lower) versions before 11.1 
>>>>> and quite a few below that. Apparently, the export indicates that there 
>>>>> is an error in 11.1 but I’m unable to determine the error in the objects. 
>>>>> The higher versions do not generate an error and I expect that he quits 
>>>>> after the error.
>>>>>
>>>>> Note: Our pages only contain Custom Objects and Comment objects. There’s 
>>>>> no actual content on the page.
>>>>> Note: I can not find any version information in the XAR. It seems that 
>>>>> only a single version is included in the Export.
>>>>>
>>>>> Can someone explain why this is happening or guide me towards a solution 
>>>>> and (more important :-)) how to correct this?
>>>>>
>>>>> With kind regards,
>>>>>
>>>>> Peter
>>>>>
>>>>> [example 1]
>>>>> 2015-09-23 03:10:40,084 
>>>>> [http://wiki.dkf.wiki/xwiki/bin/export/Space/Page?format=xar&pages=vr360brabant:%25.%25&name=vr360brabant&history=true&backup=true&author=XWiki.Admin
>>>>>  
>>>>> <http://wiki.dkf.wiki/xwiki/bin/export/Space/Page?format=xar&pages=vr360brabant:%25.%25&name=vr360brabant&history=true&backup=true&author=XWiki.Admin>]
>>>>>  ERROR kiDocumentLocaleEventGenerator - Document 
>>>>> [vr360brabant:ZTCVR50348655.EIGSW_jq4Q8bdPCP7zE] has malformed history
>>>>> com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while 
>>>>> hibernate execute
>>>>>at 
>>>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1305)
>>>>>  ~[xwiki-platform-legacy-oldcore-6.4.5.jar:na]
>>>>>at 
>>>>> com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:1338)
>>>>>  ~[xwiki-platform-legacy-oldcore-6.4.5.jar:na]
>>>>>

Re: [xwiki-users] Antw.: Antw.: Antw.: XAR

2015-09-24 Thread Thomas Mortagne
According to the error what is falling is the method
XWikiDocumentArchive#getArchive when trying to load version 11.1. Did
you tried executing it ? Is this version listed in your code ?

On Thu, Sep 24, 2015 at 1:14 PM, Peter Huisman  wrote:
> I did some testing on this document and it’s history:
>
> LocalDocumentReference docLDR = new 
> LocalDocumentReference(spaceName, pageName);
> DocumentReference docRef = new 
> DocumentReference(docLDR, new WikiReference(this.CONTEXT.getWikiId()));
> XWikiDocument a = new XWikiDocument(docRef);
> XWikiVersioningStoreInterface b = 
> a.getVersioningStore(this.CONTEXT);
> Version[] c = b.getXWikiDocVersions(a, this.CONTEXT);
> XWikiDocumentArchive e = b.getXWikiDocumentArchive(a, 
> this.CONTEXT);
> for(Version version : c) {
> XWikiDocument f = e.loadDocument(version, 
> this.CONTEXT);
> BaseObject g = f.getXObject(new 
> DocumentReference(this.wiki.getName(), "DutoCode", "AfgeleidPrincipeClass"));
> }
>
> This gives me all of the document versions that are available and there are 
> no error showing the Object data (I’ve removed all the logging statements). 
> So no documents are empty.
>
> Any suggestion on where to look for?
>
>>
>>> From what I understand from the error it looks like some version(s) of
>> the document have identifiers but no content.
>>
>> On Thu, Sep 24, 2015 at 11:01 AM, Thomas Mortagne
>> mailto:thomas.morta...@xwiki.com>> wrote:
>>> Actually it's a little more that than, it ask for a String version of
>>> the history which is more what happen when a document is deleted.
>>>
>>> On Thu, Sep 24, 2015 at 10:59 AM, Thomas Mortagne
>>> mailto:thomas.morta...@xwiki.com>> wrote:
>>>> According to the trace it just ask for document version handler,
>>>> nothing more. And that supposed to happen exactly the same way when
>>>> you look at the document versions.
>>>>
>>>>
>>>> On Thu, Sep 24, 2015 at 10:57 AM, Peter Huisman >>> <mailto:p.huis...@ximm.nl>> wrote:
>>>>> That’s the point: As far as I can tell, everything seems to be in order. 
>>>>> What really puzzles me is that - as per the first example - there is no 
>>>>> version history present. The only available version is 1.2. Is the export 
>>>>> function looking for versions earlier than the current function or is it 
>>>>> just looking for “page version objects”?
>>>>>
>>>>> If I use the default Admin Export function, I do see all available 
>>>>> versions for the documents. Importing the page also gives me a full list 
>>>>> of all available versions which I can also revert. After this, it also 
>>>>> show up with no errors in it.
>>>>>
>>>>>>
>>>>>> Looks like the history of those object is not in a great shape. Are
>>>>>> you able to view the history of those documents in error and access
>>>>>> each version ?
>>>>>>
>>>>>> On Thu, Sep 24, 2015 at 10:14 AM, Peter Huisman >>>>> <mailto:p.huis...@ximm.nl>> wrote:
>>>>>>> Hi Eduard,
>>>>>>>
>>>>>>> We have proceeded as per your advice and created a cron with the URL as 
>>>>>>> explained on 
>>>>>>> http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport 
>>>>>>> <http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport> 
>>>>>>> <http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport 
>>>>>>> <http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport>>.
>>>>>>>  It however generates a lot of (in my eyes) unexpected errors in the 
>>>>>>> Log file (resulting in a Log file size of over 500Mb). When we do an 
>>>>>>> export using the Admin panel, we do not encounter this problem.
>>>>>>>
>>>>>>> [example 1]
>>>>>>> the Page (in Bold) has only 1 version (version 1.2) present (and no 
>>>>>>> minor versions). There are no additional errors for this document.
>>>>>>> [example 2]
>>>>>>> This page (also Bold)

Re: [xwiki-users] Antw.: Antw.: Antw.: Antw.: XAR

2015-09-24 Thread Thomas Mortagne
You could maybe try to delete the version 11.1 and try exporting again.

On Thu, Sep 24, 2015 at 4:27 PM, Peter Huisman  wrote:
> After I load the XWikiDocumentArchive, I can call the getArchive ((I used 
> String h = e.getArchive(this.CONTEXT);). This gives me the complete archive 
> of the versions. And I guess you are right about the content. Where any 
> previous or later version is fully XML compliant, the 11.1 version shows the 
> following content (I have replaced large text area’s with [a lot of text]:
>
> 
> 11.1
> log
> @@
> text
> @d14 1
> a14 1
> 1442743679000
> d16 1
> a16 1
> 11.1
> d336 1
> a336 1
> Er zijn vertaaltabellen voor relevante combinaties van 
> zowel gebruikte en in gebruik zijnde metainformatiestandaarden als van de 
> daarbij horende waardenlijsten.
> d378 1
> a378 1
> [a lot of text]
> d380 1
> a380 1
> [a lot of text]
> d382 3
> a384 1
> 1. de metainformatiestandaard bevat zelf een waardetabel.
> d386 1
> a386 1
> 1. de metainformatiestandaard verwijst naar een classificatieschema.
> d389 1
> a389 1
> 1. de metainformatiestandaard verwijst naar een meer algemene registratie in 
> de vorm van een database met gestandaardiseerde gegevens.
> d396 1
> a396 1
> [a lot of text]
> d398 1
> a398 1
> [a lot of text]
> d400 1
> a400 1
> Meer concreet levert dit de volgende voorbeelden van toepassingen op:
> d403 1
> a403 2
> [a lot of text]
> d405 1
> a405 1
> [a lot of text]
> 
> @
> 
>
> I am unable to make any sense of this - especially because since the listing 
> of the object properties in the snippet below give me following data:
> 
> Versie = 11.1
>identificatieString : AP_P9doA5GQpspPj
>prefix : AP
>nummer : 55
>afgeleidPrincipe : Er zijn vertaaltabellen voor relevante combinaties van 
> zowel gebruikte en in gebruik zijnde metainformatiestandaarden als van de 
> daarbij horende waardenlijsten.
>isAfgeleideVanBasisprincipe : []
>toelichting : [a lot of text]
>overweging : Dit nieuwe principe is bedoeld als vervanging van AP 23, 36 
> en 54.
>voorbeelden :
>standaarden : In ieder geval alle landelijke mclassificatieschema's en 
> metainformatiestandaarden.
>bronverwijzingen :
>acties :
>actiehouder : XWiki.AdrieSpruit
>scoreBegrijpelijk : 0
>scoreCorrect : 0
>scoreWenselijk : 0
>scoreUitvoerbaar :
>heeftStatus : ST_6JgwAwqZungbE
> 
>
> What I can get out of this is:
> - A lot of  items are not present.
> - the XML item in the  part () is the only property 
> that has indeed changed compared to the previous version (10.1). Some 
> information is missing compared to the same item in the  block.
> - the XML item in the  part (< afgeleidPrincipe> is according to 
> what it should be.
> - the XML item in the  part () could well be alright - I 
> actually don’t know :-)
> - I can make the 11.1 version the current version and it shows up as expected 
> (version 15.1)
> - Comparing the 11.1 with the 15.1 version shows that they are the same 
> (except for the user)
>
> Can you help me understand how this can be the case? And of course what I can 
> do to correct this situation?
>
> I’m sorry about the somewhat complex way of explaining but I hope you can 
> help me out here.
>
> Br,
>
> Peter
>
>
>>
>> According to the error what is falling is the method
>> XWikiDocumentArchive#getArchive when trying to load version 11.1. Did
>> you tried executing it ? Is this version listed in your code ?
>>
>> On Thu, Sep 24, 2015 at 1:14 PM, Peter Huisman > <mailto:p.huis...@ximm.nl>> wrote:
>>> I did some testing on this document and it’s history:
>>>
>>>LocalDocumentReference docLDR = new 
>>> LocalDocumentReference(spaceName, pageName);
>>>DocumentReference docRef = new 
>>> DocumentReference(docLDR, new WikiReference(this.CONTEXT.getWikiId()));
>>>XWikiDocument a = new XWikiDocument(docRef);
>>>XWikiVersioningStoreInterface b = 
>>> a.getVersioningStore(this.CONTEXT);
>>>Version[] c = b.getXWikiDocVersions(a, this.CONTEXT);
>>>XWikiDocumentArchive e = 
>>> b.getXWikiDocumentArchive(a, this.CONTEXT);
>>>for(Version version : c) {
>>>XWikiDocument f = e.loadDocument(version, 
>>> this.CONTEXT);
>>>BaseObject g = f.getXObject(new 
>>> DocumentReference(this.wiki.getName(

Re: [xwiki-users] Antw.: Antw.: Antw.: Antw.: XAR

2015-09-25 Thread Thomas Mortagne
On Fri, Sep 25, 2015 at 11:41 AM, Peter Huisman  wrote:
> Hi Eduard,
>
> Apparently, the use of the following call is not working:
>
> http:///xwiki/bin/export/Space/Page&format=xar&pages=ws360vthwest:%25.%25&name=ws360vthwest&history=true&backup=true&author=XWiki.Admin
>  
> /xwiki/bin/export/Space/Page&format=xar&pages=ws360vthwest:%.%&name=ws360vthwest&history=true&backup=true&author=XWiki.Admin>
>
> Apparently, the export is able to find the pages, but not the history.
> The one that works without any problem is:
>
> http:///xwiki/wiki/dutotest/export/Main/WebHome?format=xar&name=export&pages=%25.%25&history=true
>  
> /xwiki/wiki/dutotest/export/Main/WebHome?format=xar&name=export&pages=%.%&history=true>
>
> The difference between both calls is, that the first one is using the Main 
> wiki, where the second one is using the Wiki that needs to be exported.
>
> Did I misread the documentation on this? I’m happy that we have at least 
> solved the problem. I’m sorry to have used up some your time for this but 
> thanks for helping me get some understanding on the topic.

Since you properly indicate the wiki in the page name it looks like a
bug to me. Would be great of your could create an issue on
http://jira.xwiki.org/browse/XWIKI.

>
> Br,
>
> Peter
>>
>>>
>>> You could maybe try to delete the version 11.1 and try exporting again.
>>>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Error installing XWiki 7.2

2015-09-25 Thread Thomas Mortagne
On Fri, Sep 25, 2015 at 11:47 AM, Jan Šlegr  wrote:
> Hi,
>
> I tried to install newly released XWiki 7.2. The same machine (Debian + 
> Apache + Tomcat 7 + MySQL) was used to test testing versions of 7.2 without 
> problems. Manual installation always used (no Debian package).
>
> In Step 1 I received this error when trying install XWiki Enterprise Flavor - 
> Main Wiki:
> ...
> Installing document [Home > Macros > TreeTranslations]
> [admin] access has been denied for user [xwiki:XWiki.Admin] on [xwiki]: 
> security checkpoint
> Access denied when checking [admin] access to [Wiki xwiki] for user 
> [xwiki:XWiki.Admin]
> class org.xwiki.security.authorization.AccessDeniedException: Access denied 
> when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.Admin]
> at 
> org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
> at 
> org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.checkRegistrationAuthorization(DocumentTranslationBundleFactory.java:442)
> at 
> org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.registerTranslationBundle(DocumentTranslationBundleFactory.java:418)
> at 
> org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.translationDocumentUpdated(DocumentTranslationBundleFactory.java:346)
> at 
> org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.access$000(DocumentTranslationBundleFactory.java:86)
> at 
> org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory$1.onEvent(DocumentTranslationBundleFactory.java:156)
> at 
> org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:304)
> at 
> org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1529)
> at 
> org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocumentSetContextUser(DocumentMergeImporter.java:346)
> at 
> org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocument(DocumentMergeImporter.java:332)
> at 
> org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocument(DocumentMergeImporter.java:126)
> at 
> org.xwiki.extension.xar.internal.handler.packager.Packager.importDocumentToWiki(Packager.java:223)
> at 
> org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:174)
> at 
> org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:146)
> at 
> org.xwiki.extension.xar.internal.handler.packager.Packager.importXAR(Packager.java:136)
> at 
> org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:203)
> at 
> org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:167)
> at 
> org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
> at 
> org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:256)
> at 
> org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:204)
> at 
> org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:151)
> at 
> org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:150)
> at org.xwiki.job.internal.AbstractJob.runInContext(AbstractJob.java:209)
> at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:192)
> 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)
> Done installing document [Home > Macros > TreeTranslations]
> ...
> There are more problems reported in the list, all seems are "[admin] access 
> has been denied for user [xwiki:XWiki.Admin] on [xwiki]: security checkpoint".
>
> I guess I configured XWiki in the same way and old installation including 
> cache were removed completely. Is there anything else I should check?

According to the error it looks like Macros.TreeTranslations was
installed before Admin user got admin right which is weird since as
far as I can see all dependencies are in the right order in XWiki
Enterprise Flavor - Main Wiki. Would be great if your could create an
issue on http://jira.xwiki.org with all the details you have. In the
meantime if all the error are of the same kind restarting XWiki should
be enough to fix them, if admin user still do

Re: [xwiki-users] Search failing after upgrade to 7.2

2015-09-26 Thread Thomas Mortagne
ReferenceResolver.getDefaultReference(ExplicitReferenceEntityReferenceResolver.java:45)
>
> at 
> org.xwiki.model.internal.reference.AbstractEntityReferenceResolver.resolveDefaultReference(AbstractEntityReferenceResolver.java:77)
>
> at 
> org.xwiki.model.internal.reference.AbstractReferenceEntityReferenceResolver.resolve(AbstractReferenceEntityReferenceResolver.java:67)
>
> at 
> org.xwiki.model.internal.reference.AbstractReferenceEntityReferenceResolver.resolve(AbstractReferenceEntityReferenceResolver.java:41)
>
> at 
> org.xwiki.search.solr.internal.reference.SolrEntityReferenceResolver.resolveMissingReference(SolrEntityReferenceResolver.java:173)
>
> at 
> org.xwiki.search.solr.internal.reference.SolrEntityReferenceResolver.getSpaceReference(SolrEntityReferenceResolver.java:111)
>
> at 
> org.xwiki.search.solr.internal.reference.SolrEntityReferenceResolver.getEntityReference(SolrEntityReferenceResolver.java:71)
>
> at 
> org.xwiki.search.solr.internal.reference.SolrEntityReferenceResolver.resolve(SolrEntityReferenceResolver.java:63)
>
> at 
> org.xwiki.search.solr.internal.reference.SolrEntityReferenceResolver.resolve(SolrEntityReferenceResolver.java:46)
>
> at 
> org.xwiki.search.solr.script.SolrIndexScriptService.resolve(SolrIndexScriptService.java:242)
>
> at 
> org.xwiki.search.solr.script.SolrIndexScriptService.resolve(SolrIndexScriptService.java:227)
>
> 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)
>
> ... 161 more
>
>
> Help please. Thanks ☺
>
>
> Kind regards,
>
>
> Mahomed Hussein
> Custodian Data Centre
> Email: maho...@custodiandc.com
> http://www.CustodianDC.com
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] ForumApplication : Subscribe by mail ?

2015-09-30 Thread Thomas Mortagne
I don't know this application well enough to tell you if there is a
specific option in its UI but whatever application you can always
subscribe to receive notifications by mail on any page, space or even
the whole wiki.

See http://extensions.xwiki.org/xwiki/bin/view/Extension/Watchlist+Application.

On Wed, Sep 30, 2015 at 4:34 PM, j3rem1e  wrote:
> Hello,
>
> I use xwiki 6.4 with the forum application. I would like to subscribe to a
> forum and receive a notification by mail when a new subject or a comment is
> posted. Is it possible with the current version ? I didn't find a way to do
> it.
>
> Thanks!
> Jeremie
>
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/ForumApplication-Subscribe-by-mail-tp7596257.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] ForumApplication : Subscribe by mail ?

2015-09-30 Thread Thomas Mortagne
It probably means that the change was a new document, you should
subscribe to the space itself (instead of each document in the space)
maybe. Basically you need to find out where the change you want to be
notified is going to happen.

On Wed, Sep 30, 2015 at 6:15 PM, j3rem1e  wrote:
> I tryied to subscribe to all documents on the forum space but i didn't
> received any mails.
> The watchlist works in the others spaces, though.
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/ForumApplication-Subscribe-by-mail-tp7596257p7596259.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] StyleSheetExtension doesn't work on myxwiki.org ?

2015-10-01 Thread Thomas Mortagne
Yes we should modify it to require local admin right like
translations, wiki macros, etc..

On Wed, Sep 30, 2015 at 7:23 PM, vinc...@massol.net  wrote:
> Hi Pascal,
>
> On 30 Sep 2015 at 19:14:31, Pascal BASTIEN 
> (pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote:
>
>> Hello,
>>
>> I attached a page with StyleSheetExtension object on 
>> http://coc.myxwiki.org/xwiki/bin/view/Sandbox/style but it doesn't work.
>> http://coc.myxwiki.org/xwiki/bin/view/Sandbox/style
>> http://coc.myxwiki.org/xwiki/bin/edit/Sandbox/style?editor=object
>> with simple CSS instructions:
>> p {
>> color:red;
>> }
>>
>> My "admin" user account need PR to use StyleSheetExtension object?
>
> Indeed, when using “Always on this wiki” we currently require PR. I think we 
> should allow it if you’re the owner of the wiki or have admin permissions. 
> Maybe you could start a discussion thread on this or create a jira issue?
>
> For now, you can use “On demand” or “only on this page” and it should work 
> fine.
>
> Thanks
> -Vincent
>
>> Thxs
>>
>> Pascal B
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Fw : Re: About programming Rights on myxwiki.org...

2015-10-01 Thread Thomas Mortagne
IMO we should allow local admin ti use skin extensions since:

1. they can override any part of the skin anyway
2. it will be more consistent with other similar extensions
(translation, ui extensions, wiki macros, etc.)


On Thu, Oct 1, 2015 at 9:52 AM, Pascal BASTIEN  wrote:
>
>> > > Another way to give
>> some PR, you can give them at github or Jirah
>> contributors?
>> > > "We hosting
>> your nice xwiki but if you want more you can give us a few
>> pieces of code)”
>> >
>> > Interesting idea. This reminds me of the
>> idea I had a while ago to gamify contributions to xwiki:
>> > http://markmail.org/message/6cqqriz5rylq26nk
>> >
>> > Thanks
>> > -Vincent
>
> Add a reputation field in profile on http://www.xwiki.org? Yes. This 
> reputation must be display somewhere else: on comments by example, on monthly 
> top contributors?
> I don't want restart the debat but I don't like forum either (it exists 
> anyway like you said)
> I prefer a page with debat or questions in comments to finally update current 
> page and make it alive)
>
> Pascal
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Need programming rights on MyXwiki.org

2015-10-04 Thread Thomas Mortagne
Should be ok now.

On Sun, Oct 4, 2015 at 1:05 PM, Ldm Public  wrote:
> Hi All,
>
> I need to empty recycle bin (both pages and attchments) but I'm not
> authorized to do so.
>
> Page:
> http://tutos.myxwiki.org/xwiki/bin/view/Main/AllDocs?view=deletedAttachments
>
> Returns:
> This document requires programming rights and needs to be saved by an
> administrator of this Wiki
>
> Thanks for your help I'm not in a hurry :-).
>
> Best regards
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Defining a macro for the confluence syntax

2015-10-05 Thread Thomas Mortagne
On Mon, Oct 5, 2015 at 1:09 AM, Paul Libbrecht  wrote:
> Hello Vincent,
>> What failed?
> Reading the content.
>> I was just saying that our Confluence parser should support macros. I’ve 
>> just tried writing a page in Confluence syntax using an existing XWiki macro 
>> and it worked:
>>
>> {html}hello{html}
> I can't explain why this one works but I presume there's a switch
> internally to it that automatically converts the html macro into a
> closing html macro (and indeed, it's nonsense to nest html).
>> This worked too:
>>
>> {documentTree}
>> This worked too (showing we can pass one parameter):
>> {documentTree:checkboxes=true}
> Yes, parameters reading (single and multiple) worked fine (but they need
> escaping).
>
>
> I tried a tick more formally to see if I could make a macro with content
> and failed. Here's how.
>
> Page:
>   {testmacro}
>   this is the content
>   {testmacro}
>
> Macro: (Tools.TestMacro, object XWiki.WikiMacroClass)
> id: testmacro
> inline: no (I tried yes too, with inlined macro in the page)
> visibility: global
> macro content type: optional
> macro code:
> testMacroStart{{velocity}}$!xcontext.macro.content{{/velocity}}testMacroEnd
>
> The resulting page gives:
>
> testMacroStarttestMacroEnd
> this is the content
> testMacroStarttestMacroEnd
>
> I tried to adjust the content type to mandatory but this bragged...
> having no content!
>
> If macro content was thinkable, then there should be somewhere in the
> grammar a different mark for start and end macro or? I don't see the latter.

No there is no special syntax, I guess in Confluence world macro
handled are talling the parser which kind of macro they are during the
parsing. In XWiki Confluence parser there is just a hardcoded list of
known content macro right now and the default seems to be no content.
We need to make it a bit more extensible.

>
> Since, according to
> https://developer.atlassian.com/confdev/tutorials/macro-tutorials-for-confluence/creating-a-new-confluence-macro,
> "there are three available body types for macros: PLAIN_TEXT, RICH_TEXT,
> and NONE. ", I suppose the only solution is to make the scanner read the
> macro content type and fork differently if mandatory (and optional?) or
> no content type. Maybe these two levels are a bit far from each other...
>
> Paul
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Attachment- and extension problems, with related documentation questions for latest stable release

2015-10-05 Thread Thomas Mortagne
; uploading 116 images of individual size ~ 3M, a total size of 374M.
>> > > Uploading of files failed after 80 something files had been uploaded to
>> > > the page. The disk space on the servlet container server host was full.
>> > > In
>> > > /var/cache/tomcat/work/Catalina/localhost/xwiki/xwiki-temp/attachment-cache
>> > > a total of 6.3G of data had been stored.
>> > > - Looking at the checksum of the 2000 something files stored in this
>> > > directory there are 86 unique files some of which stored in 29 copies
>> > > during the upload process. Is this a desired behavior of the attachment
>> > > cache, or is this a bug?
>> >
>> > We have performance problems when uploading attachments in the DB (it’s 
>> > very memory-hungry) but I didn’t know that the temporary directory was 
>> > used that much. This looks like a bug. It would be great if you could open 
>> > a jira issue at http://jira.xwiki.org with your details so that we could 
>> > look at this into more details.
>> >
>> > Now since you seem to be wanting to have a lot of attachments and possibly 
>> > or large size, I’d highly recommend you turn on filesystem storage for 
>> > attachments.
>> >
>> > > * My third problem was when trying to install an extension. I was really
>> > > curious about, and wanted to test, the social login application, that
>> > > even is referred to from the administration guide
>> > > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HSocialLogin.
>> > > This extension does not install at all on the latest stable. My java
>> > > knowledge is limited, but, I interpret the error message as failure to
>> > > satisfy requirement of servlet api version 2.5 (maybe since latest
>> > > stable xwiki has servlet version prereq of 3.0+).
>> >
>> > Unfortunately it seems you were not lucky and you picked one extension for 
>> > which its author and the community have not updated to work on the latest 
>> > version of XWiki :(
>> >
>> > As you can see on 
>> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Social+Login+Application
>> >  this extension has been contributed by Jerome Velocity but this person is 
>> > not active anymore on it AFAIK and I don’t know anyone else who’s active 
>> > on it at the moment (although Thomas Mortagne seems to have fixed some 
>> > issues and released the last version - see 
>> > http://jira.xwiki.org/browse/AUTHSL).
>> >
>> > I’d suggest 2 things:
>> >
>> > 1) you rate it quite poorly at 
>> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Social+Login+Application
>> >  so that others know what to expect. You can also help future users by 
>> > commenting on 
>> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Social+Login+Application
>> >  (or even editing the page if you’re logged in) to add the information 
>> > about the fact that it doesn’t work with XWiki 7.x. EDIT: I’ve just added 
>> > that information on the page (haven’t tested myself, I’ve based my edit on 
>> > your feedback).
>> >
>> > 2) you create a jira issue at http://jira.xwiki.org/browse/AUTHSL and 
>> > maybe someone will pick it up and fix it.
>>
>> Actually I’ve created it at http://jira.xwiki.org/browse/AUTHSL-3 and I’ll 
>> try to fix it now, it seems easy enough to fix.
>
> I spoke too fast… This was only the tip of the iceberg. I’ve commented at 
> http://jira.xwiki.org/browse/AUTHSL-3?focusedCommentId=87597&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-87597
>
> Since someone reported it to work with XWiki 6.0.1, I guess it should work 
> fine in 6.4.4 (LTS).
>
> Thanks
> -Vincent
>
>> Thanks
>> -Vincent
>>
>> > > - Since the documentation only exist in one latest version, should I as
>> > > user assume that the documentation is applicable for latest
>> > > development-, stable- or long term release?
>> >
>> > All documentation on xwiki.org(http://xwiki.org) is always for the latest 
>> > version unless mentioned explicitly.
>> >
>> > > Now, it might be bad luck, or my failure to understand the xwiki release
>> > > process, that my first three tests of the software failed with problems.
>> >
>> > Yes I believe you were not lucky and I’m really sorry that XWiki didn’t 
>> > make a good first impression as a result. Try to persevere a bit more and 
>> > I’m sure it’ll go uphill from now on :)
>> >
>> > > I will now try the long term support release hoping that I successfully
>> > > can add attachments and install extensions according to my requirements.
>> >
>> > Most extensions should work fine with 7.1.2. You can also verify this by 
>> > using extensions that have had recent versions released.
>> >
>> > Thanks a lot for your feedback! If you have more ideas on things we 
>> > could/should do to improve the user experience, please share them here. 
>> > You’ve already helped a lot with this report.
>> >
>> > Thanks
>> > -Vincent
>> >
>> >
>> > > Best regards
>> > > Johan Eriksson
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Fw : Re: need video on myxwiki.org

2015-10-05 Thread Thomas Mortagne
On Mon, Oct 5, 2015 at 2:16 PM, vinc...@massol.net  wrote:
>
>
> On 5 Oct 2015 at 14:15:18, pbasnews-thor...@yahoo.fr 
> (pbasnews-thor...@yahoo.fr(mailto:pbasnews-thor...@yahoo.fr)) wrote:
>
>>
>> > >
>> > > I need install
>> > this extension 
>> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro
>> > on http://coc.myxwiki.org.
>> > > Is it possible without PR or a nice admin
>> > can do it or is it strickly forbidden?
>> >
>> > Did you try it? It didn’t
>> > work?
>>
>> Yes PR required: "Programming right is required to install extension 
>> [org.webjars:video-js-4.11.4] on namespace [wiki:coc]”
>
> Ok, I thought we didn’t ask for PR when installing a XAR in a subwiki.

org.webjars:video-js is not a XAR

>
> Thanks
> -Vincent
>
>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Fw : Re: need video on myxwiki.org

2015-10-05 Thread Thomas Mortagne
On Mon, Oct 5, 2015 at 2:21 PM, vinc...@massol.net  wrote:
>
> On 5 Oct 2015 at 14:20:23, Thomas Mortagne 
> (thomas.morta...@xwiki.com(mailto:thomas.morta...@xwiki.com)) wrote:
>
>> On Mon, Oct 5, 2015 at 2:16 PM, vinc...@massol.net wrote:
>> >
>> >
>> > On 5 Oct 2015 at 14:15:18, pbasnews-thor...@yahoo.fr 
>> > (pbasnews-thor...@yahoo.fr(mailto:pbasnews-thor...@yahoo.fr)) wrote:
>> >
>> >>
>> >> > >
>> >> > > I need install
>> >> > this extension 
>> >> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro
>> >> > on http://coc.myxwiki.org.
>> >> > > Is it possible without PR or a nice admin
>> >> > can do it or is it strickly forbidden?
>> >> >
>> >> > Did you try it? It didn’t
>> >> > work?
>> >>
>> >> Yes PR required: "Programming right is required to install extension 
>> >> [org.webjars:video-js-4.11.4] on namespace [wiki:coc]”
>> >
>> > Ok, I thought we didn’t ask for PR when installing a XAR in a subwiki.
>>
>> org.webjars:video-js is not a XAR
>
> My bad I checked 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro#HDependencies
>  too quickly…
>
> So it makes sense since we require PR for installing a JAR extension.

Even if it's a bit of a pain for webjars (see
http://jira.xwiki.org/browse/XWIKI-12566).

>
> Thanks
> -Vincent
>
>> > Thanks
>> > -Vincent
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] LDAP Updates issue (from Xwiki to Windows AD)

2015-10-07 Thread Thomas Mortagne
XWiki -> LDAP sync is not supported by the standard LDAP authenticator
right now.

On Wed, Oct 7, 2015 at 11:29 PM, AlexIv  wrote:
> I don't think there is such a function, as I saw no similar settings in
> xwiki.cfg
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/LDAP-Updates-issue-from-Xwiki-to-Windows-AD-tp7596380p7596381.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Authentication problem when a LDAP User first logs in to the subwiki

2015-10-08 Thread Thomas Mortagne
Sounds like the way you configured LDAP your users are duplicated in
all wikis. So when you are in a subwiki and then move to main wiki you
move as the a subwiki user which usually don't have any right on main
wiki.

It's usually better to force all LDAP user to be created on main wiki
only, see 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/LDAPAuthenticationUseCases#HI27minamultiwikienvironmentandIwantmyLDAPuserstoregisteronlyonthemainwiki.

On Wed, Oct 7, 2015 at 3:49 PM, AlexIv  wrote:
> the problem was with the XWiki Enterprise 7.1.2 and it remained in the
> version 7.2
> I think it's in cookies
> Maybe you have some settings for them?
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Authentication-problem-when-a-LDAP-User-first-logs-in-to-the-subwiki-tp7596293p7596375.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Delete page - Error number 0 in 3: Exception while hibernate execute

2015-10-09 Thread Thomas Mortagne
If you put the same WAR version you won't get the Distribution Wizard
anyway (otherwise you would get it every time you restart).

On Fri, Oct 9, 2015 at 10:31 AM, Hamster  wrote:
> So with the same war file and the same database...do we still need to run the
> upgrade process?
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Delete-page-Error-number-0-in-3-Exception-while-hibernate-execute-tp7596386p7596402.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Authentication problem when a LDAP User first logs in to the subwiki

2015-10-12 Thread Thomas Mortagne
On Fri, Oct 9, 2015 at 4:18 PM, AlexIv  wrote:
> all is right, the subwiki creates its local ldap users
> but I already use the option:
> xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl

I think you misunderstood what I suggested. That "option" just mean
you are using LDAP authenticator. What I'm telling you is that you
have your LDAP users duplicated everywhere in your wiki farm and XWiki
see them as different users whicle you should make sure they are all
stored on the main wiki instead. Please read carefully what is
explained in 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/LDAPAuthenticationUseCases#HI27minamultiwikienvironmentandIwantmyLDAPuserstoregisteronlyonthemainwiki.

>
> Btw, forgot to mention, maybe it's important. When a user authenticates in
> the subwiki first, his way in navigation is built not from the main wiki -
> see the screenshot
> <http://xwiki.475771.n2.nabble.com/file/n7596411/XWiki_root_issue.png>
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Authentication-problem-when-a-LDAP-User-first-logs-in-to-the-subwiki-tp7596293p7596411.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Job's and queues

2015-10-12 Thread Thomas Mortagne
It depends what is your need exactly. If it's mostly about
asynchronously execute a task as soon as possible then you can look at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Job+Module. I
guess that's the one you are referring to when you talk about "job
Executor description", what is missing for your need in this module ?

If your need is scheduling then it would be probably more for
http://extensions.xwiki.org/xwiki/bin/view/Extension/Scheduler+Application.

On Sat, Oct 10, 2015 at 2:49 PM, Peter Huisman  wrote:
> Hi guys,
>
> I am looking for an example on how to create / use a queue for my custom jobs 
> and how to add jobs in the queue (preferably an example in Java). I can’t 
> find an example I can use - except for the job Executor description in the 
> Extensions area. Can anyone supply me with an example?
>
> With kind regards,
>
> Peter
>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Authentication problem when a LDAP User first logs in to the subwiki

2015-10-12 Thread Thomas Mortagne
On Mon, Oct 12, 2015 at 4:19 PM, AlexIv  wrote:
> thank you, everything works correctly
>
> Due to the instruction, one of the following ways should be used:
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/LDAPAuthenticationUseCases#HI27minamultiwikienvironmentandIwantmyLDAPuserstoregisteronlyonthemainwiki
>
> But in fact it requires all three conditions
> The version 7.2, though, needs only two first conditions, as LDAP Extensions
> isn't now installed by default.

Actually the first bullet point was added recently I think and does
not make much sense, I did not noticed it when I gave you the link. I
just removed it and what need to be done is only one of the 2 ways
left depending on your use case.

>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Authentication-problem-when-a-LDAP-User-first-logs-in-to-the-subwiki-tp7596293p7596448.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] ScriptService issue --- Cannot access @Named ScriptService object through $services object

2015-10-14 Thread Thomas Mortagne
On Wed, Oct 14, 2015 at 9:11 AM, vinc...@massol.net  wrote:
>
>
> On 14 Oct 2015 at 09:00:15, vinc...@massol.net 
> (vinc...@massol.net(mailto:vinc...@massol.net)) wrote:
>
>>
>>
>> On 14 Oct 2015 at 06:43:36, Marius Dumitru Florea 
>> (mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) 
>> wrote:
>>
>> > Hi Debajit,
>> >
>> > On Oct 14, 2015 01:17, "Debajit Adhikary" wrote:
>> > >
>> > > I created an XWiki component which is available as a jar file.
>> > >
>> > > I have a ScriptService class for the component too:
>> > >
>> > > 
>> > >
>> > > @Role
>> > > public interface SearchClient
>> > > {
>> > > String search();
>> > > }
>> > >
>> > > 
>> > >
>> > > @Component
>> > > @Singleton
>> > > public class InternalSearchClient implements SearchClient
>> > > {
>> > > public String search()
>> > > {
>> > > return "test search results";
>> > > }
>> > > }
>> > >
>> > > 
>> > >
>> > > @Component
>> > > @Named("internalSearch")
>> > > @Singleton
>> > > public class InternalSearchScriptService implements ScriptService
>> > > {
>> >
>> > > @Inject
>> > > private InternalSearchClient searchClient;
>> >
>> > You need to "inject" the role (interface), not directly the implementation.
>> > That's why you use the Component Manager. Othewise you could have simply
>> > used the "new" operator to instantiate yourself the component.
>>
>> Good catch, didn’t see it when I replied yesterday! :)
>>
>> I guess we could catch this in the AnnotationComponentLoader and report an 
>> error.
>
> Actually, the Component Manager should raise an error if it fails to inject a 
> field. I was sure it was doing that, strange. I’ll debug it.

It does.

>
> Thanks
> -Vincent
>
>> Thanks
>> -Vincent
>>
>> > Hope this helps,
>> > Marius
>> >
>> > >
>> > > public String search()
>> > > {
>> > > return this.searchClient.search();
>> > > }
>> > > }
>> > >
>> > > 
>> > >
>> > > I've added all the above files into their own jar with a components.txt
>> > > file:
>> > >
>> > > com.mycompany.wiki.search.InternalSearchClient
>> > > com.mycompany.wiki.search.InternalSearchScriptService
>> > >
>> > > and in my Wiki's pom.xml, I have the following:
>> > >
>> > >
>> > > org.xwiki.commons
>> > > xwiki-commons-script
>> > > ${commons.version}
>> > >
>> > >
>> > >
>> > > Now from my Wiki page, when I do the following:
>> > >
>> > > {{groovy}}
>> > > println(services.internalSearch.search())
>> > > {{/groovy}}
>> > >
>> > > I get an error message saying "java.lang.NullPointerException: Cannot
>> > > invoke method search() on null object"
>> > >
>> > > What am I doing wrong here?
>> > >
>> > > (I followed the directions in
>> > > http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents — 
>> > > have
>> > > these directions changed, and/or is there anything else I need to do? )
>>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] ScriptService issue --- Cannot access @Named ScriptService object through $services object

2015-10-15 Thread Thomas Mortagne
On Thu, Oct 15, 2015 at 1:19 AM, Debajit Adhikary  wrote:
> Thanks for the suggestion, that worked.
>
> Changing the @Inject to use the @Role (interface) instead of the @Component
> (the concrete class) fixed the issue :) Thanks for your help :)
>
> Out of curiosity, how does the Component manager know which concrete
> implementation to pick? Since I have only one component, does it
> automatically use that for the @Inject?

Basically yes. When you have several components implementing the same
role you are supposed to indicate a hint using @Named annotation (both
in the with the @Component and the @Inject).

>
>
>
> On Wed, Oct 14, 2015 at 2:02 AM, Thomas Mortagne 
> wrote:
>
>> On Wed, Oct 14, 2015 at 9:11 AM, vinc...@massol.net 
>> wrote:
>> >
>> >
>> > On 14 Oct 2015 at 09:00:15, vinc...@massol.net (vinc...@massol.net
>> (mailto:vinc...@massol.net)) wrote:
>> >
>> >>
>> >>
>> >> On 14 Oct 2015 at 06:43:36, Marius Dumitru Florea (
>> mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com))
>> wrote:
>> >>
>> >> > Hi Debajit,
>> >> >
>> >> > On Oct 14, 2015 01:17, "Debajit Adhikary" wrote:
>> >> > >
>> >> > > I created an XWiki component which is available as a jar file.
>> >> > >
>> >> > > I have a ScriptService class for the component too:
>> >> > >
>> >> > > 
>> >> > >
>> >> > > @Role
>> >> > > public interface SearchClient
>> >> > > {
>> >> > > String search();
>> >> > > }
>> >> > >
>> >> > > 
>> >> > >
>> >> > > @Component
>> >> > > @Singleton
>> >> > > public class InternalSearchClient implements SearchClient
>> >> > > {
>> >> > > public String search()
>> >> > > {
>> >> > > return "test search results";
>> >> > > }
>> >> > > }
>> >> > >
>> >> > > 
>> >> > >
>> >> > > @Component
>> >> > > @Named("internalSearch")
>> >> > > @Singleton
>> >> > > public class InternalSearchScriptService implements ScriptService
>> >> > > {
>> >> >
>> >> > > @Inject
>> >> > > private InternalSearchClient searchClient;
>> >> >
>> >> > You need to "inject" the role (interface), not directly the
>> implementation.
>> >> > That's why you use the Component Manager. Othewise you could have
>> simply
>> >> > used the "new" operator to instantiate yourself the component.
>> >>
>> >> Good catch, didn’t see it when I replied yesterday! :)
>> >>
>> >> I guess we could catch this in the AnnotationComponentLoader and report
>> an error.
>> >
>> > Actually, the Component Manager should raise an error if it fails to
>> inject a field. I was sure it was doing that, strange. I’ll debug it.
>>
>> It does.
>>
>> >
>> > Thanks
>> > -Vincent
>> >
>> >> Thanks
>> >> -Vincent
>> >>
>> >> > Hope this helps,
>> >> > Marius
>> >> >
>> >> > >
>> >> > > public String search()
>> >> > > {
>> >> > > return this.searchClient.search();
>> >> > > }
>> >> > > }
>> >> > >
>> >> > > 
>> >> > >
>> >> > > I've added all the above files into their own jar with a
>> components.txt
>> >> > > file:
>> >> > >
>> >> > > com.mycompany.wiki.search.InternalSearchClient
>> >> > > com.mycompany.wiki.search.InternalSearchScriptService
>> >> > >
>> >> > > and in my Wiki's pom.xml, I have the following:
>> >> > >
>> >> > >
>> >> > > org.xwiki.commons
>> >> > > xwiki-commons-script
>> >> > > ${commons.version}
>> >> > >
>> >> > >
>> >> > >
>> >> > > Now from my Wiki page, when I do the following:
>> >> > >
>> >> > > {{groovy}}
>> >> > > println(services.internalSearch.search())
>> >> > > {{/groovy}}
>> >> > >
>> >> > > I get an error message saying "java.lang.NullPointerException:
>> Cannot
>> >> > > invoke method search() on null object"
>> >> > >
>> >> > > What am I doing wrong here?
>> >> > >
>> >> > > (I followed the directions in
>> >> > > http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents
>> — have
>> >> > > these directions changed, and/or is there anything else I need to
>> do? )
>> >>
>> >
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Parent-Children Livetable macro 1.2 - Error

2015-10-15 Thread Thomas Mortagne
This looks like a bug, would be great if you could report it on
http://jira.xwiki.org with detail on how to reproduce it on a standard
instance.

On Wed, Oct 14, 2015 at 6:26 PM, ICLED
 wrote:
> I have XWIKI 7.1.2 on UBUNTU 14.04.3 LTS, Tomcat7 and MySQL from Ubuntu
> Distribution.
> XWIKI WAR Install.
>
> I am using a subwiki.
>
> The following line
>
> {{parentschildrenlivetable space="An existing Space"/}}
>
> Result in this message in catalina.out
>
> 2015-10-14 18:04:35,664
> [http://wiki/xwiki/wiki/icwiki/edit/XWiki/SpaceParentsChildrenService?language=en&editor=inline]
> ERROR o.x.v.i.DefaultVelocityEngine  - Left side ($returnedItems) of '<'
> operation has null value at 37:icwiki:XWiki.SpaceParentsChildrenService[line
> 250, column 37]
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Parent-Children-Livetable-macro-1-2-Error-tp7596477.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Parent-Children Livetable macro 1.2 - Error

2015-10-15 Thread Thomas Mortagne
Indeed I did not check jira before suggesting to create an issue. You
can always leave a comment on
http://extensions.xwiki.org/xwiki/bin/view/Extension/Parent-Children+Livetable+macro.

On Thu, Oct 15, 2015 at 9:53 AM, Marius Dumitru Florea
 wrote:
> On Thu, Oct 15, 2015 at 10:33 AM, Thomas Mortagne > wrote:
>
>> This looks like a bug, would be great if you could report it on
>> http://jira.xwiki.org with detail on how to reproduce it on a standard
>> instance.
>>
>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Parent-Children+Livetable+macro
> doesn't have a JIRA project and it's not supported by the XWiki Development
> Team. I'm listed as a developer but I didn't worked directly on this
> extension. I think I just gave some advices to Raluca/Mircea. The error
> suggests that $returnedItems is null which is not expected by the code. But
> I'm not familiar with the code.
>
>
>>
>> On Wed, Oct 14, 2015 at 6:26 PM, ICLED
>>  wrote:
>> > I have XWIKI 7.1.2 on UBUNTU 14.04.3 LTS, Tomcat7 and MySQL from Ubuntu
>> > Distribution.
>> > XWIKI WAR Install.
>> >
>> > I am using a subwiki.
>> >
>> > The following line
>> >
>> > {{parentschildrenlivetable space="An existing Space"/}}
>> >
>> > Result in this message in catalina.out
>> >
>> > 2015-10-14 18:04:35,664
>> > [
>> http://wiki/xwiki/wiki/icwiki/edit/XWiki/SpaceParentsChildrenService?language=en&editor=inline
>> ]
>> > ERROR o.x.v.i.DefaultVelocityEngine  - Left side ($returnedItems) of '<'
>> > operation has null value at
>> 37:icwiki:XWiki.SpaceParentsChildrenService[line
>> > 250, column 37]
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://xwiki.475771.n2.nabble.com/Parent-Children-Livetable-macro-1-2-Error-tp7596477.html
>> > Sent from the XWiki- Users mailing list archive at Nabble.com.
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Ldap Group config question

2015-10-16 Thread Thomas Mortagne
On Thu, Oct 15, 2015 at 1:12 PM, Gary Lloyd
 wrote:
> Hi,
>
> Im brand new to XWiki and am slowly working my way through things. Im using
> ver 7.2 enterprise.
>
> I have managed to configure ldap for active directory so that I can get a
> single user to login, but how do I get XWiki to recognise a user group?
> Ive seen various things online but nothing seems to work for me. Its
> probably a simple configuration issue but im missing it.

Something that usually help is to enable debug log which give you
detailed step by step of what is happening during authentication (what
goups have been found in the configuration, what member could be found
for each group, etc.)

See 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HEnableLDAPdebuglog

>
> Im using the ldap admin extension, so am not directly altering the xwiki.cfg
>
> Any help is greatly appreciated. Im so close!!
>
> /Gary./
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [ANN] XWiki 7.3 Milestone 2 released

2015-10-29 Thread Thomas Mortagne
The XWiki development team is proud to announce the availability of
XWiki 7.3 Milestone 2.
This is the first of the 2 stabilization releases that happen at the
end of each yearly Cycles. Lots of polishing has been done, especially
for the recently introduced Nested Pages feature and its consequences
on the UI redesign (modified menus for example). Some extensions
started exploit nested spaces to bring some improvements.


You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download

Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki73M2

The following people have contributed code to this release:

Clemens Robbenhaar
Eduard Moraru
Guillaume Delhumeau
Marius Dumitru Florea
Sergiu Dumitriu
Thomas Mortagne
Vincent Massol

Thanks for your support
-The XWiki dev team

-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to remove obsolete Application from Administrator Panal?

2015-10-30 Thread Thomas Mortagne
It depends how it got there. If it's been installed as extension
(alone or as dependency of XWiki Enterprise) you just need to go to
"installed extension" and search for wiki manager application/plugin.

On Fri, Oct 30, 2015 at 11:34 AM, kirbyzhou  wrote:
> How to remove obsolete Application from Administrator Panel?
>
> The "Wikis" application is obsolete, but I donot know how to remove it.
>
>
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/How-to-remove-obsolete-Application-from-Administrator-Panal-tp7596673.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to assign subdomains to each subwiki?

2015-11-03 Thread Thomas Mortagne
On Tue, Nov 3, 2015 at 10:13 AM, Clemens Klein-Robbenhaar
 wrote:
>
>> I'd like to assign subdomains to each subwiki:
>> docs.my-xwiki.net, boards.my-xwiki.net, work.my-xwiki.net etc.
>> Is it possible?
>>
>
> Definitely yes:
>
>   
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Virtualization#HHostnamebasedsubwikis
>
> note that you additionally need to configure the DNS for all the subwikis to 
> the server running XWiki;
> this is not what XWiki can do for you.

On the DNS side you have wildcards to assign *.my-xwiki.net to one IP
so that you don't have to worry about that anymore when you create new
wikis.

>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to assign subdomains to each subwiki?

2015-11-03 Thread Thomas Mortagne
Well an application is always part of a wiki but one possibility is to
put a redirect in the wiki main page to the application main page.

On Tue, Nov 3, 2015 at 1:40 PM, AlexIv  wrote:
> ok, thank you!
>
> And can I do the same for applications, not for subwiki only?
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/How-to-assign-subdomains-to-each-subwiki-tp7596696p7596709.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Admin password after installing

2015-11-03 Thread Thomas Mortagne
Default user is:
* login: Admin
* password: admin

See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationStandalone
(at the end) for more details.

On Tue, Nov 3, 2015 at 3:16 PM, Anton Hughes  wrote:
> Hi
>
> I am trying out Xwiki and would like to know how to login after installing.
>
> Is there an admin user already created when installing? If yes, what is the
> password?
> If not, how do I create an admin user?
>
> Thanks
>
> --
> Anton Hughes
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] tagcloud macro not displaying tags from nested pages

2015-11-04 Thread Thomas Mortagne
Yes I agree it would make more sense, the issue right now if that you
loose the context when you click on the tag but the context (the
space) should be passed in the link probably. Would be great if you
create create another jira issue for it.

On Wed, Nov 4, 2015 at 12:42 PM, Miroslav Galajda
 wrote:
> Hi,
>
> I can see that it has been fixed, and I've tested it and it works as
> expected.
> What is not expected (at least from my point of view) is that when clicking
> on a tag, it displays all documents tagged with that tag but from the whole
> wiki, instead of the documents only within that space.
> I think this should be expected behavior from the user point of view. What
> do you think?
>
> Mirec
>
>
> On 3 November 2015 at 11:51, Miroslav Galajda 
> wrote:
>
>> Hi,
>>
>> I've just created the one here: http://jira.xwiki.org/browse/XWIKI-12764
>>
>> Mirec
>>
>> On 3 November 2015 at 10:50, Marius Dumitru Florea <
>> mariusdumitru.flo...@xwiki.com> wrote:
>>
>>> On Tue, Nov 3, 2015 at 11:30 AM, Miroslav Galajda <
>>> miroslav.gala...@gmail.com> wrote:
>>>
>>> > Hi,
>>> >
>>> > I'm currently running on 7.3 Milestone 2.
>>> >
>>> > I've created some hierarchy of nested pages.
>>> >
>>> > And at the "node" levels (aka spaces) I have used "dashboard" template
>>> and
>>> > on the lists I have normal page with content and tags.
>>> >
>>> > The dashboard template shows correctly document hierarchy from that
>>> level
>>> > but tags cloud isn't showing anything.
>>> >
>>> >
>>>
>>> > It seems it doesn't respect the new concept of nested pages.
>>> >
>>>
>>> Yes, only the tags from the terminal pages found in the specified space
>>> are
>>> taken into account. The code should look at the nested spaces too. Can you
>>> report an issue on jira.xwiki.org ?
>>>
>>> Thanks,
>>> Marius
>>>
>>>
>>> >
>>> >
>>> > Best regards,
>>> > Mirec
>>> > ___
>>> > users mailing list
>>> > users@xwiki.org
>>> > http://lists.xwiki.org/mailman/listinfo/users
>>> >
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>>
>>
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to assign subdomains to each subwiki?

2015-11-06 Thread Thomas Mortagne
You should look at http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs.

On Fri, Nov 6, 2015 at 3:03 PM, AlexIv  wrote:
> thank,
>
> and can i make the path to Application more brief, like
> https://my-wiki.com/Workday/ instead of
> https://my-wiki.com/bin/view/Workday/
> ?
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/How-to-assign-subdomains-to-each-subwiki-tp7596696p7596735.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Rest - get objects

2015-11-07 Thread Thomas Mortagne
Object are always located in a document and you are trying to access
them in a ("Brokers") space. You just need to ad the pages part of the
URL.

See 
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HObjectresources

On Sat, Nov 7, 2015 at 2:44 AM, Anton Hughes  wrote:
> Hello
>
> I'm wondering, am I doing something wrong here?
> When I call
> http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Brokers/objects?media=json
> I get an error:
> Error 500 - Malformed URL: the spaces section is invalid.
>
> But,
> http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Brokers/attachments?media=json
> works fine.
>
> Is there something additional I need to do to work retrieve objects?
>
> Thanks
>
> --
> Anton Hughes
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Question on Jobs and context

2015-11-13 Thread Thomas Mortagne
Right now there is no standard for it. Usually jobs that need to run
in a specific wiki or with specific user for example are provided with
this wiki/user as a job request parameter.

On Fri, Nov 13, 2015 at 2:51 PM, Peter Huisman  wrote:
> Hi,
>
> Im getting my head around job building. One question I have: If I start a 
> job, the context of the job is not the context I need. The script I run is in 
> a subWiki but the context of the job is in the main Wiki. What is the best 
> way to change the context in the job to match the wiki that I am using to 
> start the job?
>
> With kind regards,
>
> Peter
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Question on Jobs and context

2015-11-14 Thread Thomas Mortagne
You can change the context with in the XWikiContext. See
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents#HTheXWikicontext
for how to access it from a component.

On Sat, Nov 14, 2015 at 12:04 PM, Peter Huisman  wrote:
> Hi Thomas,
>
> Thanks for that. Maybe a very silly question but how do I get a job to run in 
> a specific Wiki?
>
> Br,
>
> Peter
>
> Van: Thomas Mortagne  <mailto:thomas.morta...@xwiki.com>>
> Onderwerp: Antw.: [xwiki-users] Question on Jobs and context
> Datum: 13 november 2015 14:52:51 CET
> Aan: XWiki Users mailto:users@xwiki.org>>
> Antwoord aan: XWiki Users mailto:users@xwiki.org>>
>
>
> Right now there is no standard for it. Usually jobs that need to run
> in a specific wiki or with specific user for example are provided with
> this wiki/user as a job request parameter.
>
> On Fri, Nov 13, 2015 at 2:51 PM, Peter Huisman  <mailto:p.huis...@ximm.nl>> wrote:
>> Hi,
>>
>> Im getting my head around job building. One question I have: If I start a 
>> job, the context of the job is not the context I need. The script I run is 
>> in a subWiki but the context of the job is in the main Wiki. What is the 
>> best way to change the context in the job to match the wiki that I am using 
>> to start the job?
>>
>> With kind regards,
>>
>> Peter
>> ___
>> users mailing list
>> users@xwiki.org <mailto:users@xwiki.org>
>> http://lists.xwiki.org/mailman/listinfo/users 
>> <http://lists.xwiki.org/mailman/listinfo/users>
>
>
>
> --
> Thomas Mortagne
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Question on Jobs and context (Peter Huisman)

2015-11-16 Thread Thomas Mortagne
You should never use the same ExecutionContext or XWikiContext in
different threads since they are really not designed for this and you
will have weird random issue at best.

You can find a example of a component getting the current XWikiContext
and setting the current wiki id on
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-mail/xwiki-platform-mail-send/xwiki-platform-mail-send-storage/src/main/java/org/xwiki/mail/internal/DatabaseMailStatusStore.java#L73.

On Mon, Nov 16, 2015 at 1:45 PM, Peter Huisman  wrote:
> Hi Thomas,
>
> I figured something like this. I have however been trying to pass various 
> parameters to the request but this has not resulted in any succes: Passing 
> the entire context (either ExecutionContext or XWikiContext) did’t work and 
> neither did setting the WikiId or the database. Can you help me on this with 
> an example on what (and how) to set?
>
> Br,
>
> Peter
>
> Van: Thomas Mortagne  <mailto:thomas.morta...@xwiki.com>>
> Onderwerp: Antw.: [xwiki-users] Question on Jobs and context
> Datum: 14 november 2015 14:13:17 CET
> Aan: XWiki Users mailto:users@xwiki.org>>
> Antwoord aan: XWiki Users mailto:users@xwiki.org>>
>
>
> You can change the context with in the XWikiContext. See
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents#HTheXWikicontext
>  
> <http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents#HTheXWikicontext>
> for how to access it from a component.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Type in the code

2015-11-18 Thread Thomas Mortagne
Seriously... (and it's not like it was not used when I introduced it). Good
thing it's deprecated :)

On Wed, Nov 18, 2015 at 5:31 PM, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> It's a typo indeed
>
> https://github.com/xwiki/xwiki-commons/blob/master/xwiki-commons-core/xwiki-commons-job/src/main/java/org/xwiki/job/event/status/JobProgressManager.java#L58
> .
>
> Thanks,
> Marius
>
> On Wed, Nov 18, 2015 at 3:31 PM, Peter Huisman  wrote:
>
> > I guess there is a type in the code: in  org
> >
> .xwiki
> >
> .job
> >
> .internal
> >
> .AbstractJob
> >
>  >  ki.job.internal(AbstractJob.class%E2%98%83AbstractJob>.progressManager ,
> > the stepPropress (with a P) is defined where it should be stepProgress -
> or
> > is there a reason for this?
> >
> > Br,
> >
> > P
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] new wiki request

2015-11-19 Thread Thomas Mortagne
There is two Mark Bickford used on myxwiki.org, which one is the right one
and do you want me to delete the other ?

http://www.myxwiki.org/xwiki/bin/view/XWiki/MarkBickford
http://www.myxwiki.org/xwiki/bin/view/XWiki/Mark_Bickford

On Tue, Nov 17, 2015 at 11:20 PM, Mark Bickford  wrote:

> description: personal research project
> owner name: Mark Bickford
> wiki name: mbickford.mywiki.org
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


  1   2   3   4   5   6   7   8   9   10   >