Re: [xwiki-users] selfbus.myxwiki.org slow or down?

2013-03-29 Thread Marius Dumitru Florea
Hi Stefan,

We're having some problems with myxwiki.org after the recent upgrade
to XWiki 4.5.3. We hope to fix this ASAP.

Sorry for the inconvenience,
Marius

On Thu, Mar 28, 2013 at 10:24 PM, Stefan Taferner
stefan.tafer...@gmx.at wrote:
 Hello!

 Is it only me or is selfbus.myxwiki.org very slow or down?
 Maybe the tomcat needs a restart, like some weeks ago :-)

 Thanks in advance,
 Stefan

 ___
 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] SSO/SAML: issue with example provided on Github

2013-03-29 Thread Ludovic Dubost
Hi Nicolas,

If I remember correctly I wrote this authenticator and I think it requires
some code in XWiki pages to manage the redirects but I don't think I have
this code anymore.
Plus it was for one custom SAML server and has not been tested with
multiple ones.

In any case it's a good basis for starting a SAML authenticator.
If you are coding against a more widespread SAML server, do contribute your
code :)
You can takeover the module fully as no backwards compatibility is needed.

Ludovic


2013/3/27 Nicolas Sanitas nicolas.sani...@intech.lu

 Thank you Tomas, I'll try the new POM ASAP (I already updated the version
 of opensaml to 2.4.1in my POM).

 No the JAR was not built, but it was the only message I could see :-(

 I keep you informed.
 Have a good day.

 2013/3/27 Thomas Mortagne thomas.morta...@xwiki.com

  Looks like the version of opensaml used by this module is not in a
  very good state wherever it's stored, I changed it for the last one
  (2.5.1-1) and it seems better now.


  On Wed, Mar 27, 2013 at 7:49 AM, Thomas Mortagne
  thomas.morta...@xwiki.com wrote:
   On Tue, Mar 26, 2013 at 11:54 PM, Nicolas Sanitas
   nicolas.sani...@intech.lu wrote:
   Hello everybody,
  
   I would like to authenticate users via a SAML server.
  
   I red this page
   http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication. I
  would
   like to try the example project provided on Github:
  
 
 https://github.com/xwiki-contrib/sandbox/tree/master/authenticators/xwiki-authentication-saml(rather
   'old').
  
   When I want to build the project, I've got this error:
   [WARNING] The POM for jfree:jfreechart:jar:1.0.0-rc1-xwiki is missing,
  no
   dependency information available
  
   This is not an error and is expected in this version AFAIK. Was the
   JAR file built ? If not then it does not have anything to do with this
   warning, must be something else.
  
  
   I precise that I tried using Maven and Nexus XWiki repos.
  
   Could you help me, please?
   Thanks by advance,
  
   Nicolas
   ___
   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
 



 --

 *Nicolas SANITAS*
 InTech S.A.
 17-19 avenue de la Libération
 L-3850 Schifflange - LUXEMBOURG



 Tél : +352 53 11 53
 Fax : +352 53 15 93
 nicolas.sani...@intech.lu


 MeetMe: Doodle http://doodle.com/nsanitas

 Les informations contenues dans cet email peuvent être confidentielles
 ou protégées par des lois en vigueur. Elles sont à l'attention des
 destinataires uniquement. Les données nominatives éventuelles ne
 peuvent être communiquées à des tiers par le récepteur de cet email.



 Si vous n'êtes pas le destinataire principal, ni un des destinataires
 placés en copie, la divulgation, la copie, la diffusion ou toute autre
 utilisation de cet email est prohibée et peut être illégale. Dans ce
 cas, merci d'avertir l'émetteur immédiatement et de détruire cet
 email.



 Please consider the environment before printing this email.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
Ludovic Dubost
Founder and CEO
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Jeremie BOUSQUET
Hello,

Me again ... :-)
With fixed version of packager plugin, things go better now. XWiki is
downloaded and launched, my test browses to the page as I expect.

Problem is that when browsing to my page, I can see the following in the
html content logged by the build:

div id=xwikicontent
div class=xwikirenderingerror style=cursor: pointer; title=Read
technical information related to this errorUnknown macro: velocity[...]

In fact, it seems wiki is running, but can't find any macro ... I tried to
add a dependency on xwiki-enterprise-ui-all xar, but with same result. I'm
not sure of what could be missing ?

BR,
Jeremie


2013/3/28 Jeremie BOUSQUET jeremie.bousq...@gmail.com

 Thanks !

 Jeremie


 2013/3/28 Thomas Mortagne thomas.morta...@xwiki.com

 On Thu, Mar 28, 2013 at 2:36 PM, Jeremie BOUSQUET
 jeremie.bousq...@gmail.com wrote:
  Hi,
 
  I proposed a pull request to fix XWIKI-8960:
  https://github.com/xwiki/xwiki-platform/pull/89
 
  Seems to work well, and I added an IT test to check it. I'm not sure of
 the
  naming though ...
  It's my first pull request so I hope I did things correctly :-)

 Looks good to me, applied it.

 
  Br,
  Jeremie
 
 
  2013/3/27 Marius Dumitru Florea mariusdumitru.flo...@xwiki.com
 
  On Tue, Mar 26, 2013 at 3:44 PM, Jeremie BOUSQUET
  jeremie.bousq...@gmail.com wrote:
   Hi again,
  
   On this topic I created a new JIRA:
   http://jira.xwiki.org/browse/XWIKI-8960
 
  Indeed, I can reproduce locally. It seems you are the first to use the
  packager plugin outside platform and we didn't took this use case into
  account. I'll try to fix the packager plugin asap.
 
  Thanks,
  Marius
 
  
   ... and proposed some sort of solution as a comment.
   If you agree with the problem and proposal, I could try to
 contribute a
   patch, as anyway I need it for the mailarchive tests.
   Of course if you want to fix it I don't disagree :-)
  
   BR,
   Jeremie
  
  
   2013/3/25 Jeremie BOUSQUET jeremie.bousq...@gmail.com
  
   I think the problem lies on this kind of expressions [1] ...
  
   The packager plugin defines version for all mandatory platform
 artifacts
   with this.getProject().getVersion(), meaning if I'm correct that
 it
   returns correct version only if project is part of xwiki platform -
 or
  if
   it shares the same version.
   Maybe it should use property platform.version instead ?
  
  
   BR,
   Jeremie
  
  
   [1]
  
 
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-tools/xwiki-platform-tool-packager-plugin/src/main/java/org/xwiki/tool/packager/PackageMojo.java#L565
  
  
   2013/3/25 Jeremie BOUSQUET jeremie.bousq...@gmail.com
  
   Note: it goes a bit further if I declare a bunch of xwiki platform
   dependencies in my pom, but breaks again, trying to look at those
  platform
   artifacts for version ${project.version} instead of
  ${platform.version} :
  
   [INFO] Copying JAR dependencies ...
   [WARNING] Missing POM for
   org.xwiki.platform:xwiki-platform-wysiwyg-server:jar:0.3-SNAPSHOT
   [WARNING] Missing POM for
  
 org.xwiki.platform:xwiki-platform-localization-script:jar:0.3-SNAPSHOT
   [WARNING] Missing POM for
   org.xwiki.platform:xwiki-platform-oldcore:jar:0.3-SNAPSHOT
   [...]
   [ERROR] Failed to execute goal
   org.xwiki.platform:xwiki-platform-tool-packager-plugi
   datory artifacts: Missing:
   [ERROR] --
   [ERROR] 1)
  
 org.xwiki.platform:xwiki-platform-localization-script:jar:0.3-SNAPSHOT
   [ERROR]
   [ERROR] Try downloading the file manually from the project website.
   [...]
   Caused by: org.apache.maven.plugin.MojoExecutionException: Failed
 to
   resolve mandatory artifacts
   at
  
 
 org.xwiki.tool.packager.PackageMojo.resolveTransitively(PackageMojo.java:614)
   at
  
 
 org.xwiki.tool.packager.PackageMojo.resolveJarArtifacts(PackageMojo.java:543)
   at
   org.xwiki.tool.packager.PackageMojo.execute(PackageMojo.java:209)
   at
  
 
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
   at
  
 
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
   ... 19 more
  
  
   2013/3/25 Jeremie BOUSQUET jeremie.bousq...@gmail.com
  
   Hummm, running through a strange issue during build:
  
   [ERROR] Failed to execute goal
  
 org.xwiki.platform:xwiki-platform-tool-packager-plugin:4.5.2:package
   (default) on project xwiki-contrib-mailarchive-test-tests: Failed
 to
   resolve art
   ifact
  
 
 [org.xwiki.platform:xwiki-platform-tool-jetty-resources:zip:0.3-SNAPSHOT:]:
   Failure to find
  
 
 org.xwiki.platform:xwiki-platform-tool-jetty-resources:zip:0.3-SNAPSHOT in
   http://
   nexus.xwiki.org/nexus/content/groups/public-snapshots was cached
 in
  the
   local repository, resolution will not be reattempted until the
 update
   interval of xwiki-snapshots has elapse
   d or updates are forced
  
   4.5.2 is ${platform.version}, 0.3-SNAPSHOT is ${project.version}.
 The
   

Re: [xwiki-users] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Thomas Mortagne
On Fri, Mar 29, 2013 at 11:03 AM, Jeremie BOUSQUET
jeremie.bousq...@gmail.com wrote:
 Hello,

 Me again ... :-)
 With fixed version of packager plugin, things go better now. XWiki is
 downloaded and launched, my test browses to the page as I expect.

 Problem is that when browsing to my page, I can see the following in the
 html content logged by the build:

 div id=xwikicontent
 div class=xwikirenderingerror style=cursor: pointer; title=Read
 technical information related to this errorUnknown macro: velocity[...]

 In fact, it seems wiki is running, but can't find any macro ... I tried to
 add a dependency on xwiki-enterprise-ui-all xar, but with same result. I'm
 not sure of what could be missing ?

Packager plugin job is not to create a XE, it just create the minimum
to have a running thing we could call XWiki. You need put indicate
what you are depending on and the packager will add them.

For example if your extension need the velocity macro you should say it, etc...


 BR,
 Jeremie


 2013/3/28 Jeremie BOUSQUET jeremie.bousq...@gmail.com

 Thanks !

 Jeremie


 2013/3/28 Thomas Mortagne thomas.morta...@xwiki.com

 On Thu, Mar 28, 2013 at 2:36 PM, Jeremie BOUSQUET
 jeremie.bousq...@gmail.com wrote:
  Hi,
 
  I proposed a pull request to fix XWIKI-8960:
  https://github.com/xwiki/xwiki-platform/pull/89
 
  Seems to work well, and I added an IT test to check it. I'm not sure of
 the
  naming though ...
  It's my first pull request so I hope I did things correctly :-)

 Looks good to me, applied it.

 
  Br,
  Jeremie
 
 
  2013/3/27 Marius Dumitru Florea mariusdumitru.flo...@xwiki.com
 
  On Tue, Mar 26, 2013 at 3:44 PM, Jeremie BOUSQUET
  jeremie.bousq...@gmail.com wrote:
   Hi again,
  
   On this topic I created a new JIRA:
   http://jira.xwiki.org/browse/XWIKI-8960
 
  Indeed, I can reproduce locally. It seems you are the first to use the
  packager plugin outside platform and we didn't took this use case into
  account. I'll try to fix the packager plugin asap.
 
  Thanks,
  Marius
 
  
   ... and proposed some sort of solution as a comment.
   If you agree with the problem and proposal, I could try to
 contribute a
   patch, as anyway I need it for the mailarchive tests.
   Of course if you want to fix it I don't disagree :-)
  
   BR,
   Jeremie
  
  
   2013/3/25 Jeremie BOUSQUET jeremie.bousq...@gmail.com
  
   I think the problem lies on this kind of expressions [1] ...
  
   The packager plugin defines version for all mandatory platform
 artifacts
   with this.getProject().getVersion(), meaning if I'm correct that
 it
   returns correct version only if project is part of xwiki platform -
 or
  if
   it shares the same version.
   Maybe it should use property platform.version instead ?
  
  
   BR,
   Jeremie
  
  
   [1]
  
 
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-tools/xwiki-platform-tool-packager-plugin/src/main/java/org/xwiki/tool/packager/PackageMojo.java#L565
  
  
   2013/3/25 Jeremie BOUSQUET jeremie.bousq...@gmail.com
  
   Note: it goes a bit further if I declare a bunch of xwiki platform
   dependencies in my pom, but breaks again, trying to look at those
  platform
   artifacts for version ${project.version} instead of
  ${platform.version} :
  
   [INFO] Copying JAR dependencies ...
   [WARNING] Missing POM for
   org.xwiki.platform:xwiki-platform-wysiwyg-server:jar:0.3-SNAPSHOT
   [WARNING] Missing POM for
  
 org.xwiki.platform:xwiki-platform-localization-script:jar:0.3-SNAPSHOT
   [WARNING] Missing POM for
   org.xwiki.platform:xwiki-platform-oldcore:jar:0.3-SNAPSHOT
   [...]
   [ERROR] Failed to execute goal
   org.xwiki.platform:xwiki-platform-tool-packager-plugi
   datory artifacts: Missing:
   [ERROR] --
   [ERROR] 1)
  
 org.xwiki.platform:xwiki-platform-localization-script:jar:0.3-SNAPSHOT
   [ERROR]
   [ERROR] Try downloading the file manually from the project website.
   [...]
   Caused by: org.apache.maven.plugin.MojoExecutionException: Failed
 to
   resolve mandatory artifacts
   at
  
 
 org.xwiki.tool.packager.PackageMojo.resolveTransitively(PackageMojo.java:614)
   at
  
 
 org.xwiki.tool.packager.PackageMojo.resolveJarArtifacts(PackageMojo.java:543)
   at
   org.xwiki.tool.packager.PackageMojo.execute(PackageMojo.java:209)
   at
  
 
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
   at
  
 
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
   ... 19 more
  
  
   2013/3/25 Jeremie BOUSQUET jeremie.bousq...@gmail.com
  
   Hummm, running through a strange issue during build:
  
   [ERROR] Failed to execute goal
  
 org.xwiki.platform:xwiki-platform-tool-packager-plugin:4.5.2:package
   (default) on project xwiki-contrib-mailarchive-test-tests: Failed
 to
   resolve art
   ifact
  
 
 [org.xwiki.platform:xwiki-platform-tool-jetty-resources:zip:0.3-SNAPSHOT:]:
   Failure to find
  
 
 

Re: [xwiki-users] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Vincent Massol

On Mar 29, 2013, at 11:03 AM, Jeremie BOUSQUET jeremie.bousq...@gmail.com 
wrote:

 Hello,
 
 Me again ... :-)
 With fixed version of packager plugin, things go better now. XWiki is
 downloaded and launched, my test browses to the page as I expect.
 
 Problem is that when browsing to my page, I can see the following in the
 html content logged by the build:
 
 div id=xwikicontent
 div class=xwikirenderingerror style=cursor: pointer; title=Read
 technical information related to this errorUnknown macro: velocity[...]
 
 In fact, it seems wiki is running, but can't find any macro ... I tried to
 add a dependency on xwiki-enterprise-ui-all xar, but with same result. I'm
 not sure of what could be missing ?

I think I've noticed a bug related to this. For ex in my contrib project I 
depend on org.xwiki.platform:xwiki-platform-administration-ui. I was surprised 
when running my func test that the admin screen was missing the velocity and 
include macros for example. The reason I think is because in 
xwiki-platform-administration-ui the deps on velocity and include macros are of 
scope runtime.

So IMO there's a bug in PackageMojo: it should draw transitive dependencies for 
the runtime scope.

I'll look into this.

However as Thomas said, you need to add the **direct** deps you need at runtime.

Thanks
-Vincent

[snip]
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Jeremie BOUSQUET
Thanks, I understand ... I added dependency on velocity macro, but of
course a whole bunch of dependencies are still missing.
I would have 2 feedbacks on that point:
- I understand your point, but when writing a contrib app xar, you target
it to work on a specific XE version, and not on a combination of
platform/commons/rendering artifacts. So it could be nice, from a
functional test POV, to be able to materialize this as a unique dependency,
and get everything transitively.
- Adding bits one by one is difficult, for example to find what jar is
needed to register a wiki macro, is not so obvious (BTW I couldn't find it,
I thought it was xwiki-application-wiki-macro-bridge.jar, but it's not
bundled with this name in XE war). Well, it's not that complex, but
requires some deeper knowledge of xwiki, deeper than what is needed to
merely write an extension.
- in the end, does it mean that to be fully complete, my extension xar
should depend on all these xwiki artifacts (and not merely on some needed
extensions) ? With the idea that my app could be installed even in an empty
wiki ? (well, given there's at least EM in it ...)

BR,
Jeremie



2013/3/29 Thomas Mortagne thomas.morta...@xwiki.com

 On Fri, Mar 29, 2013 at 11:03 AM, Jeremie BOUSQUET
 jeremie.bousq...@gmail.com wrote:
  Hello,
 
  Me again ... :-)
  With fixed version of packager plugin, things go better now. XWiki is
  downloaded and launched, my test browses to the page as I expect.
 
  Problem is that when browsing to my page, I can see the following in the
  html content logged by the build:
 
  div id=xwikicontent
  div class=xwikirenderingerror style=cursor: pointer; title=Read
  technical information related to this errorUnknown macro: velocity[...]
 
  In fact, it seems wiki is running, but can't find any macro ... I tried
 to
  add a dependency on xwiki-enterprise-ui-all xar, but with same result.
 I'm
  not sure of what could be missing ?

 Packager plugin job is not to create a XE, it just create the minimum
 to have a running thing we could call XWiki. You need put indicate
 what you are depending on and the packager will add them.

 For example if your extension need the velocity macro you should say it,
 etc...

 
  BR,
  Jeremie
 
 
  2013/3/28 Jeremie BOUSQUET jeremie.bousq...@gmail.com
 
  Thanks !
 
  Jeremie
 
 
  2013/3/28 Thomas Mortagne thomas.morta...@xwiki.com
 
  On Thu, Mar 28, 2013 at 2:36 PM, Jeremie BOUSQUET
  jeremie.bousq...@gmail.com wrote:
   Hi,
  
   I proposed a pull request to fix XWIKI-8960:
   https://github.com/xwiki/xwiki-platform/pull/89
  
   Seems to work well, and I added an IT test to check it. I'm not sure
 of
  the
   naming though ...
   It's my first pull request so I hope I did things correctly :-)
 
  Looks good to me, applied it.
 
  
   Br,
   Jeremie
  
  
   2013/3/27 Marius Dumitru Florea mariusdumitru.flo...@xwiki.com
  
   On Tue, Mar 26, 2013 at 3:44 PM, Jeremie BOUSQUET
   jeremie.bousq...@gmail.com wrote:
Hi again,
   
On this topic I created a new JIRA:
http://jira.xwiki.org/browse/XWIKI-8960
  
   Indeed, I can reproduce locally. It seems you are the first to use
 the
   packager plugin outside platform and we didn't took this use case
 into
   account. I'll try to fix the packager plugin asap.
  
   Thanks,
   Marius
  
   
... and proposed some sort of solution as a comment.
If you agree with the problem and proposal, I could try to
  contribute a
patch, as anyway I need it for the mailarchive tests.
Of course if you want to fix it I don't disagree :-)
   
BR,
Jeremie
   
   
2013/3/25 Jeremie BOUSQUET jeremie.bousq...@gmail.com
   
I think the problem lies on this kind of expressions [1] ...
   
The packager plugin defines version for all mandatory platform
  artifacts
with this.getProject().getVersion(), meaning if I'm correct
 that
  it
returns correct version only if project is part of xwiki
 platform -
  or
   if
it shares the same version.
Maybe it should use property platform.version instead ?
   
   
BR,
Jeremie
   
   
[1]
   
  
 
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-tools/xwiki-platform-tool-packager-plugin/src/main/java/org/xwiki/tool/packager/PackageMojo.java#L565
   
   
2013/3/25 Jeremie BOUSQUET jeremie.bousq...@gmail.com
   
Note: it goes a bit further if I declare a bunch of xwiki
 platform
dependencies in my pom, but breaks again, trying to look at
 those
   platform
artifacts for version ${project.version} instead of
   ${platform.version} :
   
[INFO] Copying JAR dependencies ...
[WARNING] Missing POM for
   
 org.xwiki.platform:xwiki-platform-wysiwyg-server:jar:0.3-SNAPSHOT
[WARNING] Missing POM for
   
  org.xwiki.platform:xwiki-platform-localization-script:jar:0.3-SNAPSHOT
[WARNING] Missing POM for
org.xwiki.platform:xwiki-platform-oldcore:jar:0.3-SNAPSHOT
[...]
[ERROR] Failed to execute goal

Re: [xwiki-users] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Thomas Mortagne
On Fri, Mar 29, 2013 at 12:31 PM, Jeremie BOUSQUET
jeremie.bousq...@gmail.com wrote:
 Thanks, I understand ... I added dependency on velocity macro, but of
 course a whole bunch of dependencies are still missing.
 I would have 2 feedbacks on that point:
 - I understand your point, but when writing a contrib app xar, you target
 it to work on a specific XE version, and not on a combination of
 platform/commons/rendering artifacts. So it could be nice, from a
 functional test POV, to be able to materialize this as a unique dependency,
 and get everything transitively.
 - Adding bits one by one is difficult, for example to find what jar is
 needed to register a wiki macro, is not so obvious (BTW I couldn't find it,
 I thought it was xwiki-application-wiki-macro-bridge.jar, but it's not
 bundled with this name in XE war). Well, it's not that complex, but
 requires some deeper knowledge of xwiki, deeper than what is needed to
 merely write an extension.
 - in the end, does it mean that to be fully complete, my extension xar
 should depend on all these xwiki artifacts (and not merely on some needed
 extensions) ? With the idea that my app could be installed even in an empty
 wiki ? (well, given there's at least EM in it ...)

Yes the general idea is to move to releasing a pretty much empty XWiki
with what's needed to make Extension Manager work and you transitively
get everything you need to make whatever extension you installed work.


 BR,
 Jeremie



 2013/3/29 Thomas Mortagne thomas.morta...@xwiki.com

 On Fri, Mar 29, 2013 at 11:03 AM, Jeremie BOUSQUET
 jeremie.bousq...@gmail.com wrote:
  Hello,
 
  Me again ... :-)
  With fixed version of packager plugin, things go better now. XWiki is
  downloaded and launched, my test browses to the page as I expect.
 
  Problem is that when browsing to my page, I can see the following in the
  html content logged by the build:
 
  div id=xwikicontent
  div class=xwikirenderingerror style=cursor: pointer; title=Read
  technical information related to this errorUnknown macro: velocity[...]
 
  In fact, it seems wiki is running, but can't find any macro ... I tried
 to
  add a dependency on xwiki-enterprise-ui-all xar, but with same result.
 I'm
  not sure of what could be missing ?

 Packager plugin job is not to create a XE, it just create the minimum
 to have a running thing we could call XWiki. You need put indicate
 what you are depending on and the packager will add them.

 For example if your extension need the velocity macro you should say it,
 etc...

 
  BR,
  Jeremie
 
 
  2013/3/28 Jeremie BOUSQUET jeremie.bousq...@gmail.com
 
  Thanks !
 
  Jeremie
 
 
  2013/3/28 Thomas Mortagne thomas.morta...@xwiki.com
 
  On Thu, Mar 28, 2013 at 2:36 PM, Jeremie BOUSQUET
  jeremie.bousq...@gmail.com wrote:
   Hi,
  
   I proposed a pull request to fix XWIKI-8960:
   https://github.com/xwiki/xwiki-platform/pull/89
  
   Seems to work well, and I added an IT test to check it. I'm not sure
 of
  the
   naming though ...
   It's my first pull request so I hope I did things correctly :-)
 
  Looks good to me, applied it.
 
  
   Br,
   Jeremie
  
  
   2013/3/27 Marius Dumitru Florea mariusdumitru.flo...@xwiki.com
  
   On Tue, Mar 26, 2013 at 3:44 PM, Jeremie BOUSQUET
   jeremie.bousq...@gmail.com wrote:
Hi again,
   
On this topic I created a new JIRA:
http://jira.xwiki.org/browse/XWIKI-8960
  
   Indeed, I can reproduce locally. It seems you are the first to use
 the
   packager plugin outside platform and we didn't took this use case
 into
   account. I'll try to fix the packager plugin asap.
  
   Thanks,
   Marius
  
   
... and proposed some sort of solution as a comment.
If you agree with the problem and proposal, I could try to
  contribute a
patch, as anyway I need it for the mailarchive tests.
Of course if you want to fix it I don't disagree :-)
   
BR,
Jeremie
   
   
2013/3/25 Jeremie BOUSQUET jeremie.bousq...@gmail.com
   
I think the problem lies on this kind of expressions [1] ...
   
The packager plugin defines version for all mandatory platform
  artifacts
with this.getProject().getVersion(), meaning if I'm correct
 that
  it
returns correct version only if project is part of xwiki
 platform -
  or
   if
it shares the same version.
Maybe it should use property platform.version instead ?
   
   
BR,
Jeremie
   
   
[1]
   
  
 
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-tools/xwiki-platform-tool-packager-plugin/src/main/java/org/xwiki/tool/packager/PackageMojo.java#L565
   
   
2013/3/25 Jeremie BOUSQUET jeremie.bousq...@gmail.com
   
Note: it goes a bit further if I declare a bunch of xwiki
 platform
dependencies in my pom, but breaks again, trying to look at
 those
   platform
artifacts for version ${project.version} instead of
   ${platform.version} :
   
[INFO] Copying JAR dependencies ...
[WARNING] Missing POM for
   
 

Re: [xwiki-users] SSO/SAML: issue with example provided on Github

2013-03-29 Thread Valdis Vītoliņš
Nicolas,
If you'd be able to rebuild this module that it at least compiles and
does something, I'd also be interested in trying it and contributing to
its development.

Valdis
 Hi Nicolas,
 
 If I remember correctly I wrote this authenticator and I think it requires
 some code in XWiki pages to manage the redirects but I don't think I have
 this code anymore.
 Plus it was for one custom SAML server and has not been tested with
 multiple ones.
 
 In any case it's a good basis for starting a SAML authenticator.
 If you are coding against a more widespread SAML server, do contribute your
 code :)
 You can takeover the module fully as no backwards compatibility is needed.
 
 Ludovic
...

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


Re: [xwiki-users] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Vincent Massol

On Mar 29, 2013, at 12:21 PM, Vincent Massol vinc...@massol.net wrote:

 
 On Mar 29, 2013, at 11:03 AM, Jeremie BOUSQUET jeremie.bousq...@gmail.com 
 wrote:
 
 Hello,
 
 Me again ... :-)
 With fixed version of packager plugin, things go better now. XWiki is
 downloaded and launched, my test browses to the page as I expect.
 
 Problem is that when browsing to my page, I can see the following in the
 html content logged by the build:
 
 div id=xwikicontent
 div class=xwikirenderingerror style=cursor: pointer; title=Read
 technical information related to this errorUnknown macro: velocity[...]
 
 In fact, it seems wiki is running, but can't find any macro ... I tried to
 add a dependency on xwiki-enterprise-ui-all xar, but with same result. I'm
 not sure of what could be missing ?
 
 I think I've noticed a bug related to this. For ex in my contrib project I 
 depend on org.xwiki.platform:xwiki-platform-administration-ui. I was 
 surprised when running my func test that the admin screen was missing the 
 velocity and include macros for example. The reason I think is because in 
 xwiki-platform-administration-ui the deps on velocity and include macros are 
 of scope runtime.
 
 So IMO there's a bug in PackageMojo: it should draw transitive dependencies 
 for the runtime scope.
 
 I'll look into this.

Fixed in http://jira.xwiki.org/jira/browse/XWIKI-8983

Thanks
-Vincent

 However as Thomas said, you need to add the **direct** deps you need at 
 runtime.
 
 Thanks
 -Vincent
 
 [snip]

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


Re: [xwiki-users] SSO/SAML: issue with example provided on Github

2013-03-29 Thread Kevin P. Foote


If that is really the case then sticking xwiki in a tomcat container and
fronting with apache / mod_shib and using http authenticator is by far the 
simplest way to get SAML auth to your Xwiki.. this would take about a 
day or two assuming you have a working SAML environment Identity Provider /

Federation wise.

re/writing a true SAML compliant authenticator is (im going to bet) far
more time consuming.. you have to deal with all the constraints and bit
level SAML which is where the brunt of the security comes from.. and the
registration and management of metadata.. etc.. etc..


--
thanks
 kevin.foote

On Fri, 29 Mar 2013, Valdis Vītoliņš wrote:


I agree in general,
but devil is in details.

If I have usual time constrained project, and have to ship something in,
say, two months; then I have to develop anything that works, not the
best solution. I have looked to some of these projects, though currently
integration with these requires too much learning project internalities
to be achievable in short-term project.
I'd like to help build something, that could be deployable by putting
some jar file and writing settings in xwiki.cfg, but I'm not experienced
enough and have no time to go in long and deep custom development.

Valdis 

Just a comment.. (I'm a list watcher 99.9% of the time)

XWIKI will work just fine with SAML products that engage at the
container level.. You just use a HTTP auth type authenticator which 
there are a few out there in the contributions area.


My advice would be to NOT write to the SAML protocol where this gets
really intricate.. but to just let the known to work SAML products do
their thing. Pulling the SAML bits into XWIKI does not buy you anything
intricate to the product and just adds much more room for error on the
authenticator.

People wanting to implement their own SAML stack inside 'web appX'
is a topic that always comes up on some of the lists I'm on and the 
SAML people always say there is really no reason to do this.. o


IMO leave the SAML bits to saml products** and use a http authenticator
that you like.

** Just to name a few:
  - http://simplesamlphp.org/ ,
  - http://shibboleth.net/ ,
  - https://github.com/guanxi/guanxi-sp-guard ,


--
thanks
  kevin.foote

On Fri, 29 Mar 2013, Valdis Vītoliņš wrote:

 Nicolas,
 If you'd be able to rebuild this module that it at least compiles and
 does something, I'd also be interested in trying it and contributing to
 its development.

 Valdis
 Hi Nicolas,

 If I remember correctly I wrote this authenticator and I think it requires
 some code in XWiki pages to manage the redirects but I don't think I have
 this code anymore.
 Plus it was for one custom SAML server and has not been tested with
 multiple ones.

 In any case it's a good basis for starting a SAML authenticator.
 If you are coding against a more widespread SAML server, do contribute your
 code :)
 You can takeover the module fully as no backwards compatibility is needed.

 Ludovic
 ...

 ___
 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


Re: [xwiki-users] SSO/SAML: issue with example provided on Github

2013-03-29 Thread Ludovic Dubost
Hi Kevin,

Good comment.  It's true that using the default XWiki authenticator and
relying on a Tomcat or Apache level authenticator is always an easier way
than full protocol implementation.
However we usually also want to have the XWiki user be created with data
coming from the authentication.

Have you seen this done ? Can you point out which SAML product that you
know off and that have a container level implementation and that you have
seen working with XWiki ?

Ludovic


2013/3/29 Kevin P. Foote kpfo...@iup.edu


 Just a comment.. (I'm a list watcher 99.9% of the time)

 XWIKI will work just fine with SAML products that engage at the
 container level.. You just use a HTTP auth type authenticator which there
 are a few out there in the contributions area.

 My advice would be to NOT write to the SAML protocol where this gets
 really intricate.. but to just let the known to work SAML products do
 their thing. Pulling the SAML bits into XWIKI does not buy you anything
 intricate to the product and just adds much more room for error on the
 authenticator.

 People wanting to implement their own SAML stack inside 'web appX'
 is a topic that always comes up on some of the lists I'm on and the SAML
 people always say there is really no reason to do this.. o

 IMO leave the SAML bits to saml products** and use a http authenticator
 that you like.

 ** Just to name a few:
  - http://simplesamlphp.org/ ,
  - http://shibboleth.net/ ,
  - 
 https://github.com/guanxi/**guanxi-sp-guardhttps://github.com/guanxi/guanxi-sp-guard,


 --
 thanks
  kevin.foote


 On Fri, 29 Mar 2013, Valdis Vītoliņš wrote:

  Nicolas,
 If you'd be able to rebuild this module that it at least compiles and
 does something, I'd also be interested in trying it and contributing to
 its development.

 Valdis

 Hi Nicolas,

 If I remember correctly I wrote this authenticator and I think it
 requires
 some code in XWiki pages to manage the redirects but I don't think I have
 this code anymore.
 Plus it was for one custom SAML server and has not been tested with
 multiple ones.

 In any case it's a good basis for starting a SAML authenticator.
 If you are coding against a more widespread SAML server, do contribute
 your
 code :)
 You can takeover the module fully as no backwards compatibility is
 needed.

 Ludovic

 ...

 __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users


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




-- 
Ludovic Dubost
Founder and CEO
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] SSO/SAML: issue with example provided on Github

2013-03-29 Thread Kevin P. Foote



On Fri, 29 Mar 2013, Ludovic Dubost wrote:


Good comment.  It's true that using the default XWiki authenticator and
relying on a Tomcat or Apache level authenticator is always an easier way
than full protocol implementation.
However we usually also want to have the XWiki user be created with data
coming from the authentication.


Yes.. I have this type of authN-Z / creation working..

I don't know where you all moved the contributions repository too.. But I
based my authenticator off one of those and it does do what you are
talking about.



Have you seen this done ? Can you point out which SAML product that you
know off and that have a container level implementation and that you have
seen working with XWiki ?


Yes.. I am most framiliar with shibboleth.net products and the SP is
coded to either IIS or Apache ... both of which can front xwiki without
problems.

--
thanks
 kevin.foote

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


Re: [xwiki-users] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Jeremie BOUSQUET
Thanks !
I'm progressing, but it seems I have a hard time finding what to declare to
get the info/warning/error macros ...

BR,
Jeremie



2013/3/29 Vincent Massol vinc...@massol.net


 On Mar 29, 2013, at 12:21 PM, Vincent Massol vinc...@massol.net wrote:

 
  On Mar 29, 2013, at 11:03 AM, Jeremie BOUSQUET 
 jeremie.bousq...@gmail.com wrote:
 
  Hello,
 
  Me again ... :-)
  With fixed version of packager plugin, things go better now. XWiki is
  downloaded and launched, my test browses to the page as I expect.
 
  Problem is that when browsing to my page, I can see the following in the
  html content logged by the build:
 
  div id=xwikicontent
  div class=xwikirenderingerror style=cursor: pointer; title=Read
  technical information related to this errorUnknown macro:
 velocity[...]
 
  In fact, it seems wiki is running, but can't find any macro ... I tried
 to
  add a dependency on xwiki-enterprise-ui-all xar, but with same result.
 I'm
  not sure of what could be missing ?
 
  I think I've noticed a bug related to this. For ex in my contrib project
 I depend on org.xwiki.platform:xwiki-platform-administration-ui. I was
 surprised when running my func test that the admin screen was missing the
 velocity and include macros for example. The reason I think is because in
 xwiki-platform-administration-ui the deps on velocity and include macros
 are of scope runtime.
 
  So IMO there's a bug in PackageMojo: it should draw transitive
 dependencies for the runtime scope.
 
  I'll look into this.

 Fixed in http://jira.xwiki.org/jira/browse/XWIKI-8983

 Thanks
 -Vincent

  However as Thomas said, you need to add the **direct** deps you need at
 runtime.
 
  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


Re: [xwiki-users] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Jeremie BOUSQUET
Ok found it in xwiki-rendering-macro-message.
That's nice, looking into it, just realized that there existed a
{{success}} macro ! Seems nice, is it intended that it's not described on
extensions wiki as info/warning/error are ?

Thanks,
Jeremie


2013/3/29 Jeremie BOUSQUET jeremie.bousq...@gmail.com

 Thanks !
 I'm progressing, but it seems I have a hard time finding what to declare
 to get the info/warning/error macros ...

 BR,
 Jeremie



 2013/3/29 Vincent Massol vinc...@massol.net


 On Mar 29, 2013, at 12:21 PM, Vincent Massol vinc...@massol.net wrote:

 
  On Mar 29, 2013, at 11:03 AM, Jeremie BOUSQUET 
 jeremie.bousq...@gmail.com wrote:
 
  Hello,
 
  Me again ... :-)
  With fixed version of packager plugin, things go better now. XWiki is
  downloaded and launched, my test browses to the page as I expect.
 
  Problem is that when browsing to my page, I can see the following in
 the
  html content logged by the build:
 
  div id=xwikicontent
  div class=xwikirenderingerror style=cursor: pointer; title=Read
  technical information related to this errorUnknown macro:
 velocity[...]
 
  In fact, it seems wiki is running, but can't find any macro ... I
 tried to
  add a dependency on xwiki-enterprise-ui-all xar, but with same result.
 I'm
  not sure of what could be missing ?
 
  I think I've noticed a bug related to this. For ex in my contrib
 project I depend on org.xwiki.platform:xwiki-platform-administration-ui. I
 was surprised when running my func test that the admin screen was missing
 the velocity and include macros for example. The reason I think is because
 in xwiki-platform-administration-ui the deps on velocity and include macros
 are of scope runtime.
 
  So IMO there's a bug in PackageMojo: it should draw transitive
 dependencies for the runtime scope.
 
  I'll look into this.

 Fixed in http://jira.xwiki.org/jira/browse/XWIKI-8983

 Thanks
 -Vincent

  However as Thomas said, you need to add the **direct** deps you need at
 runtime.
 
  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


Re: [xwiki-users] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Thomas Mortagne
On Fri, Mar 29, 2013 at 3:05 PM, Jeremie BOUSQUET
jeremie.bousq...@gmail.com wrote:
 Ok found it in xwiki-rendering-macro-message.
 That's nice, looking into it, just realized that there existed a
 {{success}} macro ! Seems nice, is it intended that it's not described on
 extensions wiki as info/warning/error are ?

Probably been forgotten by the dev who introduced it.


 Thanks,
 Jeremie


 2013/3/29 Jeremie BOUSQUET jeremie.bousq...@gmail.com

 Thanks !
 I'm progressing, but it seems I have a hard time finding what to declare
 to get the info/warning/error macros ...

 BR,
 Jeremie



 2013/3/29 Vincent Massol vinc...@massol.net


 On Mar 29, 2013, at 12:21 PM, Vincent Massol vinc...@massol.net wrote:

 
  On Mar 29, 2013, at 11:03 AM, Jeremie BOUSQUET 
 jeremie.bousq...@gmail.com wrote:
 
  Hello,
 
  Me again ... :-)
  With fixed version of packager plugin, things go better now. XWiki is
  downloaded and launched, my test browses to the page as I expect.
 
  Problem is that when browsing to my page, I can see the following in
 the
  html content logged by the build:
 
  div id=xwikicontent
  div class=xwikirenderingerror style=cursor: pointer; title=Read
  technical information related to this errorUnknown macro:
 velocity[...]
 
  In fact, it seems wiki is running, but can't find any macro ... I
 tried to
  add a dependency on xwiki-enterprise-ui-all xar, but with same result.
 I'm
  not sure of what could be missing ?
 
  I think I've noticed a bug related to this. For ex in my contrib
 project I depend on org.xwiki.platform:xwiki-platform-administration-ui. I
 was surprised when running my func test that the admin screen was missing
 the velocity and include macros for example. The reason I think is because
 in xwiki-platform-administration-ui the deps on velocity and include macros
 are of scope runtime.
 
  So IMO there's a bug in PackageMojo: it should draw transitive
 dependencies for the runtime scope.
 
  I'll look into this.

 Fixed in http://jira.xwiki.org/jira/browse/XWIKI-8983

 Thanks
 -Vincent

  However as Thomas said, you need to add the **direct** deps you need at
 runtime.
 
  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



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


Re: [xwiki-users] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Jeremie BOUSQUET
Mmmm, what could explain that standard login for Admin user does not work
in the xwiki created by the packager plugin ? (invalid credentials).
It used to work, maybe when I had dependency on xwiki-enterprise-ui-all ...
?

Br,
Jeremie


2013/3/29 Thomas Mortagne thomas.morta...@xwiki.com

 On Fri, Mar 29, 2013 at 3:05 PM, Jeremie BOUSQUET
 jeremie.bousq...@gmail.com wrote:
  Ok found it in xwiki-rendering-macro-message.
  That's nice, looking into it, just realized that there existed a
  {{success}} macro ! Seems nice, is it intended that it's not described on
  extensions wiki as info/warning/error are ?

 Probably been forgotten by the dev who introduced it.

 
  Thanks,
  Jeremie
 
 
  2013/3/29 Jeremie BOUSQUET jeremie.bousq...@gmail.com
 
  Thanks !
  I'm progressing, but it seems I have a hard time finding what to declare
  to get the info/warning/error macros ...
 
  BR,
  Jeremie
 
 
 
  2013/3/29 Vincent Massol vinc...@massol.net
 
 
  On Mar 29, 2013, at 12:21 PM, Vincent Massol vinc...@massol.net
 wrote:
 
  
   On Mar 29, 2013, at 11:03 AM, Jeremie BOUSQUET 
  jeremie.bousq...@gmail.com wrote:
  
   Hello,
  
   Me again ... :-)
   With fixed version of packager plugin, things go better now. XWiki
 is
   downloaded and launched, my test browses to the page as I expect.
  
   Problem is that when browsing to my page, I can see the following in
  the
   html content logged by the build:
  
   div id=xwikicontent
   div class=xwikirenderingerror style=cursor: pointer;
 title=Read
   technical information related to this errorUnknown macro:
  velocity[...]
  
   In fact, it seems wiki is running, but can't find any macro ... I
  tried to
   add a dependency on xwiki-enterprise-ui-all xar, but with same
 result.
  I'm
   not sure of what could be missing ?
  
   I think I've noticed a bug related to this. For ex in my contrib
  project I depend on
 org.xwiki.platform:xwiki-platform-administration-ui. I
  was surprised when running my func test that the admin screen was
 missing
  the velocity and include macros for example. The reason I think is
 because
  in xwiki-platform-administration-ui the deps on velocity and include
 macros
  are of scope runtime.
  
   So IMO there's a bug in PackageMojo: it should draw transitive
  dependencies for the runtime scope.
  
   I'll look into this.
 
  Fixed in http://jira.xwiki.org/jira/browse/XWIKI-8983
 
  Thanks
  -Vincent
 
   However as Thomas said, you need to add the **direct** deps you need
 at
  runtime.
  
   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



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


Re: [xwiki-users] SSO/SAML: issue with example provided on Github

2013-03-29 Thread Kevin P. Foote

On Fri, 29 Mar 2013, Kevin P. Foote wrote:


On Fri, 29 Mar 2013, Ludovic Dubost wrote:


Good comment.  It's true that using the default XWiki authenticator and
relying on a Tomcat or Apache level authenticator is always an easier way
than full protocol implementation.
However we usually also want to have the XWiki user be created with data
coming from the authentication.


Yes.. I have this type of authN-Z / creation working..

I don't know where you all moved the contributions repository too.. But I
based my authenticator off one of those and it does do what you are
talking about.


  github.com/kevinfoote/xwiki-authenticator-guanxi

((Haven't touched this in quite sime time)) so milage may very. This
uses incomming REMOTE_USER and values coming in from the Shib-SP


--
thanks
 kevin.foote
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] SSO/SAML: issue with example provided on Github

2013-03-29 Thread Ludovic Dubost
Right I had seen that one. If you want you can move it to:

https://github.com/xwiki-contrib/sandbox/tree/master/authenticators/

with the other authenticators.

Ludovic


2013/3/29 Kevin P. Foote kpfo...@iup.edu

 On Fri, 29 Mar 2013, Kevin P. Foote wrote:

  On Fri, 29 Mar 2013, Ludovic Dubost wrote:

  Good comment.  It's true that using the default XWiki authenticator and
 relying on a Tomcat or Apache level authenticator is always an easier way
 than full protocol implementation.
 However we usually also want to have the XWiki user be created with data
 coming from the authentication.


 Yes.. I have this type of authN-Z / creation working..

 I don't know where you all moved the contributions repository too.. But I
 based my authenticator off one of those and it does do what you are
 talking about.


   
 github.com/kevinfoote/xwiki-**authenticator-guanxihttp://github.com/kevinfoote/xwiki-authenticator-guanxi

 ((Haven't touched this in quite sime time)) so milage may very. This
 uses incomming REMOTE_USER and values coming in from the Shib-SP



 --
 thanks
  kevin.foote
 __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users




-- 
Ludovic Dubost
Founder and CEO
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Thomas Mortagne
On Fri, Mar 29, 2013 at 4:47 PM, Jeremie BOUSQUET
jeremie.bousq...@gmail.com wrote:
 Mmmm, what could explain that standard login for Admin user does not work
 in the xwiki created by the packager plugin ? (invalid credentials).
 It used to work, maybe when I had dependency on xwiki-enterprise-ui-all ...
 ?

It's not really standard XWiki login, the Admin user come from
adminitsrtion-ui, if you have that xar then you have the user.


 Br,
 Jeremie


 2013/3/29 Thomas Mortagne thomas.morta...@xwiki.com

 On Fri, Mar 29, 2013 at 3:05 PM, Jeremie BOUSQUET
 jeremie.bousq...@gmail.com wrote:
  Ok found it in xwiki-rendering-macro-message.
  That's nice, looking into it, just realized that there existed a
  {{success}} macro ! Seems nice, is it intended that it's not described on
  extensions wiki as info/warning/error are ?

 Probably been forgotten by the dev who introduced it.

 
  Thanks,
  Jeremie
 
 
  2013/3/29 Jeremie BOUSQUET jeremie.bousq...@gmail.com
 
  Thanks !
  I'm progressing, but it seems I have a hard time finding what to declare
  to get the info/warning/error macros ...
 
  BR,
  Jeremie
 
 
 
  2013/3/29 Vincent Massol vinc...@massol.net
 
 
  On Mar 29, 2013, at 12:21 PM, Vincent Massol vinc...@massol.net
 wrote:
 
  
   On Mar 29, 2013, at 11:03 AM, Jeremie BOUSQUET 
  jeremie.bousq...@gmail.com wrote:
  
   Hello,
  
   Me again ... :-)
   With fixed version of packager plugin, things go better now. XWiki
 is
   downloaded and launched, my test browses to the page as I expect.
  
   Problem is that when browsing to my page, I can see the following in
  the
   html content logged by the build:
  
   div id=xwikicontent
   div class=xwikirenderingerror style=cursor: pointer;
 title=Read
   technical information related to this errorUnknown macro:
  velocity[...]
  
   In fact, it seems wiki is running, but can't find any macro ... I
  tried to
   add a dependency on xwiki-enterprise-ui-all xar, but with same
 result.
  I'm
   not sure of what could be missing ?
  
   I think I've noticed a bug related to this. For ex in my contrib
  project I depend on
 org.xwiki.platform:xwiki-platform-administration-ui. I
  was surprised when running my func test that the admin screen was
 missing
  the velocity and include macros for example. The reason I think is
 because
  in xwiki-platform-administration-ui the deps on velocity and include
 macros
  are of scope runtime.
  
   So IMO there's a bug in PackageMojo: it should draw transitive
  dependencies for the runtime scope.
  
   I'll look into this.
 
  Fixed in http://jira.xwiki.org/jira/browse/XWIKI-8983
 
  Thanks
  -Vincent
 
   However as Thomas said, you need to add the **direct** deps you need
 at
  runtime.
  
   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



 --
 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] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Thomas Mortagne
On Fri, Mar 29, 2013 at 4:56 PM, Thomas Mortagne
thomas.morta...@xwiki.com wrote:
 On Fri, Mar 29, 2013 at 4:47 PM, Jeremie BOUSQUET
 jeremie.bousq...@gmail.com wrote:
 Mmmm, what could explain that standard login for Admin user does not work
 in the xwiki created by the packager plugin ? (invalid credentials).
 It used to work, maybe when I had dependency on xwiki-enterprise-ui-all ...
 ?

 It's not really standard XWiki login, the Admin user come from
 adminitsrtion-ui, if you have that xar then you have the user.

administration-ui



 Br,
 Jeremie


 2013/3/29 Thomas Mortagne thomas.morta...@xwiki.com

 On Fri, Mar 29, 2013 at 3:05 PM, Jeremie BOUSQUET
 jeremie.bousq...@gmail.com wrote:
  Ok found it in xwiki-rendering-macro-message.
  That's nice, looking into it, just realized that there existed a
  {{success}} macro ! Seems nice, is it intended that it's not described on
  extensions wiki as info/warning/error are ?

 Probably been forgotten by the dev who introduced it.

 
  Thanks,
  Jeremie
 
 
  2013/3/29 Jeremie BOUSQUET jeremie.bousq...@gmail.com
 
  Thanks !
  I'm progressing, but it seems I have a hard time finding what to declare
  to get the info/warning/error macros ...
 
  BR,
  Jeremie
 
 
 
  2013/3/29 Vincent Massol vinc...@massol.net
 
 
  On Mar 29, 2013, at 12:21 PM, Vincent Massol vinc...@massol.net
 wrote:
 
  
   On Mar 29, 2013, at 11:03 AM, Jeremie BOUSQUET 
  jeremie.bousq...@gmail.com wrote:
  
   Hello,
  
   Me again ... :-)
   With fixed version of packager plugin, things go better now. XWiki
 is
   downloaded and launched, my test browses to the page as I expect.
  
   Problem is that when browsing to my page, I can see the following in
  the
   html content logged by the build:
  
   div id=xwikicontent
   div class=xwikirenderingerror style=cursor: pointer;
 title=Read
   technical information related to this errorUnknown macro:
  velocity[...]
  
   In fact, it seems wiki is running, but can't find any macro ... I
  tried to
   add a dependency on xwiki-enterprise-ui-all xar, but with same
 result.
  I'm
   not sure of what could be missing ?
  
   I think I've noticed a bug related to this. For ex in my contrib
  project I depend on
 org.xwiki.platform:xwiki-platform-administration-ui. I
  was surprised when running my func test that the admin screen was
 missing
  the velocity and include macros for example. The reason I think is
 because
  in xwiki-platform-administration-ui the deps on velocity and include
 macros
  are of scope runtime.
  
   So IMO there's a bug in PackageMojo: it should draw transitive
  dependencies for the runtime scope.
  
   I'll look into this.
 
  Fixed in http://jira.xwiki.org/jira/browse/XWIKI-8983
 
  Thanks
  -Vincent
 
   However as Thomas said, you need to add the **direct** deps you need
 at
  runtime.
  
   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



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



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


Re: [xwiki-users] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Jeremie BOUSQUET
Thanks Thomas, and sorry for that stack of questions :-/

Jeremie


2013/3/29 Thomas Mortagne thomas.morta...@xwiki.com

 On Fri, Mar 29, 2013 at 4:56 PM, Thomas Mortagne
 thomas.morta...@xwiki.com wrote:
  On Fri, Mar 29, 2013 at 4:47 PM, Jeremie BOUSQUET
  jeremie.bousq...@gmail.com wrote:
  Mmmm, what could explain that standard login for Admin user does not
 work
  in the xwiki created by the packager plugin ? (invalid credentials).
  It used to work, maybe when I had dependency on xwiki-enterprise-ui-all
 ...
  ?
 
  It's not really standard XWiki login, the Admin user come from
  adminitsrtion-ui, if you have that xar then you have the user.

 administration-ui

 
 
  Br,
  Jeremie
 
 
  2013/3/29 Thomas Mortagne thomas.morta...@xwiki.com
 
  On Fri, Mar 29, 2013 at 3:05 PM, Jeremie BOUSQUET
  jeremie.bousq...@gmail.com wrote:
   Ok found it in xwiki-rendering-macro-message.
   That's nice, looking into it, just realized that there existed a
   {{success}} macro ! Seems nice, is it intended that it's not
 described on
   extensions wiki as info/warning/error are ?
 
  Probably been forgotten by the dev who introduced it.
 
  
   Thanks,
   Jeremie
  
  
   2013/3/29 Jeremie BOUSQUET jeremie.bousq...@gmail.com
  
   Thanks !
   I'm progressing, but it seems I have a hard time finding what to
 declare
   to get the info/warning/error macros ...
  
   BR,
   Jeremie
  
  
  
   2013/3/29 Vincent Massol vinc...@massol.net
  
  
   On Mar 29, 2013, at 12:21 PM, Vincent Massol vinc...@massol.net
  wrote:
  
   
On Mar 29, 2013, at 11:03 AM, Jeremie BOUSQUET 
   jeremie.bousq...@gmail.com wrote:
   
Hello,
   
Me again ... :-)
With fixed version of packager plugin, things go better now.
 XWiki
  is
downloaded and launched, my test browses to the page as I
 expect.
   
Problem is that when browsing to my page, I can see the
 following in
   the
html content logged by the build:
   
div id=xwikicontent
div class=xwikirenderingerror style=cursor: pointer;
  title=Read
technical information related to this errorUnknown macro:
   velocity[...]
   
In fact, it seems wiki is running, but can't find any macro ...
 I
   tried to
add a dependency on xwiki-enterprise-ui-all xar, but with same
  result.
   I'm
not sure of what could be missing ?
   
I think I've noticed a bug related to this. For ex in my contrib
   project I depend on
  org.xwiki.platform:xwiki-platform-administration-ui. I
   was surprised when running my func test that the admin screen was
  missing
   the velocity and include macros for example. The reason I think is
  because
   in xwiki-platform-administration-ui the deps on velocity and
 include
  macros
   are of scope runtime.
   
So IMO there's a bug in PackageMojo: it should draw transitive
   dependencies for the runtime scope.
   
I'll look into this.
  
   Fixed in http://jira.xwiki.org/jira/browse/XWIKI-8983
  
   Thanks
   -Vincent
  
However as Thomas said, you need to add the **direct** deps you
 need
  at
   runtime.
   
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
 
 
 
  --
  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



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


[xwiki-users] how to modify description for feed entries?

2013-03-29 Thread Ricardo.Julio.Rodriguez.Fernandez
Sorry for coming back with a new question on this. I think I'm getting closer 
to understand how RSS feeds work in XWiki, but I do need the help of the 
community.

I'm now usinga XE 4.3 installation. I'm able to customize channel elements 
easily by editing, for instance, Main.WebRss, but, please, how to customize 
item elements? For instance, how to customize description element?

Thank you so much 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

Nota: A información contida nesta mensaxe e os seus posibles documentos 
adxuntos é privada e confidencial e está dirixida únicamente ó seu 
destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por 
favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

Nota: La información contenida en este mensaje y sus posibles documentos 
adjuntos es privada y confidencial y está dirigida únicamente a su 
destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
por favor elimínelo. La distribución o copia de este mensaje no está autorizada.

See more languages: http://www.sergas.es/aviso_confidencialidad.htm
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Recommendations on writing automated functional tests for xar extensions ?

2013-03-29 Thread Jeremie BOUSQUET
Another one: I'm debugging a livetable display, that shows empty rows
instead of expected values.
The issue I have seems to drill down to the fact that $request.limit
resolves to 10 (well, the limit value), while $request.get('limit')
resolves to null. Also, $request.reqNo equals 1 as expected, but
$util.parseInt($request.reqNo) is null.
I'm pretty sure that works on a standard XE, so there must be some magical
spice missing in my dependencies (or configuration ?), in relation with
velocity and bindings ...
Do you know what could be that magical spice ?

Thanks,
Jeremie


2013/3/29 Jeremie BOUSQUET jeremie.bousq...@gmail.com

 Thanks Thomas, and sorry for that stack of questions :-/

 Jeremie


 2013/3/29 Thomas Mortagne thomas.morta...@xwiki.com

 On Fri, Mar 29, 2013 at 4:56 PM, Thomas Mortagne
 thomas.morta...@xwiki.com wrote:
  On Fri, Mar 29, 2013 at 4:47 PM, Jeremie BOUSQUET
  jeremie.bousq...@gmail.com wrote:
  Mmmm, what could explain that standard login for Admin user does not
 work
  in the xwiki created by the packager plugin ? (invalid credentials).
  It used to work, maybe when I had dependency on
 xwiki-enterprise-ui-all ...
  ?
 
  It's not really standard XWiki login, the Admin user come from
  adminitsrtion-ui, if you have that xar then you have the user.

 administration-ui

 
 
  Br,
  Jeremie
 
 
  2013/3/29 Thomas Mortagne thomas.morta...@xwiki.com
 
  On Fri, Mar 29, 2013 at 3:05 PM, Jeremie BOUSQUET
  jeremie.bousq...@gmail.com wrote:
   Ok found it in xwiki-rendering-macro-message.
   That's nice, looking into it, just realized that there existed a
   {{success}} macro ! Seems nice, is it intended that it's not
 described on
   extensions wiki as info/warning/error are ?
 
  Probably been forgotten by the dev who introduced it.
 
  
   Thanks,
   Jeremie
  
  
   2013/3/29 Jeremie BOUSQUET jeremie.bousq...@gmail.com
  
   Thanks !
   I'm progressing, but it seems I have a hard time finding what to
 declare
   to get the info/warning/error macros ...
  
   BR,
   Jeremie
  
  
  
   2013/3/29 Vincent Massol vinc...@massol.net
  
  
   On Mar 29, 2013, at 12:21 PM, Vincent Massol vinc...@massol.net
  wrote:
  
   
On Mar 29, 2013, at 11:03 AM, Jeremie BOUSQUET 
   jeremie.bousq...@gmail.com wrote:
   
Hello,
   
Me again ... :-)
With fixed version of packager plugin, things go better now.
 XWiki
  is
downloaded and launched, my test browses to the page as I
 expect.
   
Problem is that when browsing to my page, I can see the
 following in
   the
html content logged by the build:
   
div id=xwikicontent
div class=xwikirenderingerror style=cursor: pointer;
  title=Read
technical information related to this errorUnknown macro:
   velocity[...]
   
In fact, it seems wiki is running, but can't find any macro
 ... I
   tried to
add a dependency on xwiki-enterprise-ui-all xar, but with same
  result.
   I'm
not sure of what could be missing ?
   
I think I've noticed a bug related to this. For ex in my contrib
   project I depend on
  org.xwiki.platform:xwiki-platform-administration-ui. I
   was surprised when running my func test that the admin screen was
  missing
   the velocity and include macros for example. The reason I think is
  because
   in xwiki-platform-administration-ui the deps on velocity and
 include
  macros
   are of scope runtime.
   
So IMO there's a bug in PackageMojo: it should draw transitive
   dependencies for the runtime scope.
   
I'll look into this.
  
   Fixed in http://jira.xwiki.org/jira/browse/XWIKI-8983
  
   Thanks
   -Vincent
  
However as Thomas said, you need to add the **direct** deps you
 need
  at
   runtime.
   
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
 
 
 
  --
  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



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


[xwiki-users] Error when updating my iki on xwiki.org

2013-03-29 Thread Ldm Public

Hello,

I've seen the message in my Wiki admin page on xwiki.org : *March 29, 2013: 
XWiki has been upgraded to version 4.5.3-SNAPSHOT*


I've tried to perform the updgrade with extension manager but I receive the 
following error :


Dependency [org.xwiki.platform:xwiki-platform-rendering-macro-velocity-4.5.3] is 
not compatible with core extension 
[org.xwiki.platform:xwiki-platform-rendering-macro-velocity-4.5.3-SNAPSHOT]

class org.xwiki.extension.InstallException: Failed to resolve extension
...

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


[xwiki-users] How to package all necessary jars for xwiki-authentication-saml?

2013-03-29 Thread Valdis Vītoliņš
Thanks, Thomas,
I tried
https://github.com/xwiki-contrib/sandbox/tree/master/authenticators/xwiki-authentication-saml
again and now it compiled successfully. Though when tried to access WebHome 
page I got
exception, from which IMHO important part is:
...
Caused by: 
java.lang.NoClassDefFoundError:org/opensaml/xml/security/credential/Credential

And I assume it is because I didn't put all necessary jar files in lib folder.
Knowing bash better than J2EE, I copied all files which I got from 
~/m2/repository to /lib,
but then Xwiki didn't start at all...

How can I build  xwiki-authentication-saml with all necessary dependencies?

Thanks, and happy Easter!
Valdis








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