Re: [xwiki-users] Link

2015-07-01 Thread vinc...@massol.net
 
Yes it’s possible with basicauth.

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

Thanks
-Vincent


On 1 Jul 2015 at 12:18:59, Maciej Fokt 
(maciek.f...@taxi123.pl(mailto:maciek.f...@taxi123.pl)) wrote:

> Hey,
>  
> I would like to know if there is the possibility of concluding a login and
> password in the link to the XWiki. I would like to allow other users to
> login without entering data. Is it possible?
>  
> Regards,
> Maciek.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [xwiki-devs] [ANN] XWebIDE - Working prototype of Application Development Environment in XWiki !

2015-07-02 Thread vinc...@massol.net


On 2 Jul 2015 at 12:01:31, Caleb James DeLisle 
(c...@cjdns.fr(mailto:c...@cjdns.fr)) wrote:

> Hi guys and gals,
>  
> XWiki Labs

For anyone who wonder, XWiki Labs is actually XWiki SAS Labs, since it’s an 
XWiki SAS company initiative and it’s not related to the xwiki.org open source 
project (maybe it could become an official xwiki.org initiative at some point 
in the future though but that’d be for another discussion).

Its goal is to research some innovative ideas in the domain of XWiki (along 
with other companies participating in Research projects) and most of its work 
is put back in open source, either in xwiki-contrib on GitHub or at some other 
websites.

See https://labs.xwiki.com/ for more details.

@Caleb: please correct me if I’m wrong :)

Thanks
-Vincent
Hat 1: XWiki SAS CTO
Hat 2: XWiki open source committer

> is proud to present an early (but working!) prototype of an Application 
> Development Environment in XWiki.
> I want to put out a big congradulations to the Labs team's most recent member 
> Yann Flory for making this great work possible in record time.
>  
> We went to great lengths to avoid "nice features" such as syntax highlighting 
> and autocompletion which are likely
> sources of bugs so that we could provide a basic workflow which is stable 
> enough to provide you something you can
> start using today.
>  
> You can install XWebIDE right now from 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/XWebIDE+Application
> or by searching for "XWebIDE" on the Extension Manager.
>  
> If you're developing extensions or projects on top of XWiki, start playing 
> with XWebIDE and tell us what you think.
>  
> If you have ideas for better workflows and user experiences, we want to hear 
> it!
> * Should it be integrated in App Within Minutes? If so, how?
> * How would you want to create a project? Should there be a wizard? What 
> steps?
> * What else would you like this to allow you to do?
>  
> You can write your feedback ideas and report bugs on JIRA at 
> http://jira.xwiki.org/browse/XWEBIDE or write to me.
>  
>  
> Thanks,
> Caleb
>  
> --
> Caleb James DeLisle
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Transfer from Confluence

2015-07-06 Thread vinc...@massol.net
Hi Paul,


On 6 Jul 2015 at 11:53:28, Paul Libbrecht 
(p...@hoplahup.net(mailto:p...@hoplahup.net)) 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.

See 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Confluence+XML+module

Thanks
-Vincent

> Thanks for hints.
>  
> paul

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


Re: [xwiki-users] Email Template for Share Page By Email

2015-07-15 Thread vinc...@massol.net
Hi Sunil,

On 15 Jul 2015 at 11:39:19, Sunil Khiatani 
(spaw...@yahoo.com(mailto:spaw...@yahoo.com)) wrote:

> Hi,
> Is there a way to customize the email template used in the Share Page by 
> Email feature? Please let me know.

See 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Share+Page+Application#HConfiguretheMailTemplate

Thanks
-Vincent

> Regards,
>  
> Sunil

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


Re: [xwiki-users] Email Template for Share Page By Email

2015-07-15 Thread vinc...@massol.net

On 15 Jul 2015 at 11:46:17, Ldm Public 
(ldm...@gmail.com(mailto:ldm...@gmail.com)) wrote:

> Hi, 
> 
> Thanks for this info. 
> I also want to customize the "watchlist mail" do we need to proceed the 
> same way? What is the exact name of XWiki the page to change? 


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

Thanks
-Vincent

> Regards, 
> 
> 2015-07-15 11:42 GMT+02:00 vinc...@massol.net : 
> 
> > Hi Sunil, 
> > 
> > On 15 Jul 2015 at 11:39:19, Sunil Khiatani (spaw...@yahoo.com(mailto: 
> > spaw...@yahoo.com)) wrote: 
> > 
> > > Hi, 
> > > Is there a way to customize the email template used in the Share Page by 
> > Email feature? Please let me know. 
> > 
> > See 
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Share+Page+Application#HConfiguretheMailTemplate
> >  
> > 
> > Thanks 
> > -Vincent 
> > 
> > > Regards, 
> > > 
> > > Sunil 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Can one copy/paste images directly into the page editor?

2015-07-15 Thread vinc...@massol.net


On 8 Jul 2015 at 17:01:35, novnovice 
(novnov...@gmail.com(mailto:novnov...@gmail.com)) wrote:

> I am testing xwiki again. It appears that with the sandbox site, I can now
> drag and drop an image from my windows desktop to a page very easily. I can
> copy/paste into the page with an extra step, where after clicking the paste
> icon and importing the image into the dialog that appears. These are new to
> xwiki, since I originally posted in 2013? A local xwiki install of my own
> will have these features?

What you see on playground.xwiki.org(http://playground.xwiki.org) is what you 
get when you download XWiki Enterprise.

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


Re: [xwiki-users] Location for filesystem objects XWiki 7.1

2015-07-17 Thread vinc...@massol.net
Hi Bryn,

On 17 Jul 2015 at 01:06:54, Bryn Jeffries 
(bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) wrote:

> Hi,
>  
> I recently upgraded from XWiki 5.something to XWiki 7.1. The previous 
> configuration stored attachments in the filesystem, using a location set in 
> xwiki.properties:
> environment.permanentDirectory=/myxwikidata/xwiki/data
>  
> After upgrading I am missing icons from the wiki, and links to attachments 
> are broken. After consulting 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+Porter
>  I see that the location used for attachments (obtained via 
> Utils.getComponent(FilesystemStoreTools.class).storageDir.getAbsolutePath() ) 
> is /var/cache/tomcat7/Catalina/localhost/xwiki/storage
>  
> Does anyone know where this location is set, and why the one in 
> xwiki.properties is not used? I see mention in that file that:
> "Note if the system property xwiki.data.dir is set then this property is not 
> used."
> But grepping the configuration files reveals no mention of the parameter 
> xwiki.data.dir

This hasn’t changed, the configuration for the permanent dir is still 
environment.permanentDirectory in xwiki.properties.

In your case it seems the xwiki.properties file is not in the right place or 
maybe you didn’t modify the correct one because XWiki is using the temporary 
directory (you should get a warning in the console logs by the way).

The xwiki.data.dir is not set by default except in the standalone distribution 
which you’re probably not using anyway since you’re doing an upgrade and if you 
were using that distribution it’s value is set to “data” which is not what 
you’re seeing.

So I would double check the location of xwiki.properties (should be in 
WEB-INF/xwiki.properties).

Thanks
-Vincent

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


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

2015-07-21 Thread vinc...@massol.net
Hi Benoit,

On 21 Jul 2015 at 15:51:01, Agamitsudo 
(agamits...@gmail.com(mailto:agamits...@gmail.com)) wrote:

> *description: doing some tests/dev on xwiki online
> *owner name: Benoît Prieur
> *wiki name: agamitsudo

Done: http://agamitsudo.myxwiki.org

Enjoy!
-Vincent

[snip]

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


Re: [xwiki-users] XWiki as ROOT webapp

2015-07-25 Thread vinc...@massol.net
Hi Alex,

On 24 Jul 2015 at 22:42:56, Alex Martin 
(alexmartin...@gmail.com(mailto:alexmartin...@gmail.com)) wrote:

> Hello All,
>  
> I'm struggling trying to get various resources to render or load correctly
> when moving xwiki from:
>  
> /usr/share/tomcat/webapps/xwiki to
> /usr/share/tomcat/webapps/ROOT
>  
> I've followed the 'Deploying as ROOT' step on the XWiki page below:
> http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs#HDeployingasROOT
>  
> Including setting the xwiki.cfg value:
> xwiki.webapppath=
>  
> However, when restarting tomcat and testing these changes, the
> logo, glyphicons fail to load as per the screenshot:
> http://i.imgur.com/SUfMtjs.png
>  
> I am at wits' end trying to work this one out! Can anyone help or give me
> some clue what I can check?
> This is with Fedora 22 server, Java 1.8 and Tomcat 8 with XWiki 7.1.1 and
> XWiki 7.2M1

I’ve just fixed the bug a few minutes ago (it’s a regression). See 
http://jira.xwiki.org/browse/XWIKI-12342

Sorry about that!

Thanks
-Vincent

> Many thanks,
> Alex

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


Re: [xwiki-users] Minimal XWiki

2015-07-26 Thread vinc...@massol.net
Hi Bryn,

On 21 Jul 2015 at 07:45:59, Bryn Jeffries 
(bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) wrote:

> Hi,
>  
> Is there a convenient way to install XWiki Platform without all the extra 
> Enterprise Wiki packages? I'm wanting to run an instance for a specific 
> project, and I'd prefer not to distract users with all the wiki-related 
> elements. I'm running Ubuntu and there only appears to be xwiki-enterprise 
> deb package available.

You’re referring to UI right?

One solution is to skip the Distribution Wizard at startup and then you install 
only the Extensions you wish to have, using the Extension Manager in the Admin 
UI.

In the future, the idea is to propose flavors and to have a base flavor to make 
that even easier.

Thanks
-Vincent

> Thanks,
>  
> Bryn

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


Re: [xwiki-users] User's alias: how to?

2015-07-26 Thread vinc...@massol.net
Hi Ricardo,

On 21 Jul 2015 at 09:42:54, [IDIS Technical Secretariat] Ricardo Rodríguez 
(ricardo.rodrig...@idisantiago.es(mailto:ricardo.rodrig...@idisantiago.es)) 
wrote:

> Hi!
>  
> I think that after a some years using XWiki, I can now more or less
> understand the magic behind it: documents are "populated" with XWiki
> objects which make them behave in one or other way and content several
> flavours of information. Logic can be also implemented in XWiki pages
> facilitating different kinds of outputs. Thus, a XWiki user is "only" a
> XWiki document where we instantiate XWikiUsers class. A XWiki group
> is"only" a document where we instantiate XWikiGroups class.

Exactly! You perfectly understand how XWiki works :)

> It is really simple to use XWiki group as metaphor for many of the items we
> have to deal with in the day-by-day managerial work: a research project
> team, a consolidated research group or scientific publication authorship
> can all be represented/stored as a XWiki group. That is a really simple
> operation.
>  
> But what I'm not able to figure out how to store properties that
> characterise a given combination of user and group.
>  
> Please, allow me to present three cases of use:
>  
> 1) A person (represented by a XWiki user) can participate in several
> research project teams with different roles (main researchers, teammate,
> lab responsible, task responsible...)
>  
> 2) A person (represented by a XWiki user) can participate in the authorship
> of several scientific publications, but he/she will appear in a different
> position in the authors list. And order matters in this case!
>  
> 3) A person can participate in two scientific publications with different
> filiations, let's call them different *hats*.
>  
> Case 1) is illustrated by...
>  
> http://atriumkm.idisantiago.es/bin/USiRModel/Projects
>  
> Red user participates in all three projects, but only in one of them act as
> leader (a star on the chest). Light blue user participates in two projects,
> as a leader in one of them. But her/his leadership comes from a different
> source (different color of the star)
>  
> ...and cases 2) and 3) by...
>  
> http://atriumkm.idisantiago.es/bin/USiRModel/Publications
>  
> Red user participates in all three publications BUT in a different position
> (the order matters!) and on behalf of a different meta-organisation (white
> or black hats).
>  
> A couple of simple questions:
>  
> a) If I use a XWiki group to represent a publication, how could I store the
> position of each author if authorship is represented by the membership of
> that group?
>  
> b) Red user belongs to at least five different groups: three publications
> and two hats. How could I represent the hat associated with red user in
> publications 02 and 03?
>  
> I ended up calling this concept "user alias": a user alias is a set of
> XWiki documents only one of which includes an instance of XWikiUsers class.
>  
> I'm sure there is some "strong concept" in software design and data
> modeling that apply to what I'm looking for, but I've not enough formation
> as for looking for it. Your insights will be really welcome!
>  
> Please, does this make any sense for you? Any idea?

TBH I haven’t fully parsed your need yet but I can offer some general ideas:

* You can create some custom xclass to represent your concepts and add one 
xobject of that xclass in the user documents. Then you can perform queries on 
that to list whatever you wish.
* Similary if you wish to have metadata about groups, you can add an xobject of 
some custom xclass in the group documents.

Let me know if that helps.

Thanks
-Vincent

> Thank you so much,
>  
> Ricardo

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


Re: [xwiki-users] Wysiwyg editor broken by proxy

2015-07-30 Thread vinc...@massol.net
Hi Mizio,

FYI, this was just fixed in http://jira.xwiki.org/browse/XWIKI-12065

Thanks
-Vincent


On 30 Jul 2015 at 14:44:24, mizio 
(maurizio.baru...@gmail.com(mailto:maurizio.baru...@gmail.com)) wrote:

> Hi guys,
>  
> I've this problem:
> I installed xwiki 7.1 under jboss in my office network, uploading the
> package xar with the main pages.
> This network is under a proxy server that block at all some sites: when I
> try to edit a page with the wysywyg editor the tool hanging because is
> blocked the external loading of a single javascript, jsTree.min.js from the
> site cloudflare.
>  
> So, I know that this js is present in my installation, but the application
> always check it on the external site.
>  
> Can I instrument xwiki to load this file locally?
>  
> Thank you.
>  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [xwiki-devs] The future of the Spaces macro in the context of Nested Spaces/Documents

2015-07-30 Thread vinc...@massol.net
Hi Marius,


On 12 Jun 2015 at 12:30:28, Marius Dumitru Florea 
(mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) wrote:

> Hi guys,
>  
> The wiki home page displays, by default, the list of spaces that exist
> in the wiki (hidden or not, depending on the user profile settings).
> This is done using the
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Spaces+Macro . As
> we have started to work on adding support for nested spaces/documents,
> we need to review the purpose of this macro. Is it still relevant to
> display a list of spaces when there is a tree hierarchy? It only makes
> sense if you want to display just the list of direct children of a
> given node.
>  
> I see the following options:
>  
> (1) Display the list of top level nodes (space/document) on the wiki
> home page. No tree. The rationale is that loading the tree (even if
> done lazy) is more expensive that displaying a static list of links.
> For this we can extend the Spaces Macro with a parameter to specify
> the parent node. When this parameter is not specified the macro will
> list the top level nodes. (In the context of nested documents we could
> introduce a new macro Document List instead)

-0. BTW I’ve fixed the Spaces macro so that it doesn’t fail when used for NS 
(see http://jira.xwiki.org/browse/XWIKI-12354).

> (2) Display the tree hierarchy on the wiki home page, using
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro
> .Of course, the tree will be lazy loaded, and only the top level nodes
> are displayed initially. If we do this then we can probably deprecate
> the Spaces Macro and advice the users to use the Document Tree Macro
> instead.
>  
> WDYT?

+1 for (2).

(3) However we may also stop displaying a navigation widget in the Dashboard 
since we’re going to have another way for navigation soon, see 
http://markmail.org/message/vzjcdr7fgewe4m7j

My only worry is that it’s likely that the chosen solution will be sol5 + sol6 
and thus less visible for users who don’t know how to use it a first. This 
could be solved by using the Tour application for first time users I guess and 
showing them the UI through a Tour overlay.

So I’m also +1 for (3)

FTR this discussion is related to issue 
http://jira.xwiki.org/browse/XWIKI-12362 which we may close as won’t fix 
depending on the result of this discussion.

Thanks
-Vincent

___
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-31 Thread vinc...@massol.net
Hi Olivier,


On 31 Jul 2015 at 08:52:14, Studer Olivier 
(olivier.stu...@hefr.ch(mailto:olivier.stu...@hefr.ch)) wrote:

> So if I want to change the ROOT path to "/", the bug is not present in 
> version 7.0 ? Yes or no?

Yes but 7.0 has other problems (see 
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki70) and 7.1.1 
is generally a better version than 7.0.

A better solution IMO is to take this JAR: 
http://maven.xwiki.org/snapshots/org/xwiki/platform/xwiki-platform-url-container/7.1.2-SNAPSHOT/xwiki-platform-url-container-7.1.2-20150730.143718-22.jar
 and drop it into your WEB-INF/lib directory, replacing your current version.

Make sure to remove WEB-INF/lib/xwiki-platform-url-container-7.1.1.jar

Then restart XWiki.

Thanks
-Vincent

> Regards
> /Olivier
>  
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> Sent: jeudi 30 juillet 2015 16:12
> To: XWiki Users  
> Subject: Re: [xwiki-users] problem after update to 7.1.1
>  
> The actual cause of the error is missing in the stack trace you pasted so 
> it's not easy to tell exactly what is the issue.
>  
> For XWiki used as ROOT, the bad news is that it's been broken in 7.1, see 
> http://jira.xwiki.org/browse/XWIKI-12342.
>  
> On Thu, Jul 30, 2015 at 3:55 PM, Studer Olivier wrote:
> > Hi,
> >
> > I have update the XWiki 6.2.2 to 7.1.1 with using "apt-get upgrade 
> > xwiki-enterprise-tomcat7-mysql" on Ubuntu server with success. But when I 
> > restart the Xwiki, they are the following message in the catalina.out file:
> >
> > 2015-07-30 15:31:10,713 [localhost-startStop-1] INFO 
> > o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server.
> > Jul 30, 2015 3:31:15 PM org.apache.catalina.startup.HostConfig
> > deployDescriptor
> > INFO: Deploying configuration descriptor
> > /etc/tomcat7/Catalina/localhost/ROOT.xml
> > 2015-07-30 15:31:45,555 [localhost-startStop-1] ERROR
> > .o.i.DefaultObservationManager - Failed to lookup listeners
> > org.xwiki.component.manager.ComponentLookupException: Failed to lookup 
> > component [role = [interface org.xwiki.observation.EventListener] hint = 
> > [DistributionInitializerListener]]
> > 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.observation.internal.DefaultObservationManager.initializeListeners(DefaultObservationManager.java:164)
> >  [xwiki-commons-observation-local-7.1.1.jar:na]
> > at 
> > org.xwiki.observation.internal.DefaultObservationManager.getListenersByEvent(DefaultObservationManager.java:131)
> >  [xwiki-commons-observation-local-7.1.1.jar:na]
> > at 
> > org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:267)
> >  [xwiki-commons-observation-local-7.1.1.jar:na]
> > at 
> > org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:321)
> >  [xwiki-commons-observation-local-7.1.1.jar:na]
> > at 
> > org.xwiki.container.servlet.XWikiServletContextListener.contextInitialized(XWikiServletContextListener.java:118)
> >  [xwiki-platform-container-servlet-7.1.1.jar:na]
> > at 
> > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
> >  [tomcat-catalina-7.0.52.jar:7.0.52]
> > at 
> > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
> >  [tomcat-catalina-7.0.52.jar:7.0.52]
> > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
> > [tomcat-catalina-7.0.52.jar:7.0.52]
> > at 
> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> >  [tomcat-catalina-7.0.52.jar:7.0.52]
> > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) 
> > [tomcat-catalina-7.0.52.jar:7.0.52]
> > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) 
> > [tomcat-catalina-7.0.52.jar:7.0.52]
> > at 
> > org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:670)
> >  [tomcat-catalina-7.0.52.jar:7.0.52]
> > at 
> > org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
> >  [tomcat-catalina-7.0.52.jar:7.0.52]
> > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
> > [na:1.7.0_79]
> > at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_79]
> > 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: org.xwiki.component.manager.ComponentLookupException: Failed to lookup 
> > component 
> > 

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

2015-08-08 Thread vinc...@massol.net
The XWiki development team is proud to announce the availability of XWiki 7.2 
Milestone 2.

The focus of this release was on fixing issues introduced in 7.2 Milestone 1 
with the new Nested Document/Nested Spaces features and to continue adding 
support for this feature in various existing features (using a tree for the 
Import UI instead of a list, new DB table to have performant Space queries, 
start of Nested Spaces support in the XWiki JS APIs, etc). Another major 
feature added was the new Script permission to allow forbidding Script 
execution to specific Users or Groups.

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/ReleaseNotesXWiki7.2M2

The following people have contributed code to this release:

Thomas Mortagne
Vincent Massol
Caleb James DeLisle
Eduard Moraru
Guillaume Delhumeau
Marius Dumitru Florea
Sergiu Dumitriu

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


Re: [xwiki-users] Creating a new page creates a space instead

2015-08-09 Thread vinc...@massol.net
Hi Tony,

It seems you missed the release notes :)

See http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72M1

Thanks
-Vincent


On 10 Aug 2015 at 07:13:30, junglur 
(t...@junglur.co.nz(mailto:t...@junglur.co.nz)) wrote:

> I've tried searching but can't seem to find anything relevant
>  
> I have a fresh install of Enterprise 7.2 Milestone 1. Everything seems to be
> running ok except for 1 thing. This problem seems to be the same on the
> standalone installer and by installing via the WAR package.
>  
> When I click on add and select page it takes me to a page titled "Create
> Page" looks the same as the online playground. The problem is when I give
> the page a name and click create it creates a new space instead.
>  
> For example, if I click in to "Sandbox" and then do create page leaving
> location as "Sandbox" and then put in a page name of "TestPage" and then
> click create. It takes me me to the WYSIWYG editor where I can put in
> content. I then put in some random content for test purposes and click save
> and view. Everything looks fine on that front. Now if I go back to the
> dashboard however it lists under spaces "Sandbox.TestPage" It seems to be
> creating a new space instead of a page.
>  
> I have gone to the online playground on the xwiki.org website and tried the
> same thing and it seems to be working as expected, creates a page and not
> another space.
>  
> I have attached a screenshot below, you can see I've tried a couple times
> with no luck. Any help would be appreciated.

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


Re: [xwiki-users] Creating a new page creates a space instead

2015-08-11 Thread vinc...@massol.net
Hi Tony,

Guillaume Lerouge has taken the time to re-explain everything but this is 
supposed to be already mentioned in the Release Notes. I would like really to 
fine tune our Release Notes so that anyone interested in XWiki 7.2 can 
understand the new concept without having to ask on the list.

Could you please go through 
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72M1#HNestedDocuments
 and provide a point by point list of questions you still have after reading 
that? It’s too bad Guillaume answered (although it was very nice of him to do 
so :)), because by now you probably have some concepts/answer in your mind and 
it’s going to be hard to abstract them away when reading the Release Notes 
again, but please try it! :)

Thanks for helping us!
-Vincent

On 11 Aug 2015 at 00:22:40, junglur 
(t...@junglur.co.nz(mailto:t...@junglur.co.nz)) wrote:

> Hi Vincent,
>  
> I read through the realease notes, it's possible I'm just not understanding
> them. I see that nested spaces have been added but does that mean it's
> intended function? It didn't say that I could see, that it was a known issue
> unless I'm reading it wrong.
>  
> Cheers,
> Tony
>  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Creating a new page creates a space instead

2015-08-11 Thread vinc...@massol.net
Hi again,

On 11 Aug 2015 at 12:07:25, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Hi Tony,
>  
> Guillaume Lerouge has taken the time to re-explain everything but this is 
> supposed to be already mentioned in the Release Notes. I would like really to 
> fine tune our Release Notes so that anyone interested in XWiki 7.2 can 
> understand the new concept without having to ask on the list.  
>  
> Could you please go through 
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72M1#HNestedDocuments
>  and provide a point by point list of questions you still have after reading 
> that? It’s too bad Guillaume answered (although it was very nice of him to do 
> so :)), because by now you probably have some concepts/answer in your mind 
> and it’s going to be hard to abstract them away when reading the Release 
> Notes again, but please try it! :) 

Actually I’ve added the text from Guillaume’s email to 
http://platform.xwiki.org/xwiki/bin/view/Features/ContentOrganization#HHistory 
and added a link to 
http://platform.xwiki.org/xwiki/bin/view/Features/ContentOrganization from the 
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72M1 release 
notes.

Let me know if the doc is ok now, and whether it’s understandable by someone 
without having to ask a question on the list?

Thanks!
-Vincent

>  
> Thanks for helping us!  
> -Vincent
>  
> On 11 Aug 2015 at 00:22:40, junglur 
> (t...@junglur.co.nz(mailto:t...@junglur.co.nz)) wrote:
>  
> > Hi Vincent,
> >
> > I read through the realease notes, it's possible I'm just not understanding
> > them. I see that nested spaces have been added but does that mean it's
> > intended function? It didn't say that I could see, that it was a known issue
> > unless I'm reading it wrong.
> >
> > Cheers,
> > Tony
> >
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Xwiki Logo

2015-08-11 Thread vinc...@massol.net
On 11 Aug 2015 at 15:07:32, Maciej Fokt 
(maciek.f...@taxi123.pl(mailto:maciek.f...@taxi123.pl)) wrote:

> Hi,
>  
> I have little problem with xWiki LOGO for unregistered users.
>  
> Could you tell me, if the unregistered user should have an access to home
> page to see logo, which I set?

Yes it should unless you’ve configured permissions so that unauthenticated 
users can’t view the document holding the logo.

Thanks
-Vincent

> Warm wishes to you,
> Maciek

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


Re: [xwiki-users] Sold search from JAVA

2015-08-11 Thread vinc...@massol.net
Hi,

See 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Query+API#HFromJava

Thanks
-Vincent

On 11 Aug 2015 at 13:28:08, Eduard Moraru 
(enygma2...@gmail.com(mailto:enygma2...@gmail.com)) wrote:

> Hi,
>  
> You need to use XWiki's Query Module [1].
>  
> Here's a quick howto:
>  
> Make sure your maven module's pom.xml depends on the
> org.xwiki.platform:xwiki-platform-search-solr-query module in order to have
> the right classes in your classpath.
>  
> Then, you could do something along these lines:
>  
> // declare the dependency injection in the code
> @Inject
> org.xwiki.query.QueryManager queryManager;
>  
> // use it to create a query
> org.xwiki.query.Query query = queryManager.creatQuery("your query
> statement", "solr");
> // bind more values to the query
> query.bindValue("whateverYouWantToAdd", value);
> // execute the query
> org.apache.solr.client.solrj.response.QueryResponse response =
> query.execute().get(0);
> // use the response to get the information you need.
> response.getResults();
> // etc.
>  
> Hope this helps,
> Eduard
>  
> [1]
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module#HFromJavacomponents
>  
>  
>  
> On Mon, Aug 10, 2015 at 11:54 AM, Peter Huisman wrote:
>  
> > Hi,
> >
> > I have been looking into the Solr search to identify which wiki links
> > ([>>doc:] in TEXTAREA’s within Objects on a page) are being used for a
> > certain document. I want to use this from my Java packages. I have not been
> > able to identify an (easy?) way of incorporating Solr search into this. If
> > I’m not mistaken, it even discouraged to use. It works like a charm in
> > velocity but that’s not where I want to use it.
> >
> > Now, I’m not an expert in Java so maybe I do not have the right knowledge
> > to understand how this works but can you please enlighten me a bit on this
> > topic?
> >
> > 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


Re: [xwiki-users] Xwiki Logo

2015-08-11 Thread vinc...@massol.net
On 11 Aug 2015 at 16:05:35, Maciej Fokt 
(maciek.f...@taxi123.pl(mailto:maciek.f...@taxi123.pl)) wrote:

> Hi,
>  
> I think that you didn't fully understand me. I set logo for whole xWiki, I 
> mean I changed the old logo (this logo which is set when I install fresh 
> xWiki). I think that the logo should be available for unregistered users too. 
> Now unregistered users can see just inscription like "Wiki Logo".  
>  
> How can I resolve this problem? 

As I said, the only reason unregistered users wouldn’t be able to see the logo 
is because you would have set permissions so that unregistered users are not 
allowed to view some pages (especially the page containing the new logo).

How did you change the logo and where did you put the new logo?

Thanks
-Vincent

> Greetings,  
> Maciek
>  
> W dniu .08.2015 o 15:19 vinc...@massol.net pisze:
>  
> > On 11 Aug 2015 at 15:07:32, Maciej Fokt 
> > (maciek.f...@taxi123.pl(mailto:maciek.f...@taxi123.pl)) wrote:  
> > > Hi,
> > >
> > > I have little problem with xWiki LOGO for unregistered users.
> > >
> > > Could you tell me, if the unregistered user should have an access to home
> > > page to see logo, which I set?  
> >  
> > Yes it should unless you’ve configured permissions so that unauthenticated 
> > users can’t view the document holding the logo.  
> >  
> > Thanks  
> > -Vincent
> >  
> > > Warm wishes to you,
> > > Maciek
> >  
>  
>  
>  

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


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

2015-08-12 Thread vinc...@massol.net
Hi Bryn,

On 12 Aug 2015 at 12:09:56, Bryn Jeffries 
(bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) wrote:

> Hi,
>  
> I'm experimenting with including some jQuery UI elements into some wiki pages 
> using XWiki 7.1. As a test, I've been trying to get the spinner example from 
> http://api.jqueryui.com/spinner/ to work:
>  
> I have constructed a minimal page, with content body:
> {{velocity}}
> {{html}}
>  
> {{/html}}
> {{/velocity}}
>  
> And for the page I've added an objects of type XWiki.JavaScriptExtension 
> containing code:
> require(['jquery'], function($) {
> $( "#spinner" ).spinner();
> });
>  
> However, viewing the page yields an error
> TypeError: a(...).spinner is not a function
> "require(["jquery"],function(a){a("#spinner").spinner()});"
>  
> So it looks as though the spinner UI code is missing, so I'm guessing I need 
> to include the jQuery UI library somehow. I'm a little confused because there 
> is a jquery-ui-1.11.1.jar file in /usr/lib/xwiki/WEB-INF/lib/ which led me to 
> believe that it was already bundled with XWiki.
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/FrontendResources says 
> "Prototype is the only JavaScript library that is systematically shipped with 
> any wiki page in XWiki." But it's a bit old.
>  
> Any pointers?

I’m far from a JS expert, but it seems your code is saying that it depends on 
jquery but not on jquery-ui and https://api.jqueryui.com/spinner/ seems to 
indicate that the spinner is located in jquery-ui…

Try depending on jquery-ui maybe?

Thanks
-Vincent

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


Re: [xwiki-users] Creating a new page creates a space instead

2015-08-12 Thread vinc...@massol.net
Hi,

On 12 Aug 2015 at 02:06:32, junglur 
(t...@junglur.co.nz(mailto:t...@junglur.co.nz)) wrote:

> Hi Guys,
>  
> Thanks heaps for the clarification, I think I'm starting to get an
> understanding.
>  
> I still have a question though.
>  
> Under Terminology you've got "Nested Space: A Space which has another Space
> as parent." If I'm understanding correctly you're wanting to drop the term
> "Spaces" and a Nested Document is essentially a Nested Space already or vice
> versa. Is that correct? If so maybe need to mention they are one in the same
> and that the term nested space will eventually be depreciated in favour of
> Nested Document.
>  
> At present it feels like the information is slightly conflicting and it's
> not clear if Nested Spaces and Nested Documents are the same thing or
> something different.

What’s difficult to understand indeed is that:
* At the UI level we use Nested Documents
* At the API level we use Nested Spaces

I’ve updated the release notes to:

"
* **Nested Document** (a.k.a **Non-Terminal Document**): This is a wiki page 
that can have children pages. Technically a Nested Document is implemented as a 
Nested Space (i.e. a **WebHome** page).
* **Non-Nested Document** (a.k.a **Terminal Document**): This a wiki page that 
cannot have children pages. Applications and script can create Terminal 
Documents. Advanced Users will also be able to create Terminal Documents from 
the UI. Standard Users will only be able to create Nested Documents.
* **Nested Space**: A Space which has another Space as parent. As mentioned 
above, a Nested Document is technically implemented as a Nested Space. You will 
used the term Nested Space when speaking technically about XWiki APIs for 
example but when talking about UI you should favor using the term Nested 
Document instead.
“

Is that better?

Thanks
-Vincent

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


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

2015-08-12 Thread vinc...@massol.net
I’ve tried to improve a bit 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FrontendResources but I’m 
sure I’ve forgotten some.

We also need to update that page to explain requirejs and the webjar mechanisms 
I think.

Thanks
-Vincent


On 12 Aug 2015 at 16:50:47, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Hi Bryn,
>  
> On 12 Aug 2015 at 12:09:56, Bryn Jeffries 
> (bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) wrote:
>  
> > Hi,
> >
> > I'm experimenting with including some jQuery UI elements into some wiki 
> > pages using XWiki 7.1. As a test, I've been trying to get the spinner 
> > example from http://api.jqueryui.com/spinner/ to work:
> >
> > I have constructed a minimal page, with content body:
> > {{velocity}}
> > {{html}}
> >  
>  
> > {{/html}}
> > {{/velocity}}
> >
> > And for the page I've added an objects of type XWiki.JavaScriptExtension 
> > containing code:
> > require(['jquery'], function($) {
> > $( "#spinner" ).spinner();
> > });
> >
> > However, viewing the page yields an error
> > TypeError: a(...).spinner is not a function
> > "require(["jquery"],function(a){a("#spinner").spinner()});"
> >
> > So it looks as though the spinner UI code is missing, so I'm guessing I 
> > need to include the jQuery UI library somehow. I'm a little confused 
> > because there is a jquery-ui-1.11.1.jar file in /usr/lib/xwiki/WEB-INF/lib/ 
> > which led me to believe that it was already bundled with XWiki.
> > http://platform.xwiki.org/xwiki/bin/view/DevGuide/FrontendResources says 
> > "Prototype is the only JavaScript library that is systematically shipped 
> > with any wiki page in XWiki." But it's a bit old.
> >
> > Any pointers?  
>  
> I’m far from a JS expert, but it seems your code is saying that it depends on 
> jquery but not on jquery-ui and https://api.jqueryui.com/spinner/ seems to 
> indicate that the spinner is located in jquery-ui…  
>  
> Try depending on jquery-ui maybe?  
>  
> Thanks  
> -Vincent
>  
> > Thanks,
> >
> > Bryn

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


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

2015-08-12 Thread vinc...@massol.net
Hi Bryn,

On 12 Aug 2015 at 22:05:25, Bryn Jeffries 
(bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) wrote:

> Vincent suggested:
> > > Try depending on jquery-ui maybe?
> >
> > Right, I'd misunderstood the purpose of require(), which I thought was to
> > provide compatibility vs prototype when using '$'.
> >
> > However, this still doesn't fix things completely, but does move them
> > forwards a bit.
> > require(['jquery','jquery-ui'], function($) {
> > $( "#spinner" ).spinner();
> > });
> >
>  
> Actually, more playing around eventually gave me this, which does work:
> require(['jquery',"$services.webjars.url('jquery-ui', 'jquery-ui.js')"], 
> function($) {
> $( "#spinner" ).spinner();
> });
>  
> I wouldn't say I'm 100% sure of what I'm doing with require, or if this is 
> the best way to do it, but at least it works without errors.

That looks correct. The reason you could simply use “jquery” in the require() 
function is because it’s declared in javascript.vm:

require.config({
  paths: {
    'jquery': '#removeJsSuffix($services.webjars.url("jquery", 
"jquery${jsExtension}"))',
    'bootstrap': '#removeJsSuffix($services.webjars.url("bootstrap", 
"js/bootstrap${jsExtension}"))',
    'xwiki-meta': 
'$stringtool.removeEnd($xwiki.getSkinFile('js/xwiki/meta.js'), '.js')',
    'xwiki-events-bridge': 
"$stringtool.removeEnd($xwiki.getSkinFile('js/xwiki/eventsBridge.js'), '.js')"
  },
…

This is not the case for jquery-ui or for other webjars. This is why you need 
to use $services.webjars.url(..).

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 :)).

Thanks
-Vincent

> Thanks,
>  
> Bryn

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


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

2015-08-12 Thread vinc...@massol.net
 

On 12 Aug 2015 at 22:31:11, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Hi Bryn,
>  
> On 12 Aug 2015 at 22:05:25, Bryn Jeffries 
> (bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) wrote:
>  
> > Vincent suggested:
> > > > Try depending on jquery-ui maybe?
> > >
> > > Right, I'd misunderstood the purpose of require(), which I thought was to
> > > provide compatibility vs prototype when using '$'.
> > >
> > > However, this still doesn't fix things completely, but does move them
> > > forwards a bit.
> > > require(['jquery','jquery-ui'], function($) {
> > > $( "#spinner" ).spinner();
> > > });
> > >
> >
> > Actually, more playing around eventually gave me this, which does work:
> > require(['jquery',"$services.webjars.url('jquery-ui', 'jquery-ui.js')"], 
> > function($) {
> > $( "#spinner" ).spinner();
> > });
> >
> > I wouldn't say I'm 100% sure of what I'm doing with require, or if this is 
> > the best way to do it, but at least it works without errors.
>  
> That looks correct. The reason you could simply use “jquery” in the require() 
> function is because it’s declared in javascript.vm:
>  
> require.config({
> paths: {
> 'jquery': '#removeJsSuffix($services.webjars.url("jquery", 
> "jquery${jsExtension}"))',
> 'bootstrap': '#removeJsSuffix($services.webjars.url("bootstrap", 
> "js/bootstrap${jsExtension}"))',
> 'xwiki-meta': '$stringtool.removeEnd($xwiki.getSkinFile('js/xwiki/meta.js'), 
> '.js')',
> 'xwiki-events-bridge': 
> "$stringtool.removeEnd($xwiki.getSkinFile('js/xwiki/eventsBridge.js'), '.js')"
> },
> …
>  
> This is not the case for jquery-ui or for other webjars. This is why you need 
> to use $services.webjars.url(..).
>  
> 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 :)).

errr…. 11 days… :)

-Vincent

> Thanks
> -Vincent
>  
> > Thanks,
> >
> > Bryn
>  

___
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-23 Thread vinc...@massol.net
Hi Mohit,

This is possibly a bug but we’d need the full stack trace to know more. This is 
a clean install, right (not an upgrade)?

Thanks
-Vincent

On 23 Aug 2015 at 17:58:57, Mohit Gupta 
(motgu...@gmail.com(mailto:motgu...@gmail.com)) wrote:

> Thanks Thomas and Clemens.
>  
> I moved to java 7 and using ojdbc6.jar instead of ojdbc14.jar. But i am
> getting below error when i hit url http://localhost:/wiki/ in browser
> after my tomcat start
>  
> Failed to extract Entity Resource Reference from URL [
> http://localhost:/wiki/bin/view/Main/]] with root cause
> java.sql.SQLException: ORA-01408: such column list already indexed
>  
> at
> oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
> at
> oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
> at
> oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
> at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
> at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
> at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
> at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
>  
>  
> On Mon, Aug 17, 2015 at 2:46 PM, Thomas Mortagne  
> wrote:
>  
> > 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 <
> > thomas.morta...@xwiki.com
> > >>> 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

Re: [xwiki-users] Change Page Owner

2015-08-23 Thread vinc...@massol.net
Hi Hamster,

On 22 Aug 2015 at 09:17:37, Hamster 
(teun...@hotmail.com(mailto:teun...@hotmail.com)) wrote:

> Just wondering...3 1/2 years ago it was not possible to change the owner of a
> page in the UI.
>  
> Is this now possible (with XWiki 7.x) within the UI or do I still need to
> use the script?

It’s still not possible to do it with the UI (you have to use a script). The 
reason it hasn’t changed is that nobody has asked for it :)

If you think such a UI feature is needed please create a jira issue for it, 
with some description as to where you’d see it located in the UI and how it 
would work.

Thanks
-Vincent

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


Re: [xwiki-users] Change Page Owner

2015-08-23 Thread vinc...@massol.net
Hi Tim,

On 23 Aug 2015 at 22:53:56, Tim Dudgeon 
(tdudg...@informaticsmatters.com(mailto:tdudg...@informaticsmatters.com)) wrote:

> I'd certainly give that a +1. Seems like pretty necessary functionality.
> Also, to be able to transfer ownership of all items belonging to a user
> (useful when someone leaves your organisation and you need to transfer
> their "stuff" to someone else).

Note that you can remove a user without having to transfer any ownership and 
you don’t need to be the creator of a page to be allowed to modify it or have 
permissions on it. 

Also, even if someone leaves a company they’re still the creator of the pages 
they created (in reality, this can never be removed, they’ll always be the 
creator of that page, even if you try to hide it ;)).

Personally I don’t see this feature as a necessary one. I’m curious: why do you 
think it’s necessary? :)

Thanks
-Vincent

> Tim
>  
> On 23/08/2015 13:39, vinc...@massol.net wrote:
> > Hi Hamster,
> >
> > On 22 Aug 2015 at 09:17:37, Hamster 
> > (teun...@hotmail.com(mailto:teun...@hotmail.com)) wrote:
> >
> >> Just wondering...3 1/2 years ago it was not possible to change the owner 
> >> of a
> >> page in the UI.
> >>
> >> Is this now possible (with XWiki 7.x) within the UI or do I still need to
> >> use the script?
> >
> > It’s still not possible to do it with the UI (you have to use a script). 
> > The reason it hasn’t changed is that nobody has asked for it :)
> >
> > If you think such a UI feature is needed please create a jira issue for it, 
> > with some description as to where you’d see it located in the UI and how it 
> > would work.
> >
> > Thanks
> > -Vincent
> >
> > [snip]
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Change Page Owner

2015-08-24 Thread vinc...@massol.net

On 24 Aug 2015 at 00:53:15, Tim Dudgeon 
(tdudg...@informaticsmatters.com(mailto:tdudg...@informaticsmatters.com)) wrote:

> Well, I suppose the scenario is like this.
> Your company has 2 users, Jon and Sam.
> Jon has just left the company and Sam is picking up all his work.
> There needs to be a simple way to transfer Jon's "rights" to all
> documents and apps to Sam.
> Its probably correct to leave Jon as a user, but just inactivate the
> account (e.g. the fact the Jon created and edited some docs is important
> information and should not be lost).
> But there needs to be a simple way to enable Sam to do anything that Jon
> used to be able to do on all of those docs. e.g. not have to make a
> manual change on every document.
> Maybe there's already a way to do this.

Maybe the issue comes from the fact that we don’t have any notion of owner for 
a doc (which seems ok for a wiki); we just have the notion of Creator (ie the 
first person who initiated the doc). 

The issue is that the creator of a doc has some special permissions for that 
doc and that cannot be transferred. However extra permissions can be given to 
Sam.

Thus, the solution I can think of is to have an Admin review the permissions 
Jon had on the wiki and verify that Sam has the same permissions and if some 
are missing, review them and if ok give them to Sam or move the documents to 
other locations where Sam would get the permissions.

Copying permissions from one user to another is a feature that could even be 
implemented if XWiki users find that interesting, possibly with a UI showing 
the new permissions that would be given to Sam before the copy happens (to make 
the review possible).

@Hamster: what is your use case? Would that solve it?

Thanks
-Vincent

> Tim
>  
>  
> On 23/08/2015 18:40, vinc...@massol.net wrote:
> > Hi Tim,
> >
> > On 23 Aug 2015 at 22:53:56, Tim Dudgeon 
> > (tdudg...@informaticsmatters.com(mailto:tdudg...@informaticsmatters.com)) 
> > wrote:
> >
> >> I'd certainly give that a +1. Seems like pretty necessary functionality.
> >> Also, to be able to transfer ownership of all items belonging to a user
> >> (useful when someone leaves your organisation and you need to transfer
> >> their "stuff" to someone else).
> >
> > Note that you can remove a user without having to transfer any ownership 
> > and you don’t need to be the creator of a page to be allowed to modify it 
> > or have permissions on it.
> >
> > Also, even if someone leaves a company they’re still the creator of the 
> > pages they created (in reality, this can never be removed, they’ll always 
> > be the creator of that page, even if you try to hide it ;)).
> >
> > Personally I don’t see this feature as a necessary one. I’m curious: why do 
> > you think it’s necessary? :)
> >
> > Thanks
> > -Vincent
> >
> >> Tim
> >>
> >> On 23/08/2015 13:39, vinc...@massol.net wrote:
> >>> Hi Hamster,
> >>>
> >>> On 22 Aug 2015 at 09:17:37, Hamster 
> >>> (teun...@hotmail.com(mailto:teun...@hotmail.com)) wrote:
> >>>
> >>>> Just wondering...3 1/2 years ago it was not possible to change the owner 
> >>>> of a
> >>>> page in the UI.
> >>>>
> >>>> Is this now possible (with XWiki 7.x) within the UI or do I still need to
> >>>> use the script?
> >>>
> >>> It’s still not possible to do it with the UI (you have to use a script). 
> >>> The reason it hasn’t changed is that nobody has asked for it :)
> >>>
> >>> If you think such a UI feature is needed please create a jira issue for 
> >>> it, with some description as to where you’d see it located in the UI and 
> >>> how it would work.
> >>>
> >>> Thanks
> >>> -Vincent
> >>>
> >>> [snip]
___
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-25 Thread vinc...@massol.net
Hi again,

I’ve noticed someone else has reported the issue at 
http://jira.xwiki.org/browse/XWIKI-12425 with full details.

We’ll fix it.

Thanks
-Vincent

On 23 Aug 2015 at 19:21:50, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Hi Mohit,
>  
> This is possibly a bug but we’d need the full stack trace to know more. This 
> is a clean install, right (not an upgrade)?  
>  
> Thanks  
> -Vincent
>  
> On 23 Aug 2015 at 17:58:57, Mohit Gupta 
> (motgu...@gmail.com(mailto:motgu...@gmail.com)) wrote:
>  
> > Thanks Thomas and Clemens.
> >
> > I moved to java 7 and using ojdbc6.jar instead of ojdbc14.jar. But i am
> > getting below error when i hit url http://localhost:/wiki/ in browser
> > after my tomcat start
> >
> > Failed to extract Entity Resource Reference from URL [
> > http://localhost:/wiki/bin/view/Main/]] with root cause
> > java.sql.SQLException: ORA-01408: such column list already indexed
> >
> > at
> > oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
> > at
> > oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
> > at
> > oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
> > at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
> > at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
> > at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
> > at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
> >
> >
> > On Mon, Aug 17, 2015 at 2:46 PM, Thomas Mortagne
> > wrote:
> >
> > > 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 <
> > > thomas.morta...@xwiki.com
> > > >>> 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 b

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

2015-08-27 Thread vinc...@massol.net
nFilter.java:127)
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
> org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
>  
>  
>  
> On Thu, Aug 27, 2015 at 1:50 PM, 
> vinc...@massol.net(mailto:vinc...@massol.net) wrote:
> > Hi Mohit,
> >  
> > As I hint in my previous reply it’s been fixed already, see 
> > http://jira.xwiki.org/browse/XWIKI-12425
> >  
> > Thanks
> > -Vincent

[snip]


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


Re: [xwiki-users] Creating a new page creates a space instead

2015-08-27 Thread vinc...@massol.net
Hi,

On 27 Aug 2015 at 16:43:31, hfirst 
(happyfirst9...@gmail.com(mailto:happyfirst9...@gmail.com)) wrote:

> I've just run into this same issue as well. I've read the release notes for
> milestone 1 and 2, and been googling and reading all night, and I'm sorry
> that I'm still confused. I am on 7.2 milestone 2 (windows, standalone
> installer)
>  
> The same thing happens to me whether I create a page as an admin or just a
> regular user. As a regular user, I don't see the terminal box and so they
> have no choices, and it makes a mess of the spaces that show up on the home
> page. The only way for me to cleanly create new pages and not mess up the
> home page is as an admin and check off the terminal box.
>  
> Am I doing something wrong or is this still an oustanding issue, all those
> extra spaces still showing up on the webhome page?
>  
> Is the goal that eventually the home page would show a tree? Or just the
> top level?

Correct. The home page is going to be modified to show a document tree (using 
the {{documentTree/}} macro). See http://jira.xwiki.org/browse/XE-1497

Support for Nested Spaces/Documents is not finished yet. FYI, outstanding 
issues:
http://jira.xwiki.org/issues/?jql=labels%20%3D%20NestedSpaces%20and%20resolution%20%3D%20Unresolved

We’re planning to have a first operational version when we release 7.2 final. 
And a polished one by the end of the year.

Thanks
-Vincent

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


Re: [xwiki-users] Creating a new page creates a space instead

2015-08-27 Thread vinc...@massol.net

On 27 Aug 2015 at 17:04:50, hfirst 
(happyfirst9...@gmail.com(mailto:happyfirst9...@gmail.com)) wrote:

> So what do you recommend I do for now?
>  
>  
>  
> 1) Keep manually creating terminal pages as admin so the home page stays 
> usable and when finally fixed, will there be a way to convert those terminal 
> pages into nested documents?

You can simply edit your dashboard and replace the call to {{spaces/}} by a 
call to {{documentTree/}}.

See https://www.evernote.com/l/AHc5lzO4aNBId6cCwf16oxjB9EfjMtcl0Vw

This gives:
https://www.evernote.com/l/AHey7Fx3eLdACImiFoiVqiFKr3JiVlOMMZ8


> 2) Do NOT create terminal pages and just put up with the tons of home page 
> space list rows until a fix comes out? I guess I could just create above the 
> spaces list on the space home page in the content area my own temp links 
> directly to the proper home page of each true valid top level space.
>  
>  
>  
> I like the sound of the tree idea with lazy loading. I just don’t want to set 
> out on a path that leaves me having to recreate a ton of pages when finally 
> fixed.

You’re supposed to create nested pages from now on so there won’t be any need 
to recreate the pages.

Now you’re on a milestone release and as you know this means you shouldn’t use 
this in production and it’s not stable.

If you wish to be on a stable version you should use 7.1.2 instead.

Now we really appreciate that users try the latest milestones because this 
gives us feedback and helps us a lot in preparing for the final release. So if 
you can, please continue on this milestone, upgrade when we release M3 on next 
Monday and give us feedback! :) You’ll find a lot of improvements/changes in 
the UI of M3 and we’d love feedback on that!

Thanks
-Vincent

> From: vmassol [via XWiki] [mailto:ml-node+s475771n7595787...@n2.nabble.com]
> Sent: Thursday, August 27, 2015 10:52 AM
> To: hfirst
> Subject: Re: Creating a new page creates a space instead
>  
>  
>  
> Hi,
>  
> On 27 Aug 2015 at 16:43:31, hfirst ([hidden email](mailto:[hidden email])) 
> wrote:
>  
>  
> > I've just run into this same issue as well. I've read the release notes for
> > milestone 1 and 2, and been googling and reading all night, and I'm sorry
> > that I'm still confused. I am on 7.2 milestone 2 (windows, standalone
> > installer)
> >
> > The same thing happens to me whether I create a page as an admin or just a
> > regular user. As a regular user, I don't see the terminal box and so they
> > have no choices, and it makes a mess of the spaces that show up on the home
> > page. The only way for me to cleanly create new pages and not mess up the
> > home page is as an admin and check off the terminal box.
> >
> > Am I doing something wrong or is this still an oustanding issue, all those
> > extra spaces still showing up on the webhome page?
> >
> > Is the goal that eventually the home page would show a tree? Or just the
> > top level?
>  
>  
> Correct. The home page is going to be modified to show a document tree (using 
> the {{documentTree/}} macro). See http://jira.xwiki.org/browse/XE-1497
>  
> Support for Nested Spaces/Documents is not finished yet. FYI, outstanding 
> issues:
> http://jira.xwiki.org/issues/?jql=labels%20%3D%20NestedSpaces%20and%20resolution%20%3D%20Unresolved
>  
> We’re planning to have a first operational version when we release 7.2 final. 
> And a polished one by the end of the year.
>  
> Thanks
> -Vincent
>  
> ___
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>  
>  
>  
> _
>  
> If you reply to this email, your message will be added to the discussion 
> below:
>  
> http://xwiki.475771.n2.nabble.com/Creating-a-new-page-creates-a-space-instead-tp7595617p7595787.html
>  
> To unsubscribe from Creating a new page creates a space instead, click here .
> NAML
>  
>  
>  
>  
>  
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Creating-a-new-page-creates-a-space-instead-tp7595617p7595788.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


Re: [xwiki-users] Skin change breaks everything

2015-08-28 Thread vinc...@massol.net
Hi,

We have made fixes related to skins in 7.2M3. Maybe you hit that problem.

We’re planning to release 7.2M3 early next week. If you can’t wait you could 
try a snapshot version.

Thanks
-Vincent

On 28 Aug 2015 at 09:28:41, Clemens Klein-Robbenhaar 
(c.robbenh...@espresto.com) wrote:


What does it exactly mean that you cannon get a login page?  
Does the page load forever or is there any error message?  

If you add ?skin=flamingo you can view any page with the flamingo skin,  
no matter what skin is actually set in XWiki.DefaultSkin.  

Clemens  


> Should have added that this is with version 7.2M2  
>  
> On 27/08/2015 20:30, Tim Dudgeon wrote:  
>> I tried installing different skin, and the process doesn't seem to work.  
>> I installed Leiothrix and Silverdrop using the extensions manager.  
>> When I tried to switch the skin on the administration page it didn't  
>> seem to work ("You don't have rights to edit this page"?).  
>> At one point I was able to set the skin back to XWiki.DefaultSkin and  
>> all was OK, but now I've got to the stage that pages don't display at  
>> all. I can't even get a login page.  
>> How to reset the skin back to default?  
>>  
>> Tim  
>>  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] New xwiki install error 500

2015-08-28 Thread vinc...@massol.net
Hi Joshua,

This is the real error below. You have modified hibernate.cfg.xml and you made 
a mistake, producing invalid XML…

Thanks
-Vincent

On 28 Aug 2015 at 18:18:58, Joshua Spiva (jsp...@emdinc.com) wrote:

org.dom4j.DocumentException: Error on line 57 of document : The string "--" is 
not permitted within comments. Nested exception: The string "--" is not 
permitted within comments. 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] HTTP status 500 - xwiki entreprise 7.1.2 on RHEL6/MySql

2015-08-29 Thread vinc...@massol.net
Hi Dan,

The error is:

 ">> java.lang.ClassNotFoundException: com.mysql.jdbc.Driver"

Which means that Java cannot load the MySQL driver (most likely because it’s 
not in the WEB-INF/lib directory). 

Please double-check where you’ve copied the mysql driver jar.

You could also “jar tvf” you driver jar to verify that it contains a 
com.mysql.jdbc.Driver class. 

Hope it helps,
-Vincent

On 29 Aug 2015 at 17:58:26, Dan T (daniel.t...@gmail.com) wrote:

Hi,

I have already placed the MySQL connector jar file in the directory as
requested in the guide.

May be I need to "register" it or something ?

Thanks

> Le 29 août 2015 à 17:28, Ludovic Dubost  a écrit :
>
> Hi
>
> You forgot to install the mysql jar driver.
>
> See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL
>
> Ludovic
> Le 29 août 2015 4:24 PM, "Dan T"  a écrit :
>
>> Hello,
>>
>> After a lot of tests on a debian version (where « everything » is made for
>> us), i would like to implement the 7.1.2 of wiki enterprise to a dev
>> environment following my company actual "standard ». I hope, after some
>> time and tests, push this into production.
>>
>> The base system is composed by :
>>
>> - RHEL 6.7
>> - MySQL
>> - Tomcat6
>> - openjdk 7
>>
>> I have followed the installation guide to configure everything as i think
>> it must be.
>>
>> But at first launch of xwiki, i have obtained an « HTTP STATUS 500 » with
>> the wall of text below.
>>
>> This is the adapted part ot he hibernate.cfg.xml file related to MySQL if
>> needed :
>>
>> 
>> jdbc:mysql://localhost/xwiki
>> xwiki
>> xwiki
>> > name="connection.driver_class">com.mysql.jdbc.Driver
>> > name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect
>> true
>> UTF-8
>> true
>> 20
>> 
>> 
>> 
>> 
>> 
>>
>>
>> I have first tested the "7.2-Milestone 2 » version. I have seen some error
>> like this one with other people and the milestone 3, with apparently
>> correction to their errors, is not already available as a war file. So I
>> have switched back to the the stable version. Same error…
>>
>> Could you please point me to the right direction with this ?
>>
>> Thanks
>>
>> Daniel.
>>
>> *type* Exception report
>>
>> *message*
>>
>> *description* *The server encountered an internal error () that prevented
>> it from fulfilling this request.*
>>
>> *exception*
>>
>> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error
>> number 11007 in 0: Failed to extract Entity Resource Reference from
>> URL [http://xxx.xxx.xxx.xxx:8080/xwiki/bin/view/Main/]
>>
>> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
>>
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427)
>>
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
>>
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
>>
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
>>
>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
>>
>> org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
>>
>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
>>
>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
>>
>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
>>
>> org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
>>
>>
>> *root cause*
>>
>> com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to
>> extract Entity Resource Reference from URL
>> [http://xxx.xxx.xxx.xxx:8080/xwiki/bin/view/Main/]
>> com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:696)
>> com.xpn.xwiki.XWiki.getXWiki(XWiki.java:640)
>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:225)
>> com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:180)
>>
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
>>
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
>>
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
>>
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
>>
>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
>>
>> org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
>>
>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)

Re: [xwiki-users] HTTP status 500 - xwiki entreprise 7.1.2 on RHEL6/MySql

2015-08-30 Thread vinc...@massol.net
e)
> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> > java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> > com.mysql.jdbc.Util.handleNewInstance(Util.java:400)
> > com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)
> > com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325)
> > org.apache.commons.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:39)
> > org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:256)
> > org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2301)
> > org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2287)
> > org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2038)
> > org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
> > com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:215)
> > org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143)
> > org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:84)
> > org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:459)
> > org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:90)
> > org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)
> > org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)
> > org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)
> > com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:253)
> > com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:681)
> > com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:700)
> > com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:299)
> > com.xpn.xwiki.XWiki.getDocument(XWiki.java:1504)
> > com.xpn.xwiki.XWiki.getDocument(XWiki.java:1551)
> > com.xpn.xwiki.XWiki.getXClass(XWiki.java:5547)
> > com.xpn.xwiki.XWiki.getClass(XWiki.java:5560)
> > com.xpn.xwiki.doc.DefaultDocumentAccessBridge.isPropertyCustomMapped(DefaultDocumentAccessBridge.java:486)
> > org.xwiki.query.xwql.internal.QueryContext$PropertyInfo.isCustomMapped(QueryContext.java:153)
> > org.xwiki.query.xwql.internal.QueryContext$ObjectInfo.isCustomMapped(QueryContext.java:122)
> > org.xwiki.query.xwql.internal.hql.ObjectPrinter.print(ObjectPrinter.java:37)
> > org.xwiki.query.xwql.internal.hql.Printer.print(Printer.java:70)
> > org.xwiki.query.xwql.internal.hql.XWQLtoHQLTranslator.translate(XWQLtoHQLTranslator.java:61)
> > org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:79)
> > org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71)
> > org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:248)
> > org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocumentReference(DefaultWikiDescriptorDocumentHelper.java:120)
> > org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocument(DefaultWikiDescriptorDocumentHelper.java:139)
> > org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager.getByAlias(DefaultWikiDescriptorManager.java:144)
> > org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:76)
> > org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61)
> > org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.extract(DomainWikiReferenceExtractor.java:47)
> > org.xwiki.url.internal.standard.entity.BinEntityResourceReferenceResolver.extractWikiReference(BinEntityResourceReferenceResolver.java:51)
> > org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:60)
> > org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:44)
> > org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:61)
> > org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:47)
> > org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:68)
> > org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:44)
> > org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:93)
> > org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:48)
> > com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:693)
> > com.xpn.xwiki.XWiki.getXWiki(XWiki.java:640)
> > com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:225)
> > com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:180)
> > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
> > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
> > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
> > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
> > org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
> > org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
> > com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
> > org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
> > org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
> > org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
> >
> >> Le 29 août 2015 à 19:31, vinc...@massol.net a écrit :
> >>
> >> Hi Dan,
> >>
> >> The error is:
> >>
> >> ">> java.lang.ClassNotFoundException: com.mysql.jdbc.Driver"
> >>
> >> Which means that Java cannot load the MySQL driver (most likely because 
> >> it’s not in the WEB-INF/lib directory).
> >>
> >> Please double-check where you’ve copied the mysql driver jar.
> >>
> >> You could also “jar tvf” you driver jar to verify that it contains a 
> >> com.mysql.jdbc.Driver class.
> >>
> >> Hope it helps,
> >> -Vincent
> >>
> >> On 29 Aug 2015 at 17:58:26, Dan T (daniel.t...@gmail.com ) wrote:
> >>
> >>> ...
>  
> ___
> 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-30 Thread vinc...@massol.net
Hi Mohit,


On 30 Aug 2015 at 10:21:05, Mohit Gupta 
(motgu...@gmail.com(mailto:motgu...@gmail.com)) wrote:

> Hi Vincet,
>  
> Which location i will get the 7.2-milestone-3 war file. i went to 
> http://enterprise.xwiki.org/xwiki/bin/view/Main/Download but latest version 
> to download is still 
> xwiki-enterprise-web-7.2-milestone-2.war(http://www.xwiki.org/xwiki/bin/view/DownloadCode/DownloadFeedback?downloadLink=http://download.forge.ow2.org/xwiki/xwiki-enterprise-web-7.2-milestone-2.war&projectType=Development&projectVersion=7.2-milestone-2&projectID=1)
>  


Actually if you check more 
http://enterprise.xwiki.org/xwiki/bin/view/Main/Download#HDevelopmentBuilds 
you’ll see you have dev builds there.

Thanks
-Vincent

>  
> On Thu, Aug 27, 2015 at 4:33 PM, 
> vinc...@massol.net(mailto:vinc...@massol.net) wrote:
> > Hi Mohit,
> >  
> > My fix is NOT in 7.2-milestone-2!
> >  
> > See http://jira.xwiki.org/browse/XWIKI-12425 it says fix version = 
> > 7.2-milestone-3
> >  
> > Thanks
> > -Vincent
> >  
> > PS: Please always reply to the list!
> >  
> >  
> > On 27 Aug 2015 at 12:31:07, Mohit Gupta 
> > (motgu...@gmail.com(mailto:motgu...@gmail.com)(mailto:motgu...@gmail.com)) 
> > wrote:
> >  
> > > Thanks vincet.
> > >
> > > After applying your xwiki.oracle.hbm.xml in 
> > > xwiki-platform-legacy-oldcore-7.2-milestone-2 .jar that problem went away 
> > > But i am getting below error
> > >
> > >
> > > root cause
> > >
> > > org.xwiki.query.QueryException: Exception while executing query. Query 
> > > statement = [ select doc.fullName from XWikiDocument as doc , BaseObject 
> > > as _o1 where ( doc.object ( XWiki.XWikiServerClass ) . server = 
> > > :wikiAlias and doc.name(http://doc.name)(http://doc.name) like 
> > > 'XWikiServer%' ) and 
> > > doc.fullName=_o1.name(http://o1.name)(http://o1.name) and 
> > > _o1.className='XWiki.XWikiServerClass' ]
> > > com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:160)
> > > org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71)
> > > org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287)
> > > org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:118)
> > > org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71)
> > > org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287)
> > > org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocumentReference(DefaultWikiDescriptorDocumentHelper.java:121)
> > > org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocument(DefaultWikiDescriptorDocumentHelper.java:140)
> > > org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager.getByAlias(DefaultWikiDescriptorManager.java:146)
> > > org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:67)
> > > org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61)
> > > org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.extract(DomainWikiReferenceExtractor.java:47)
> > > org.xwiki.url.internal.standard.entity.BinEntityResourceReferenceResolver.extractWikiReference(BinEntityResourceReferenceResolver.java:51)
> > > org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:87)
> > > org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:51)
> > > org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:61)
> > > org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:47)
> > > org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:64)
> > > org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:43)
> > > org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:93)
> > > org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:48)
> > > com.xpn.xwiki.XWiki.initializeResourceFromURL(

Re: [xwiki-users] HTTP status 500 - xwiki entreprise 7.1.2 on RHEL6/MySql

2015-08-30 Thread vinc...@massol.net
Ah, but that’s a very different error, not related to the DB:

Caused by: java.lang.ClassNotFoundException: javax.servlet.AsyncContext

This means you’re using a too old version of your Servlet Container which 
doesn’t support Servlet 3.0.

XWiki 7.x requires Servlet 3.0.1, see 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisites

At least your DB is now correctly configured apparently :)

Thanks
-Vincent


On 30 Aug 2015 at 11:03:21, Daniel Tibô 
(daniel.t...@gmail.com(mailto:daniel.t...@gmail.com)) wrote:

> Hi,
>  
> As requested : http://pastebin.com/Cn5cmpqc  
>  
> I’ve uncommented the 2 previous commented lines with DBCP but there is no 
> change.
>  
> For now I’m stuck with this : http://pastebin.com/6UzFgAzr  
>  
> Thanks
>  
> Daniel
>  
> > Le 30 août 2015 à 10:38, vinc...@massol.net a écrit :
> >
> > Hi,
> >
> > So:
> >
> > * Could you show the line you have in hibernate.cfg.xml for the 
> > “connection.url” property?
> > * You should not comment or uncomment anything else in the file (unless you 
> > know what you’re doing). The DBCP config is needed for example. You should 
> > try to have the file the same the original version except the MySQL part 
> > commented out and the default HSQLDB part commented.
> > * Best would be if you could paste the hibernate file you’re using on 
> > pastebin for example (or any such tools) so that we could review it.
> >
> > Thanks
> > -Vincent
> >
> > On 29 Aug 2015 at 22:47:59, Daniel Tibô (daniel.t...@gmail.com 
> > (mailto:daniel.t...@gmail.com )) wrote:
> >
> > > Extra information : I can connect myself to the database with the xwiki 
> > > user with a simple « mysql -u xwiki -p « .
> > >
> > > Thx
> > >
> > > > Le 29 août 2015 à 22:04, Daniel Tibô a écrit :
> > > >
> > > > Hi Vincent,
> > > >
> > > > There was, indeed, a problem with the connector.
> > > >
> > > > I’ve forgot to place it after the second installation…
> > > >
> > > > But, when I have double checked if i had the right version from oracle, 
> > > > i have seen that the 5.0.8 i had (direct link from the installation 
> > > > guide) is not « recommended » for my version of mysql (5.1).
> > > > ( https://dev.mysql.com/doc/connector-j/en/connector-j-versions.html )
> > > >
> > > > So i’ve tried with the « 5.1.36 » and… I have something else now..
> > > >
> > > > It’s related to the database access for the xwiki user maybe ? ( 
> > > > java.sql.SQLException: Access denied for user 'xwiki'@'127.0.0.1' 
> > > > (using password: YES) )
> > > >
> > > >
> > > > with : "org.hibernate.HibernateException: Could not create a DBCP pool. 
> > > > »
> > > >
> > > > I’ve tried to comment the 2 line :
> > > >
> > > > true
> > > > 20
> > > >
> > > > but without success due to the previous « access denied » i think. (do 
> > > > i have to leave it commented for the futur ?)
> > > >
> > > > Thanks for your help !
> > > >
> > > > Daniel
> > > >
> > > > type Exception report
> > > >
> > > > message
> > > >
> > > > description The server encountered an internal error () that prevented 
> > > > it from fulfilling this request.
> > > >
> > > > exception
> > > >
> > > > javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error 
> > > > number 11007 in 0: Failed to extract Entity Resource Reference from URL 
> > > > [http://xxx.xxx.xxx.xxx:8080/xwiki/bin/view/Main/ ]
> > > > org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
> > > > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427)
> > > > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
> > > > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
> > > > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > > > com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
> > > > org.xwiki.wysiwyg.server.filter.ConversionFilter.

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

2015-08-30 Thread vinc...@massol.net

On 30 Aug 2015 at 11:51:01, Mohit Gupta 
(motgu...@gmail.com(mailto:motgu...@gmail.com)) wrote:

> Vincet,
>  
> I believe i need take "7.2-SNAPSHOT/" from 
> "http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/?C=N;O=A";.
>  Is that correct ?

Yes, if you need the WAR distribution, you should take the latest snapshot from 
http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/7.2-SNAPSHOT/

Thanks
-Vincent

> On Sun, Aug 30, 2015 at 2:12 PM, 
> vinc...@massol.net(mailto:vinc...@massol.net) wrote:
> > Hi Mohit,
> >  
> >  
> > On 30 Aug 2015 at 10:21:05, Mohit Gupta 
> > (motgu...@gmail.com(mailto:motgu...@gmail.com)(mailto:motgu...@gmail.com)) 
> > wrote:
> >  
> > > Hi Vincet,
> > >
> > > Which location i will get the 7.2-milestone-3 war file. i went to 
> > > http://enterprise.xwiki.org/xwiki/bin/view/Main/Download but latest 
> > > version to download is still 
> > > xwiki-enterprise-web-7.2-milestone-2.war(http://www.xwiki.org/xwiki/bin/view/DownloadCode/DownloadFeedback?downloadLink=http://download.forge.ow2.org/xwiki/xwiki-enterprise-web-7.2-milestone-2.war&projectType=Development&projectVersion=7.2-milestone-2&projectID=1)
> > >   
> >  
> >  
> > Actually if you check more 
> > http://enterprise.xwiki.org/xwiki/bin/view/Main/Download#HDevelopmentBuilds 
> > you’ll see you have dev builds there.
> >  
> > Thanks
> > -Vincent
> >  
> > >
> > > On Thu, Aug 27, 2015 at 4:33 PM, 
> > > vinc...@massol.net(mailto:vinc...@massol.net)(mailto:vinc...@massol.net) 
> > > wrote:
> > > > Hi Mohit,
> > > >
> > > > My fix is NOT in 7.2-milestone-2!
> > > >
> > > > See http://jira.xwiki.org/browse/XWIKI-12425 it says fix version = 
> > > > 7.2-milestone-3
> > > >
> > > > Thanks
> > > > -Vincent
> > > >
> > > > PS: Please always reply to the list!
> > > >
> > > >
> > > > On 27 Aug 2015 at 12:31:07, Mohit Gupta 
> > > > (motgu...@gmail.com(mailto:motgu...@gmail.com)(mailto:motgu...@gmail.com)(mailto:motgu...@gmail.com))
> > > >  wrote:
> > > >
> > > > > Thanks vincet.
> > > > >
> > > > > After applying your xwiki.oracle.hbm.xml in 
> > > > > xwiki-platform-legacy-oldcore-7.2-milestone-2 .jar that problem went 
> > > > > away But i am getting below error
> > > > >
> > > > >
> > > > > root cause
> > > > >
> > > > > org.xwiki.query.QueryException: Exception while executing query. 
> > > > > Query statement = [ select doc.fullName from XWikiDocument as doc , 
> > > > > BaseObject as _o1 where ( doc.object ( XWiki.XWikiServerClass ) . 
> > > > > server = :wikiAlias and 
> > > > > doc.name(http://doc.name)(http://doc.name)(http://doc.name) like 
> > > > > 'XWikiServer%' ) and 
> > > > > doc.fullName=_o1.name(http://o1.name)(http://o1.name)(http://o1.name) 
> > > > > and _o1.className='XWiki.XWikiServerClass' ]
> > > > > com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:160)
> > > > > org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71)
> > > > > org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287)
> > > > > org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:118)
> > > > > org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71)
> > > > > org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287)
> > > > > org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocumentReference(DefaultWikiDescriptorDocumentHelper.java:121)
> > > > > org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocument(DefaultWikiDescriptorDocumentHelper.java:140)
> > > > > org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager.getByAlias(DefaultWikiDescriptorManager.java:146)
> > > > > org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:67)
> > > > > org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.j

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

2015-08-30 Thread vinc...@massol.net
Hi Johan,

On 30 Aug 2015 at 14:40:38, Johan Eriksson 
(jo...@moulinsart.org(mailto:jo...@moulinsart.org)) wrote:

> Hi!
>  
> I performed my first install ever of xwiki today using the latest
> stable. Running with mysql (on separate hosts) as database. I've
> installed my servlet container on Centos 7, with java and tomcat
> versions as below:

What version of XWiki did you install? 7.1.2?

> [root@tomcat-01]# java -version
> java version "1.7.0_85"
> OpenJDK Runtime Environment (rhel-2.6.1.2.el7_1-x86_64 u85-b01)
> OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)
>  
> Installed Packages
> Name : tomcat
> Arch : noarch
> Version : 7.0.54
> Release : 2.el7_1
>  
> Since this is my first xwiki installation ever, I would like to share my
> experience, problems I faced and unanswered questions below.

That’s great that you are doing so; this helps us improve XWiki and the 
documentation.

> From http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat
> I thought that as per example, java settings:
>  
> JAVA_OPTS="-Xmx800m -XX:MaxPermSize=192m"
>  
> would allow me to install and play around with the application, since
> that recommendation is higher than the "small installation" (512M)
> reference found here
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory
>  
> * My first problem appeared when I right after successful installation,
> in the sandbox, created an empty testpage with one attachment of 3M in
> size. I got an OutOfMemory exception when deleting that attachment.
> - Are the documented java memory recommendations still applicable or
> should they be considered as outdated for latest stable?
>  
> so I updated the java settings to solve the problem:
> JAVA_OPTS="-Xmx1400m -XX:MaxPermSize=192m”

So the memory requirements is indicated on 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisites

As you can see there, for medium installs we recommend -Xmx1024m 
-XX:MaxPermSize=196m (and -Xmx512m -XX:MaxPermSize=196m for small).

Indeed in your case you should use the small install recommendation since at 
this stage it’s only to play with XWiki.

Now your problem is with attachments. If you check 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory you’ll 
see a warning box with explanations about the memory requirements and a link 
that leads you http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments

I’ve also checked 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat and it 
does point to the same memory doc as I referenced above, so normally you should 
have seen the issue with the memory required for large attachments.

What we need to do in the future is enable the filesystem store by default but 
we currently have a limitation with it (as indicated on that page): "restoring 
attachments from the recycle bin via UI”. This is why we haven’t made it the 
default just yet.

> * My second problem appeared when I created my first page. The intention
> was to create a page with a bunch of image attachments, using an
> extension for displaying these images as an image gallery. When
> 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.

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

2015-08-30 Thread vinc...@massol.net
 




On 30 Aug 2015 at 15:15:45, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Hi Johan,
>  
> On 30 Aug 2015 at 14:40:38, Johan Eriksson 
> (jo...@moulinsart.org(mailto:jo...@moulinsart.org)) wrote:
>  
> > Hi!
> >
> > I performed my first install ever of xwiki today using the latest
> > stable. Running with mysql (on separate hosts) as database. I've
> > installed my servlet container on Centos 7, with java and tomcat
> > versions as below:  
>  
> What version of XWiki did you install? 7.1.2?  
>  
> > [root@tomcat-01]# java -version
> > java version "1.7.0_85"
> > OpenJDK Runtime Environment (rhel-2.6.1.2.el7_1-x86_64 u85-b01)
> > OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)
> >
> > Installed Packages
> > Name : tomcat
> > Arch : noarch
> > Version : 7.0.54
> > Release : 2.el7_1
> >
> > Since this is my first xwiki installation ever, I would like to share my
> > experience, problems I faced and unanswered questions below.  
>  
> That’s great that you are doing so; this helps us improve XWiki and the 
> documentation.  
>  
> > From http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat
> > I thought that as per example, java settings:
> >
> > JAVA_OPTS="-Xmx800m -XX:MaxPermSize=192m"
> >
> > would allow me to install and play around with the application, since
> > that recommendation is higher than the "small installation" (512M)
> > reference found here
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory
> >
> > * My first problem appeared when I right after successful installation,
> > in the sandbox, created an empty testpage with one attachment of 3M in
> > size. I got an OutOfMemory exception when deleting that attachment.
> > - Are the documented java memory recommendations still applicable or
> > should they be considered as outdated for latest stable?
> >
> > so I updated the java settings to solve the problem:
> > JAVA_OPTS="-Xmx1400m -XX:MaxPermSize=192m”  
>  
> So the memory requirements is indicated on 
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisites
>   
>  
> As you can see there, for medium installs we recommend -Xmx1024m 
> -XX:MaxPermSize=196m (and -Xmx512m -XX:MaxPermSize=196m for small).  
>  
> Indeed in your case you should use the small install recommendation since at 
> this stage it’s only to play with XWiki.  
>  
> Now your problem is with attachments. If you check 
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory 
> you’ll see a warning box with explanations about the memory requirements and 
> a link that leads you 
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments  
>  
> I’ve also checked 
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat and it 
> does point to the same memory doc as I referenced above, so normally you 
> should have seen the issue with the memory required for large attachments.  
>  
> What we need to do in the future is enable the filesystem store by default 
> but we currently have a limitation with it (as indicated on that page): 
> "restoring attachments from the recycle bin via UI”. This is why we haven’t 
> made it the default just yet.  
>  
> > * My second problem appeared when I created my first page. The intention
> > was to create a page with a bunch of image attachments, using an
> > extension for displaying these images as an image gallery. When
> > 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

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

2015-08-30 Thread vinc...@massol.net
See below,


On 30 Aug 2015 at 15:15:45, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Hi Johan,
>  
> On 30 Aug 2015 at 14:40:38, Johan Eriksson 
> (jo...@moulinsart.org(mailto:jo...@moulinsart.org)) wrote:
>  
> > Hi!
> >
> > I performed my first install ever of xwiki today using the latest
> > stable. Running with mysql (on separate hosts) as database. I've
> > installed my servlet container on Centos 7, with java and tomcat
> > versions as below:  
>  
> What version of XWiki did you install? 7.1.2?  
>  
> > [root@tomcat-01]# java -version
> > java version "1.7.0_85"
> > OpenJDK Runtime Environment (rhel-2.6.1.2.el7_1-x86_64 u85-b01)
> > OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)
> >
> > Installed Packages
> > Name : tomcat
> > Arch : noarch
> > Version : 7.0.54
> > Release : 2.el7_1
> >
> > Since this is my first xwiki installation ever, I would like to share my
> > experience, problems I faced and unanswered questions below.  
>  
> That’s great that you are doing so; this helps us improve XWiki and the 
> documentation.  
>  
> > From http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat
> > I thought that as per example, java settings:
> >
> > JAVA_OPTS="-Xmx800m -XX:MaxPermSize=192m"
> >
> > would allow me to install and play around with the application, since
> > that recommendation is higher than the "small installation" (512M)
> > reference found here
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory
> >
> > * My first problem appeared when I right after successful installation,
> > in the sandbox, created an empty testpage with one attachment of 3M in
> > size. I got an OutOfMemory exception when deleting that attachment.
> > - Are the documented java memory recommendations still applicable or
> > should they be considered as outdated for latest stable?
> >
> > so I updated the java settings to solve the problem:
> > JAVA_OPTS="-Xmx1400m -XX:MaxPermSize=192m”  
>  
> So the memory requirements is indicated on 
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisites
>   
>  
> As you can see there, for medium installs we recommend -Xmx1024m 
> -XX:MaxPermSize=196m (and -Xmx512m -XX:MaxPermSize=196m for small).  
>  
> Indeed in your case you should use the small install recommendation since at 
> this stage it’s only to play with XWiki.  
>  
> Now your problem is with attachments. If you check 
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory 
> you’ll see a warning box with explanations about the memory requirements and 
> a link that leads you 
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments  
>  
> I’ve also checked 
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat and it 
> does point to the same memory doc as I referenced above, so normally you 
> should have seen the issue with the memory required for large attachments.  
>  
> What we need to do in the future is enable the filesystem store by default 
> but we currently have a limitation with it (as indicated on that page): 
> "restoring attachments from the recycle bin via UI”. This is why we haven’t 
> made it the default just yet.  
>  
> > * My second problem appeared when I created my first page. The intention
> > was to create a page with a bunch of image attachments, using an
> > extension for displaying these images as an image gallery. When
> > 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 

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

2015-08-30 Thread vinc...@massol.net
 




On 30 Aug 2015 at 15:28:30, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> See below,
>  
>  
> On 30 Aug 2015 at 15:15:45, vinc...@massol.net 
> (vinc...@massol.net(mailto:vinc...@massol.net)) wrote:
>  
> > Hi Johan,
> >
> > On 30 Aug 2015 at 14:40:38, Johan Eriksson 
> > (jo...@moulinsart.org(mailto:jo...@moulinsart.org)) wrote:
> >
> > > Hi!
> > >
> > > I performed my first install ever of xwiki today using the latest
> > > stable. Running with mysql (on separate hosts) as database. I've
> > > installed my servlet container on Centos 7, with java and tomcat
> > > versions as below:
> >
> > What version of XWiki did you install? 7.1.2?
> >
> > > [root@tomcat-01]# java -version
> > > java version "1.7.0_85"
> > > OpenJDK Runtime Environment (rhel-2.6.1.2.el7_1-x86_64 u85-b01)
> > > OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)
> > >
> > > Installed Packages
> > > Name : tomcat
> > > Arch : noarch
> > > Version : 7.0.54
> > > Release : 2.el7_1
> > >
> > > Since this is my first xwiki installation ever, I would like to share my
> > > experience, problems I faced and unanswered questions below.
> >
> > That’s great that you are doing so; this helps us improve XWiki and the 
> > documentation.
> >
> > > From 
> > > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat
> > > I thought that as per example, java settings:
> > >
> > > JAVA_OPTS="-Xmx800m -XX:MaxPermSize=192m"
> > >
> > > would allow me to install and play around with the application, since
> > > that recommendation is higher than the "small installation" (512M)
> > > reference found here
> > > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory
> > >
> > > * My first problem appeared when I right after successful installation,
> > > in the sandbox, created an empty testpage with one attachment of 3M in
> > > size. I got an OutOfMemory exception when deleting that attachment.
> > > - Are the documented java memory recommendations still applicable or
> > > should they be considered as outdated for latest stable?
> > >
> > > so I updated the java settings to solve the problem:
> > > JAVA_OPTS="-Xmx1400m -XX:MaxPermSize=192m”
> >
> > So the memory requirements is indicated on 
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisites
> >
> > As you can see there, for medium installs we recommend -Xmx1024m 
> > -XX:MaxPermSize=196m (and -Xmx512m -XX:MaxPermSize=196m for small).
> >
> > Indeed in your case you should use the small install recommendation since 
> > at this stage it’s only to play with XWiki.
> >
> > Now your problem is with attachments. If you check 
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HMemory 
> > you’ll see a warning box with explanations about the memory requirements 
> > and a link that leads you 
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments
> >
> > I’ve also checked 
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat and 
> > it does point to the same memory doc as I referenced above, so normally you 
> > should have seen the issue with the memory required for large attachments.
> >
> > What we need to do in the future is enable the filesystem store by default 
> > but we currently have a limitation with it (as indicated on that page): 
> > "restoring attachments from the recycle bin via UI”. This is why we haven’t 
> > made it the default just yet.
> >
> > > * My second problem appeared when I created my first page. The intention
> > > was to create a page with a bunch of image attachments, using an
> > > extension for displaying these images as an image gallery. When
> > > 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 

Re: [xwiki-users] Cleaning the email status list in admin

2015-09-02 Thread vinc...@massol.net
Hi Stephane,

On 2 Sep 2015 at 17:59:52, Stéphane LASSIRE 
(slass...@cesap.asso.fr(mailto:slass...@cesap.asso.fr)) wrote:

> Hello,
>  
>  
>  
> I looked inside the admin menu and found the option « Email Status »
>  
> There are 227 pages with lot of watchlist success informations.
>  
>  
>  
> Is there a way to clean this long list of events ?
>  
> Xwiki Release 7.1.1

This not yet implemented in the UI (see 
http://jira.xwiki.org/browse/XWIKI-11653) but there’s a script service for 
deleting mail statuses.

Here’s a quick example I’ve created for you that deletes all mail statuses (you 
could adapt it to delete only mail statuses matching some criteria):

http://jira.xwiki.org/browse/XWIKI-11653?focusedCommentId=87701&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-87701

Hope it helps,
-Vincent


> Thanks
>  
>  
>  
>  
>  
> Cordialement
>  
>  
>  
> Stéphane Lassire
>  
> Chargé de l'informatique et de la communication
>  
> Tél direct : 01 42 85 81 87
>  
> Courriel : slass...@cesap.asso.fr

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


Re: [xwiki-users] Cleaning the email status list in admin

2015-09-02 Thread vinc...@massol.net



On 2 Sep 2015 at 20:16:37, Eduard Moraru 
(enygma2...@gmail.com(mailto:enygma2...@gmail.com)) wrote:

> Hi,
>  
> Please have a look at "Administration > Email > Mail Sending > Discard
> Success Statuses" and set it to "No". Now the status of successfully sent
> mails will no longer be displayed.

Note that by default it’s set to No so someone must have turned it on in 
Stephane’s XWiki instance.

> Seems that we`re missing the documentation for this feature on the
> extension page [1] which needs to be updated.

It’s documented at the config level at 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Mail+Sender+Storage#HConfiguration

I’ll update the documentation at [1] tomorrow, thanks for noticing Edy.

Thanks
-Vincent

>  
> Hope this helps,
> Eduard
>  
> --
> [1]
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Mail+Application#HMailSending
>  
> On Wed, Sep 2, 2015 at 6:59 PM, Stéphane LASSIRE  
> wrote:
>  
> > Hello,
> >
> >
> >
> > I looked inside the admin menu and found the option « Email Status »
> >
> > There are 227 pages with lot of watchlist success informations.
> >
> >
> >
> > Is there a way to clean this long list of events ?
> >
> > Xwiki Release 7.1.1
> >
> >
> >
> > Thanks
> >
> >
> >
> >
> >
> > Cordialement
> >
> >
> >
> > Stéphane Lassire
> >
> > Chargé de l'informatique et de la communication
> >
> > Tél direct : 01 42 85 81 87
> >
> > Courriel : slass...@cesap.asso.fr
> >
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Tracking access/downloads of attachments by user name

2015-09-03 Thread vinc...@massol.net
Hi Assia, 


On 31 Aug 2015 at 19:01:29, Assia Alexandrova 
(aalexandr...@fortlauderdale.gov(mailto:aalexandr...@fortlauderdale.gov)) wrote:

> Hello, I am interested in tracking who downloaded attachments from specific 
> wiki pages. I saw this isn't available in the Stats app. Is this 
> functionality available in any other module/extension?

I would recommend that you use an external tool like Piwiki, instead of the 
default stats app. This should allow you to have more statistics. Using that 
you can track access to URL containing “/download/“ for tracking downloading 
attachments.

See also 
http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+Application+-+Piwik+Extension

Hope it helps,
-Vincent


> Thanks,
>  
> Assia E. Alexandrova
> Sr. Technology Strategist
> Information Management Division
> Fort Lauderdale Police Department
> 1300 West Broward Blvd.
> Fort Lauderdale, Florida 33312
> Tel.: (954) 828-5867
> aalexandr...@fortlauderdale.gov

___
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 vinc...@massol.net
 
Hi,


On 3 Sep 2015 at 15:49:55, qvendeville 
(quentin.vendevi...@capgemini.com(mailto:quentin.vendevi...@capgemini.com)) 
wrote:

> Hi,
>  
> I try to rename document to put them in the same space.
> I did it with a groovy script but i have a problem ; documents which contain
> dot are not renamed.
>  
> This is my script :
>  
> {{groovy}}
> def context = xcontext.getContext();
> def xwiki = context.getWiki();
> String spaceDestination = "NewSpace"
> def spaceNameList = ["Space1","Space2","Space3"];
> def document = "";
> for (spaceName in spaceNameList)
> {
> for(docName in xwiki.getSpaceDocsName(spaceName, context))
> {
> document = xwiki.getDocument(spaceName+"."+docName,
> context);
> if (docName=="WebHome")
> {
> document.setParent(spaceDestination+".WebHome");
> document.rename(spaceDestination+"."+spaceName,
> context);
> }
> else
> {
> //The problem appears here
> document.rename(spaceDestination+"."+docName, context);
> }
> }
> }
>  
> {{/groovy}}

Two comments:

1) If you’re a on recent version of XWiki you should use the Refactoring script 
service: http://extensions.xwiki.org/xwiki/bin/view/Extension/Refactoring+Module
2) You should not manually create references, you should use the model script 
service for this, see 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Model+Module#HScriptServiceAPI

Thanks
-Vincent

> I have already tried to espace the dot on the docName but it didn't work.
>  
> Thank you,
>  
> Quentin
>  
>  
>  
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Rename-document-with-dot-in-groovy-tp7595887.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


Re: [xwiki-users] Does XWIKI Support Oracle12c?

2015-09-04 Thread vinc...@massol.net
Hi Bastian,

On 4 Sep 2015 at 10:55:34, ruschhauptb 
(bastian.ruschha...@bva.bund.de(mailto:bastian.ruschha...@bva.bund.de)) wrote:

> Hello,
>  
> we try to run XWIKI with an Oracle 12c Database, but have not been succesful
> yet.
>  
> We changed the property in the hibernate.cfg.xml to
> org.hibernate.dialect.Oracle12cDialect
>  
> but we only get this error:

[snip]

> 11 common frames omitted\nCaused by: java.lang.ClassNotFoundException:
> org.hibernate.dialect.Oracle12cDialect\n\tat

This is because this hibernate dialect doesn’t exist in Hibernate 3.6.9 Final 
that we use. This Hibernate issue 
https://hibernate.atlassian.net/browse/HHH-9044 suggests that a Oracle 12c 
dialect has been introduced only in Hibernate 5.0.0. However maybe using 
org.hibernate.dialect.Oracle10gDialect will work. Have you tried using that 
dialect?

[snip]

> Does XWIKI support oracle12c? This artikel
>  
> says that only 11.x is supported, but the article was updated the in 2014
> the last time.
>  
> If there is a way to run xwiki with an oracle 12c database, what do we have
> to do?

I personally haven’t tried XWiki with Oracle 12 so I don’t know. Let us know if 
the suggestion above works.

Thanks
-Vincent

> thanks for your help
>  
> best regards
>  
> Bastian
>  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Tracking access/downloads of attachments by user name

2015-09-04 Thread vinc...@massol.net
Hi,


On 4 Sep 2015 at 21:08:47, Assia Alexandrova 
(aalexandr...@fortlauderdale.gov(mailto:aalexandr...@fortlauderdale.gov)) wrote:

>  
> Thank you, Vincent,
>  
>  
>  
>  
>  
> Do I need to setup a Piwik account of any sort? The documentation refers to 
> getting a site ID from the Piwik Admin….

I haven’t used Piwiki myself but the documentation at 
http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+Application+-+Piwik+Extension
 says that piwiki needs to be installed. It also points to http://piwik.org/ 
which contains all the instructions to use Piwik.

Thanks
-Vincent

> Thank you very much J
>  
>  
> -Assia
>  
>  
>  
>  
>  
> Assia E. Alexandrova
>  
>  
> Sr. Technology Strategist
>  
>  
> Information Management Division
>  
>  
> Fort Lauderdale Police Department
>  
>  
> 1300 West Broward Blvd.
>  
>  
> Fort Lauderdale, Florida 33312
>  
>  
> Tel.: (954) 828-5867
>  
>  
> aalexandr...@fortlauderdale.gov(mailto:aalexandr...@fortlauderdale.gov)
>  
>  
>  
>  
>  
> This e-mail and any files transmitted with it are confidential and are 
> intended solely for the use of the individual or entity to which they are 
> addressed. This communication may contain material protected by the 
> attorney-client privilege. If you are not the intended recipient, you are 
> hereby notified that any disclosure, photocopying or distribution of these 
> contents is unauthorized and prohibited by law. If you are not the intended 
> recipient or the person responsible for delivering the e-mail to the intended 
> recipient, be advised that you have received the e-mail in error; please 
> immediately notify the sender by replying to this e-mail and placing 
> "INCORRECT DESTINATION ADDRESS" in the subject line.
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> From: Vincent Massol [mailto:vmas...@gmail.com] On Behalf Of 
> vinc...@massol.net
> Sent: Thursday, September 03, 2015 07:49 AM
> To: XWiki Users
> Cc: Assia Alexandrova
> Subject: Re: [xwiki-users] Tracking access/downloads of attachments by user 
> name
>  
>  
>  
>  
>  
>  
>  
> Hi Assia,  
>  
>  
>  
>  
>  
> On 31 Aug 2015 at 19:01:29, Assia Alexandrova 
> (aalexandr...@fortlauderdale.gov(mailto:aalexandr...@fortlauderdale.gov))(mailto:aalexandr...@fortlauderdale.gov(mailto:aalexandr...@fortlauderdale.gov)))
>  wrote:
>  
> > Hello, I am interested in tracking who downloaded attachments from specific 
> > wiki pages. I saw this isn't available in the Stats app. Is this 
> > functionality available in any other module/extension?
>  
>  
>  
>  
>  
>  
> I would recommend that you use an external tool like Piwiki, instead of the 
> default stats app. This should allow you to have more statistics. Using that 
> you can track access to URL containing “/download/“ for tracking downloading 
> attachments.
>  
>  
>  
>  
>  
>  
>  
> See also 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+Application+-+Piwik+Extension
>  
>  
>  
>  
>  
>  
>  
> Hope it helps,
>  
>  
>  
> -Vincent
>  
>  
>  
>  
>  
>  
>  
>  
> > Thanks,
> >
> > Assia E. Alexandrova
> > Sr. Technology Strategist
> > Information Management Division
> > Fort Lauderdale Police Department
> > 1300 West Broward Blvd.
> > Fort Lauderdale, Florida 33312
> > Tel.: (954) 828-5867
> > aalexandr...@fortlauderdale.gov(mailto:aalexandr...@fortlauderdale.gov)
>  
>  
>  
>  
>  
>  
>  
>  


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


Re: [xwiki-users] FAQ Application tutorial is incomprehensible

2015-09-04 Thread vinc...@massol.net
Hi Alex,

On 4 Sep 2015 at 19:56:31, Alex Henrie 
(alexhenri...@gmail.com(mailto:alexhenri...@gmail.com)) wrote:

> 2015-09-02 7:30 GMT-06:00 Eduard Moraru :
> > There is no such restriction or best practice. It all depends on what that
> > page is used for and what are the objects inside that page used for as well.
> >
> > Some objects can be used to mark certain pages. Others can store extra
> > data: structured content in general (defined in user created xclasses) or
> > even page comments, tags, etc. Other objects can set the document's rights.
> > Other objects can specify which is the sheet to apply when viewing or
> > editing the current document.
> >
> > The document's content (what you call "A string of wikitext") can have
> > static content or dynamic content (scripts/code) which can execute either
> > independently of the objects in the page or by reading some data from those
> > objects, processing it and/or displaying/presenting it as the (dynamic)
> > content of the document you are viewing.
> >
> > There are enough cases when a document has both content and objects, as the
> > ability to have structured content in your document is a very big plus in
> > XWiki, compared to some other wiki platforms.
> >
> > XWiki is a flexible platform and it all comes down to the usecase you are
> > using it for, i.e. what you want to achieve.
>  
> If I understand you correctly, manual monitoring and moderation is the
> only way to prevent a user from, for example, adding a bunch of
> objects to a page that is supposed to be wikitext-only. 

Indeed that’s the general premise of a wiki and that’s how it differs from 
other tools: collaborating and creating content is hard, which is why wikis 
make it easy for users to do so without having to ask for permissions. 
Notifications, history and rollback features are the way to provide oversight. 
In the huge majority of cases, no action is required and serendipity happens :)

In XWiki, wiki pages can contain either unstructured data or structured data 
(xobjects). There’s no fundamental difference between both types of data and 
users should be free to add and modify any type of data (provided they have 
edit rights on the page).

You mention “a page that is supposed to be wikitext-only”. Who says that? :) 
Who says that a page which starts with wiki text cannot be improved by having 
some part of it structured? I’ve done this countless of times to provide more 
features.

I personally would find it a pity to arbitrarily restrict permissions to only 
some users. That’s not the principle of wikis at heart. I’d say: always try to 
be the most open, and if it causes problems then close down a bit if there’s no 
other way.

In addition, some companies are used to the traditional way of working and 
would prefer to close down things a bit. Because XWiki is a flexible platform 
and because it’s an Enterprise Wiki, it has a strong permission model. Recently 
(in XWiki 7.2M1 and 7.2M2), we’ve added a new permission called the Scripting 
Permission and it’s possible to give it only to some users. See 
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72M1#HScriptright
 and 
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72M2#HScriptRight

I hope the rationale is more clear! (not sure if I explained it right :)).

> I don't think
> I would have designed XWiki with such loose restrictions, but if this
> was the design philosophy from the beginning then it makes more sense.
>  
> Thanks for the explanation!

Thanks
-Vincent

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


Re: [xwiki-users] FAQ Application tutorial is incomprehensible

2015-09-05 Thread vinc...@massol.net
Hi Alex,


On 5 Sep 2015 at 00:32:54, Alex Henrie 
(alexhenri...@gmail.com(mailto:alexhenri...@gmail.com)) wrote:

> 2015-09-04 15:59 GMT-06:00 vinc...@massol.net :
> > On 4 Sep 2015 at 19:56:31, Alex Henrie
> >> If I understand you correctly, manual monitoring and moderation is the
> >> only way to prevent a user from, for example, adding a bunch of
> >> objects to a page that is supposed to be wikitext-only.
> >
> > Indeed that’s the general premise of a wiki and that’s how it differs from
> > other tools: collaborating and creating content is hard, which is why wikis
> > make it easy for users to do so without having to ask for permissions.
> > Notifications, history and rollback features are the way to provide
> > oversight. In the huge majority of cases, no action is required and
> > serendipity happens :)
> >
> > In XWiki, wiki pages can contain either unstructured data or structured data
> > (xobjects). There’s no fundamental difference between both types of data and
> > users should be free to add and modify any type of data (provided they have
> > edit rights on the page).
> >
> > You mention “a page that is supposed to be wikitext-only”. Who says that? :)
> > Who says that a page which starts with wiki text cannot be improved by
> > having some part of it structured? I’ve done this countless of times to
> > provide more features.
> >
> > I personally would find it a pity to arbitrarily restrict permissions to
> > only some users. That’s not the principle of wikis at heart. I’d say: always
> > try to be the most open, and if it causes problems then close down a bit if
> > there’s no other way.
> >
> > In addition, some companies are used to the traditional way of working and
> > would prefer to close down things a bit. Because XWiki is a flexible
> > platform and because it’s an Enterprise Wiki, it has a strong permission
> > model. Recently (in XWiki 7.2M1 and 7.2M2), we’ve added a new permission
> > called the Scripting Permission and it’s possible to give it only to some
> > users. See
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72M1#HScriptright
> > and
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72M2#HScriptRight
> >
> > I hope the rationale is more clear! (not sure if I explained it right :)).
>  
> It was confusing to me because I am actually using PhenoTips
> , which is based on XWiki, but in the default
> configuration I can't see why anyone would want or need to input
> unstructured data into this application. It seems strange that the
> user can add ?editor=wiki, ?editor=object, or ?editor=class to the URL
> and leave the default PhenoTips editor behind. Making scripts
> unexecutable is a step in the right direction even if it does not lock
> down the application in the same way that a traditional web app would.
>  
> In other words, PhenoTips is built on XWiki, but its highly structured
> data model does not seem to fit the wiki paradigm. Maybe in the future
> the PhenoTips developers will patch XWiki to allow greater lockdown,
> but it's not a dealbreaker for me.

ok, I understand what you mean now: you’d like the ability to lock down 
existing applications, i.e. prevent users of them from making structural 
changes to them.

That’s a valid use case and we support it :)

Basically there are 2 use cases:
* Letting users make changes to applications because this allows multiple users 
to develop collaboratively apps using XWiki. The idea is that of refactoring 
and an app is never ever finished and can always be improved.
* However you may only want some experienced users or devs to do that and not 
anyone.

What happens is that the app has 2 types of wiki pages (aka documents):
* Technical pages that make the app
* Data pages which are created by the user when he/she uses the app

So what we do is that when we develop apps we usually create 2 spaces, one for 
the technical pages and one for the data pages. In this manner we can set 
permissions very easily on the space containing the technical pages so that 
only some authorized group or users have edit rights on them.

Maybe in your case all that is required is to ask the phenotips developers to 
not allow all users to have edit rights by default on the technical pages of 
this app (and restrict them to admins by default for example)?

Thanks
-Vincent

> Thanks again,
>  
> -Alex

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


Re: [xwiki-users] Do not import existing document

2015-09-09 Thread vinc...@massol.net
Hi Quentin,

Also feel free to report a jira issue at http://jira.xwiki.org to suggest 
adding this feature if you feel the need is a generic need.

Thanks
-Vincent

On 9 Sep 2015 at 11:48:42, Marius Dumitru Florea 
(mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) wrote:

> Hi Quentin,
>  
> There's no such option in the import UI but a developer can add it
> relatively easy:
> * add a "new" link to the "select none, all" options using JavaScript
> * catch the click event on the "new" link and send an AJAX request to
> a wiki page, passing the selected documents
> * in that wiki page check which of the received documents exist and
> return the list back
> * in the AJAX request handler unselect the documents specified in the
> response (i.e. the documents that exist)
>  
> This is surely not the best solution but it should work.
>  
> Hope this helps,
> Marius
>  
>  
> On Wed, Sep 9, 2015 at 11:15 AM, qvendeville
> wrote:
> > Hello,
> >
> > Is it possible not to import an existing document in a XAR Package ?
> > because I have 350 documents in that package and i really don't want to
> > check if every document exists...
> >
> > Regards,
> >
> > Quentin
> >
> >
> >
> > --
> > View this message in context: 
> > http://xwiki.475771.n2.nabble.com/Do-not-import-existing-document-tp7595939.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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Query in Java

2015-09-10 Thread vinc...@massol.net
Hi Peter,


On 10 Sep 2015 at 12:13:12, Peter Huisman 
(p.huis...@ximm.nl(mailto:p.huis...@ximm.nl)) wrote:

> Hi,
>  
> I’m looking for the return type for the following Query type in Java:
>  
> select doc.space, doc.name from XWikiDocument doc, BaseObject obj…
>  
> I know it should be some kind of List> since this is what works in Velocity 
> but I can’t do a typecast from List to List.
>  
> Can anyone help me on this?

I’ve added an example here 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module#HFromJavacomponents

hope it helps,
-Vincent

> Br,
>  
> Peter

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


Re: [xwiki-users] FAQ Application tutorial is incomprehensible

2015-09-10 Thread vinc...@massol.net
Hi Alex,

On 10 Sep 2015 at 02:51:06, Alex Henrie 
(alexhenri...@gmail.com(mailto:alexhenri...@gmail.com)) wrote:

> 2015-09-05 3:17 GMT-06:00 vinc...@massol.net :
> > ok, I understand what you mean now: you’d like the ability to lock down 
> > existing applications, i.e. prevent users of them from making structural 
> > changes to them.
> >
> > That’s a valid use case and we support it :)
> >
> > Basically there are 2 use cases:
> > * Letting users make changes to applications because this allows multiple 
> > users to develop collaboratively apps using XWiki. The idea is that of 
> > refactoring and an app is never ever finished and can always be improved.
> > * However you may only want some experienced users or devs to do that and 
> > not anyone.
> >
> > What happens is that the app has 2 types of wiki pages (aka documents):
> > * Technical pages that make the app
> > * Data pages which are created by the user when he/she uses the app
> >
> > So what we do is that when we develop apps we usually create 2 spaces, one 
> > for the technical pages and one for the data pages. In this manner we can 
> > set permissions very easily on the space containing the technical pages so 
> > that only some authorized group or users have edit rights on them.
> >
> > Maybe in your case all that is required is to ask the phenotips developers 
> > to not allow all users to have edit rights by default on the technical 
> > pages of this app (and restrict them to admins by default for example)?
>  
> PhenoTips already prevents ordinary users from editing technical
> pages, period. What I really want is to go a step further and only
> allow the inline form editor (editor=inline) to be used to edit data
> pages. I do not want users to be able to add classes, objects, or
> wikitext to pages (editor=class, editor=object, editor=wiki) outside
> of what the editor written specifically for PhenoTips would allow.

ok, that’s interesting. I don’t remember anyone voicing this concern but I can 
understand it. Indeed ATM, we provide a single Edit permission which allows any 
editor to be used (object, class, wiki, WYSIWYG, rights, etc). We could decide 
in the future to be more fine-grained, and provide a additional separate 
permission for Form editing (aka inline editing). Thus a User or Group could 
not have Edit rights in general and have only Form Edit rights.

Maybe you could open a jira issue at http://jira.xwiki.org on this so that we 
remember it and discuss it/implement it in the future? (or whoever wants to 
submit a pull request/patch).

Thanks
-Vincent

> Again, this feature is not a dealbreaker, but it could avoid abuse of
> the system.
>  
> -Alex

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


Re: [xwiki-users] Eventlistener

2015-09-11 Thread vinc...@massol.net
Hi Peter,

On 11 Sep 2015 at 15:26:42, Peter Huisman 
(p.huis...@ximm.nl(mailto:p.huis...@ximm.nl)) wrote:

> Hi,
>  
> After deleting a document, XWiki first shows a confirmation page and after 
> that displays the deleted document(s). I was wondering if I’m able to 
> redirect the user to a different page after the confirmation he has to give 
> on the delete action. I have noticed some remaks on the topic such as the 
> JIRA issue XWIKI-9906 but I;m not sure if there have been any changes on this.


If you pass the xredirect parameter in the URL for the delete action you’ll get 
redirect to passed URL once the delete is done. Note that you can also pass 
confirm=1 to bypass the confirmation box. 

Thanks 
-Vincent

> I don’t mind solving the issue myself and I would expect to be able to use 
> the DocumentDeleted event listener. I do not have enough detailed knowledge 
> on the topic to be able to sort this out entirely by myself so that leaves 
> the following questions:
>  
> 1 - Any news on the JIRA issue in any XWIKI version?
> 2 - Is it possible to use the DocumentDeleted listener for this purpose?
> 3 - If yes, does anyone have any suggestion on the approach?
> 4 - if no, is there any other way to solve this?
>  
> Thanks in advance for the feedback,
>  
> Br,
>  
> Peter
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] FAQ Application tutorial is incomprehensible

2015-09-12 Thread vinc...@massol.net
 
On 11 Sep 2015 at 20:40:41, Alex Henrie 
(alexhenri...@gmail.com(mailto:alexhenri...@gmail.com)) wrote:

> 2015-09-10 5:26 GMT-06:00 vinc...@massol.net :
> > On 10 Sep 2015 at 02:51:06, Alex Henrie 
> > (alexhenri...@gmail.com(mailto:alexhenri...@gmail.com)) wrote:
> >> PhenoTips already prevents ordinary users from editing technical
> >> pages, period. What I really want is to go a step further and only
> >> allow the inline form editor (editor=inline) to be used to edit data
> >> pages. I do not want users to be able to add classes, objects, or
> >> wikitext to pages (editor=class, editor=object, editor=wiki) outside
> >> of what the editor written specifically for PhenoTips would allow.
> >
> > ok, that’s interesting. I don’t remember anyone voicing this concern but I 
> > can understand it. Indeed ATM, we provide a single Edit permission which 
> > allows any editor to be used (object, class, wiki, WYSIWYG, rights, etc). 
> > We could decide in the future to be more fine-grained, and provide a 
> > additional separate permission for Form editing (aka inline editing). Thus 
> > a User or Group could not have Edit rights in general and have only Form 
> > Edit rights.
> >
> > Maybe you could open a jira issue at http://jira.xwiki.org on this so that 
> > we remember it and discuss it/implement it in the future? (or whoever wants 
> > to submit a pull request/patch).
>  
> Done. http://jira.xwiki.org/browse/XWIKI-12555

Thanks!
-Vincent

> -Alex

___
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-14 Thread vinc...@massol.net
Hi Mohit,


On 1 Sep 2015 at 15:32:48, Mohit Gupta 
(motgu...@gmail.com(mailto:motgu...@gmail.com)) wrote:

> Hi Vincet,
>  
> I took the latest war file(xwiki-enterprise-web-7.2-20150828.151901-292.war
> )
> from the link
> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/7.2-SNAPSHOT/
> but getting exception when i hit the wiki url in browser. Here is the full
> stack trace

[snip]

> java.lang.NullPointerException
> org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(HqlSqlWalker.java:560)

Strange, I don’t remember seeing this error before. It looks like an Hibernate 
bug. 

The query we send is:

"where doc.object(XWiki.XWikiServerClass).server = :wikiAlias and doc.name like 
'XWikiServer%’"

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


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

2015-09-14 Thread vinc...@massol.net
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.  
> I want similare function like "source" in bash, it's like  
> copy/paste some code in main script from another file.  
> I read https://network.xwiki.com/xwiki/bin/view/DocXE31Fr/IncludeInVelocity  
> and use #includeInContext("mySpace.myPage") but there  
> are board effect:  
> #includeInContext return HTML code like this  
> I call MyMacroMy color is  
> Red...  
> Then to obtain what I want I must user html tag:  
> {{html}}  
>   #includeInContext("mySpace.myPage")  
> {{/html}}  
>  
> Is it normal?  
>  
>  
> Thxs,  
>  
> Pascal B  
> ___  
> 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] Fw : Re: Fw : Include & Co board effect

2015-09-14 Thread vinc...@massol.net

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.
> >
> > > I want similare function like
> > "source" in bash, it's like
> >
> > > copy/paste some code in main script
> > from another file.
> >
> > > I read
> > https://network.xwiki.com/xwiki/bin/view/DocXE31Fr/IncludeInVelocity
> >
> > > and use
> > #includeInContext("mySpace.myPage") but there
> >
> > > are board effect:
> >
> > > #includeInContext return HTML code
> > like this
> >
> > >
I call
> > MyMacro

My color is
> >
> > > Red

...
> >
> > > Then to obtain what I want I must user
> > html tag:
> >
> > > {{html}}
> >
> > >  
> > #includeInContext("mySpace.myPage")  
> >
> > > {{/html}}
> >
> > >  
> >
> > > Is it normal?
> >
> > >  
> >
> > >  
> >
> > > Thxs,
> >
> > >  
> >
> > > Pascal B

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


Re: [xwiki-users] Export a whole space as PDF

2015-09-14 Thread vinc...@massol.net
Hi Daniel,

On 11 Sep 2015 at 16:07:22, Daniel Wuttke 
(daniel.wut...@systecs.com(mailto:daniel.wut...@systecs.com)) wrote:

> Hello there,
>  
> I am trying to export a whole XWiki space to PDF for several hours now. And
> it seems like it is not possible.
>  
> I am running XWiki 7.1.1 and I did try the following ways:
>  
> 1.
> built-in via
> http://localhost:8080/xwiki/bin/export/Space/Page?format=pdf&pages=MyTestSpace.MyTestPage&includechilds=10&includelinks=10
> or similar approaches.
> Is there any way to use the "%25" with this approach like it is possible
> for HTML and XAR exports?

I can answer this question since I’ve just checked the code and right now it 
doesn’t support regexes/wildcards. I suggest you open a jira issue at 
http://jira.xwiki.org/browse/XWIKI if you’d like to see this added.

Related:
* http://jira.xwiki.org/browse/XWIKI-1289
* http://jira.xwiki.org/browse/XWIKI-800#
* http://design.xwiki.org/xwiki/bin/view/Improvements/MultiExport

I’ll let others answer the other questions since I don’t know those apps well.

Note that you should be able to modify pdf.vm quite easily to support 
wildcars/regexes. See 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLook26Feel

However the apps you mention below should also work fine for this normally.

Thanks
-Vincent


> 2.
> PDF Export Collection Application (
> http://extensions.xwiki.org/xwiki/bin/view/Extension/PDF+Export+Collection+Application
> )
> It writes an error to the export pdf file. (Failed to execute the
> [velocity] macro. Click on this message for details.)
>  
> 3.
> XWiki Multipage PDF Export (
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Multipage+PDF+Export)
> Did not get it to run, but the docu seems like i need to add any specific
> page on my own, which is not what i want.
>  
> 4.
> XWiki MultipagePdfExport Application - Space Export (
> http://extensions.xwiki.org/xwiki/bin/view/Extension/MultipagePdfExport+Application+-+Space+Export
> )
> It is possible to select what to export in the current space, but it does
> not get exported to the final PDF file.
>  
> 5. Admin Tools Application (
> http://extensions.xwiki.org/xwiki/bin/view/Extension/PDF+Export+Panel+Application
> )
> Did not get it to run, but it seems to be a GUI for the first approach. So
> I do not expect it to work better.
>  
> If there are any tricks I should know of with any of those approaches you
> are welcome to tell me. Totally new ideas/solutions are welcome as well of
> course.
>  
> Hopefully any one can solve this problem since i could not find a solution
> yet.
>  
> Yours
> Daniel
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XML with getURLContent()

2015-09-15 Thread vinc...@massol.net
Hi Aaron,


On 15 Sep 2015 at 18:38:17, Aaron Hardy at AC 
(ashtarcommunicati...@gmail.com(mailto:ashtarcommunicati...@gmail.com)) wrote:

> XWiki 6.2RC1. I have some velocity code using getURLContent() to access an
> external API that appears to not be working after a server move, despite
> working in the past.
>  
> Something like this used to work:
>  
> *
> #set($url = "https://www.example.com/api/example.mhtml?param=123";)
> #set($response = $xwiki.getURLContent($url))
>  
> #if ($response)
> #set($tags = $services.xml.parse($response).getElementsByTagName('TAG'))
> $tags.length
> #end
> *
>  
> Now, $response appears to be empty (nothing appears when written to the
> page). Going directly to the API URL returns properly formatted XML, so I
> know the API itself is working. And changing $url to http://google.com also
> returns data.
>  
> Any ideas?

What is the syntax of your page? Are you sure it’s XWiki Syntax 2.0+ and you’re 
wrapping the velocity content with the {{velocity}} macro for example (you 
didn’t show it in your example). 

$response is still there

Thanks
-Vincent

> aaron

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


Re: [xwiki-users] XML with getURLContent()

2015-09-15 Thread vinc...@massol.net
Seems to be working fine on 
http://playground.xwiki.org/xwiki/bin/view/Main/Aaron

Maybe there was a problem specifically on 6.2RC1 (BTW better use some final 
releases…:)). I’d recommend 6.4.5 for the 6.x cycle.

Thanks
-Vincent

On 15 Sep 2015 at 18:53:16, Aaron Hardy at AC (ashtarcommunicati...@gmail.com) 
wrote:

Page syntax is XWiki 2.1 and the velocity is wrapped. Sorry, I didn't include 
the full code for simplicity's sake. Here's a minimal example cut and pasted 
from the editor (only thing changed is the actual URL):

***
{{velocity}}

  #set($getURL = "https://www.example.com/api/example.mhtml?param=123";)
  $getURL

  #set($content = $xwiki.getURLContent($getURL))
  $content

{{/velocity}}

If I set $getURL to "https://google.com";, it prints $content to the page. With 
my API URL, I get nothing but the link in $getURL. But if I follow that link, I 
get the expected XML page from the API, so I know the URL is working correctly.

I figured it was because $content is XML from the API, and HTML from google, 
but using $services.xml.parse on the response doesn't work either.

The strange part is that this is code that I haven't touched in quite some 
time, and used to be working. The full code parses the XML response and saves 
various elements to an HTML table on the page - but it doesn't appear to be 
getting that far.



On Tue, Sep 15, 2015 at 12:41 PM, vinc...@massol.net  wrote:
Hi Aaron,


On 15 Sep 2015 at 18:38:17, Aaron Hardy at AC 
(ashtarcommunicati...@gmail.com(mailto:ashtarcommunicati...@gmail.com)) wrote:

> XWiki 6.2RC1. I have some velocity code using getURLContent() to access an
> external API that appears to not be working after a server move, despite
> working in the past.
>
> Something like this used to work:
>
> *
> #set($url = "https://www.example.com/api/example.mhtml?param=123";)
> #set($response = $xwiki.getURLContent($url))
>
> #if ($response)
> #set($tags = $services.xml.parse($response).getElementsByTagName('TAG'))
> $tags.length
> #end
> *
>
> Now, $response appears to be empty (nothing appears when written to the
> page). Going directly to the API URL returns properly formatted XML, so I
> know the API itself is working. And changing $url to http://google.com also
> returns data.
>
> Any ideas?

What is the syntax of your page? Are you sure it’s XWiki Syntax 2.0+ and you’re 
wrapping the velocity content with the {{velocity}} macro for example (you 
didn’t show it in your example). 

$response is still there

Thanks
-Vincent

> aaron


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


Re: [xwiki-users] XML with getURLContent()

2015-09-15 Thread vinc...@massol.net
Hi Aaron,

On 15 Sep 2015 at 19:12:06, Aaron Hardy at AC 
(ashtarcommunicati...@gmail.com(mailto:ashtarcommunicati...@gmail.com)) wrote:

> I've updated that playground page with the actual URL of the API I'm using - 
> you'll see that the page comes back blank, but if you follow the link in the 
> browser, you get a page full of XML. So there must be something about the 
> data that the API is returning that XWiki doesn't like? 

This is because you’ve used HTTPS. If you use HTTP it works fine.

ATM getURLContent() doesn’t support HTTPS.

Thanks
-Vincent

> Agreed on using final releases - a full upgrade to 7.x is actually planned 
> soon. If I remember correctly, we got stuck on RC1 during the last production 
> upgrade cycle because there was some feature in 6.2 that we really needed but 
> the final release was still a few weeks out by our deadline so we rolled the 
> dice. Fortunately we haven't run into many issues - which is probably why 
> we're running behind on the upgrade :)  
>  
>  
> On Tue, Sep 15, 2015 at 12:56 PM, 
> vinc...@massol.net(mailto:vinc...@massol.net) wrote:
> > Seems to be working fine on 
> > http://playground.xwiki.org/xwiki/bin/view/Main/Aaron
(http://playground.xwiki.org/xwiki/bin/view/Main/Aaron) > >  
> >  
> >  
> > Maybe there was a problem specifically on 6.2RC1 (BTW better use some final 
> > releases…:)). I’d recommend 6.4.5 for the 6.x cycle.  
> >  
> > Thanks  
> > -Vincent
> >  
> >  
> > On 15 Sep 2015 at 18:53:16, Aaron Hardy at AC 
> > (ashtarcommunicati...@gmail.com(mailto:ashtarcommunicati...@gmail.com)) 
> > wrote:
> >  
> > > Page syntax is XWiki 2.1 and the velocity is wrapped. Sorry, I didn't 
> > > include the full code for simplicity's sake. Here's a minimal example cut 
> > > and pasted from the editor (only thing changed is the actual URL):
> > >  
> > > ***  
> > > {{velocity}}
> > >  
> > > #set($getURL = "https://www.example.com/api/example.mhtml?param=123";)  
> > > $getURL
> > >  
> > > #set($content = $xwiki.getURLContent($getURL))  
> > > $content
> > >  
> > > {{/velocity}}  
> > >  
> > > If I set $getURL to "https://google.com";, it prints $content to the page. 
> > > With my API URL, I get nothing but the link in $getURL. But if I follow 
> > > that link, I get the expected XML page from the API, so I know the URL is 
> > > working correctly.
> > >  
> > > I figured it was because $content is XML from the API, and HTML from 
> > > google, but using $services.xml.parse on the response doesn't work 
> > > either.  
> > >  
> > > The strange part is that this is code that I haven't touched in quite 
> > > some time, and used to be working. The full code parses the XML response 
> > > and saves various elements to an HTML table on the page - but it doesn't 
> > > appear to be getting that far.  
> > >  
> > >  
> > >  
> > > On Tue, Sep 15, 2015 at 12:41 PM, 
> > > vinc...@massol.net(mailto:vinc...@massol.net) wrote:
> > > > Hi Aaron,  
> > > >  
> > > > On 15 Sep 2015 at 18:38:17, Aaron Hardy at AC 
> > > > (ashtarcommunicati...@gmail.com(mailto:ashtarcommunicati...@gmail.com)(mailto:ashtarcommunicati...@gmail.com))
> > > >  wrote:
> > > >  
> > > > > XWiki 6.2RC1. I have some velocity code using getURLContent() to 
> > > > > access an
> > > > > external API that appears to not be working after a server move, 
> > > > > despite
> > > > > working in the past.
> > > > >
> > > > > Something like this used to work:
> > > > >
> > > > > *
> > > > > #set($url = "https://www.example.com/api/example.mhtml?param=123";)
> > > > > #set($response = $xwiki.getURLContent($url))
> > > > >
> > > > > #if ($response)
> > > > > #set($tags = 
> > > > > $services.xml.parse($response).getElementsByTagName('TAG'))
> > > > > $tags.length
> > > > > #end
> > > > > *
> > > > >
> > > > > Now, $response appears to be empty (nothing appears when written to 
> > > > > the
> > > > > page). Going directly to the API URL returns properly formatted XML, 
> > > > > so I
> > > > > know the API itself is working. And changing $url to 
> > > > > http://google.com also
> > > > > returns data.
> > > > >
> > > > > Any ideas?  
> > > >  
> > > > What is the syntax of your page? Are you sure it’s XWiki Syntax 2.0+ 
> > > > and you’re wrapping the velocity content with the {{velocity}} macro 
> > > > for example (you didn’t show it in your example).  
> > > >  
> > > > $response is still there  
> > > >  
> > > > Thanks  
> > > > -Vincent
> > > >  
> > > > > aaron
> > > >  
> > >  
>  

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


Re: [xwiki-users] XML with getURLContent()

2015-09-16 Thread vinc...@massol.net
Hi Aaron,

Feel free to create a jira issue at http://jira.xwiki.org if you think it’s 
important that getURLContent() supports HTTPS. This can be done since under the 
hood we’re using Http Client and it supports HTTPS.  

Thanks  
-Vincent

On 16 Sep 2015 at 01:01:41, Aaron Hardy at AC 
(ashtarcommunicati...@gmail.com(mailto:ashtarcommunicati...@gmail.com)) wrote:

> Yep, that's it. Changed it to HTTP and it worked fine. I must have changed 
> the URL in otherwise working code at some point and forgotten about it. 
> Oddly, using https://google.com still works for me, but not using https with 
> my actual API URL. Either way, good to know that HTTPS isn't supported.  
>  
> Thanks much for the help,  
>  
> aaron  
>  
> On Tue, Sep 15, 2015 at 6:02 PM, 
> vinc...@massol.net(mailto:vinc...@massol.net) wrote:
> > Hi Aaron,
> >  
> > On 15 Sep 2015 at 19:12:06, Aaron Hardy at AC 
> > (ashtarcommunicati...@gmail.com(mailto:ashtarcommunicati...@gmail.com)(mailto:ashtarcommunicati...@gmail.com))
> >  wrote:
> >  
> > > I've updated that playground page with the actual URL of the API I'm 
> > > using - you'll see that the page comes back blank, but if you follow the 
> > > link in the browser, you get a page full of XML. So there must be 
> > > something about the data that the API is returning that XWiki doesn't 
> > > like?  
> >  
> > This is because you’ve used HTTPS. If you use HTTP it works fine.
> >  
> > ATM getURLContent() doesn’t support HTTPS.
> >  
> > Thanks
> > -Vincent
> >  
> > > Agreed on using final releases - a full upgrade to 7.x is actually 
> > > planned soon. If I remember correctly, we got stuck on RC1 during the 
> > > last production upgrade cycle because there was some feature in 6.2 that 
> > > we really needed but the final release was still a few weeks out by our 
> > > deadline so we rolled the dice. Fortunately we haven't run into many 
> > > issues - which is probably why we're running behind on the upgrade :)
> > >
> > >
> > > On Tue, Sep 15, 2015 at 12:56 PM, 
> > > vinc...@massol.net(mailto:vinc...@massol.net)(mailto:vinc...@massol.net) 
> > > wrote:
> > > > Seems to be working fine on 
> > > > http://playground.xwiki.org/xwiki/bin/view/Main/Aaron
> > (http://playground.xwiki.org/xwiki/bin/view/Main/Aaron) > >
> > > >
> > > >
> > > > Maybe there was a problem specifically on 6.2RC1 (BTW better use some 
> > > > final releases…:)). I’d recommend 6.4.5 for the 6.x cycle.
> > > >
> > > > Thanks
> > > > -Vincent
> > > >
> > > >
> > > > On 15 Sep 2015 at 18:53:16, Aaron Hardy at AC 
> > > > (ashtarcommunicati...@gmail.com(mailto:ashtarcommunicati...@gmail.com)(mailto:ashtarcommunicati...@gmail.com))
> > > >  wrote:
> > > >
> > > > > Page syntax is XWiki 2.1 and the velocity is wrapped. Sorry, I didn't 
> > > > > include the full code for simplicity's sake. Here's a minimal example 
> > > > > cut and pasted from the editor (only thing changed is the actual URL):
> > > > >
> > > > > ***
> > > > > {{velocity}}
> > > > >
> > > > > #set($getURL = "https://www.example.com/api/example.mhtml?param=123";)
> > > > > $getURL
> > > > >
> > > > > #set($content = $xwiki.getURLContent($getURL))
> > > > > $content
> > > > >
> > > > > {{/velocity}}
> > > > >
> > > > > If I set $getURL to "https://google.com";, it prints $content to the 
> > > > > page. With my API URL, I get nothing but the link in $getURL. But if 
> > > > > I follow that link, I get the expected XML page from the API, so I 
> > > > > know the URL is working correctly.
> > > > >
> > > > > I figured it was because $content is XML from the API, and HTML from 
> > > > > google, but using $services.xml.parse on the response doesn't work 
> > > > > either.
> > > > >
> > > > > The strange part is that this is code that I haven't touched in quite 
> > > > > some time, and used to be working. The full code parses the XML 
> > > > > response and saves various elements to an HTML table on the page - 
> > > > > but it doesn't appear to be getting that far.

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

2015-09-16 Thread vinc...@massol.net
Hi Justin,

On 15 Sep 2015 at 21:53:56, HadleysHope 
(justin.scott-ex...@bannerhealth.com(mailto:justin.scott-ex...@bannerhealth.com))
 wrote:

> I wonder if anyone can help. I started using xwiki but have been a long time
> use user of tikiwiki. 

That’s very cool, we like people coming from other wikis because they come with 
a new eye and at the same time they have expectations from their past wikis, so 
they usually have interesting feedback to help improve XWiki.

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

This is actually the strength of XWiki! :)

See http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel

You could also check the FAQ tutorial: 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial

Thanks
-Vincent

> Any help greatly appreciated.
>  
> HH

___
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-16 Thread vinc...@massol.net
 
On 16 Sep 2015 at 09:06:58, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Hi Justin,
>  
> On 15 Sep 2015 at 21:53:56, HadleysHope 
> (justin.scott-ex...@bannerhealth.com(mailto:justin.scott-ex...@bannerhealth.com))
>  wrote:
>  
> > I wonder if anyone can help. I started using xwiki but have been a long time
> > use user of tikiwiki.  
>  
> That’s very cool, we like people coming from other wikis because they come 
> with a new eye and at the same time they have expectations from their past 
> wikis, so they usually have interesting feedback to help improve XWiki. 


Don’t hesitate to give us feedback about the comparison between TikiWiki and 
XWiki: what you like more in XWiki, what you preferred in TikiWiki, first 
impressions of XWiki, ideas to improve things, etc. :)

Thanks
-Vincent

> > 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?  
>  
> This is actually the strength of XWiki! :)  
>  
> See http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel  
>  
> You could also check the FAQ tutorial: 
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial  
>  
> Thanks  
> -Vincent
>  
> > Any help greatly appreciated.
> >
> > HH
>  

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


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

2015-09-17 Thread vinc...@massol.net
Hi Paul,


On 17 Sep 2015 at 09:36:30, Paul Libbrecht 
(p...@hoplahup.net(mailto:p...@hoplahup.net)) wrote:

> Hello XWiki experts,
>  
> I'm porting confluence-syntax-pages from a confluence to my shiny new xwiki.
> I've made a little tool to grasp the attachments (by hand) and am
> copying the page content.
> These pages were using two macros that I am try to reprogramme but am
> failing thus far.

BTW do you know that we have a Confluence importer? :)

http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Confluence+XML+module#HTutorial

> I succeeded creating the macro with the easy tutorial here
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial,
> including content or parameters references in the XWiki 2.1 syntax but
> in the confluence syntax I am failing:
> - how can I specify macro parameters there?
> - confluence macros do not have open and close tags. Does it mean it
> cannot have content? If the macro requires content, an error is
> displayed constantly that the content is missing.

If you’re interested in the Confluence grammar: 
https://github.com/xwiki/xwiki-rendering/blob/ae956128c40efd0445e15d531d2bf0a2e1ac34d5/xwiki-rendering-wikimodel/src/main/javacc/ConfluenceWikiScanner.jj

So you can have params for example: {color:red}…{color}

From the grammar file it seems only some macros may be recognized… I don’t know 
why the grammar doesn’t have a generic way to recognize a macro, this should 
probably be improved.

Thanks
-Vincent

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


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

2015-09-17 Thread vinc...@massol.net
 




On 17 Sep 2015 at 09:53:31, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Hi Paul,
>  
>  
> On 17 Sep 2015 at 09:36:30, Paul Libbrecht 
> (p...@hoplahup.net(mailto:p...@hoplahup.net)) wrote:
>  
> > Hello XWiki experts,
> >
> > I'm porting confluence-syntax-pages from a confluence to my shiny new xwiki.
> > I've made a little tool to grasp the attachments (by hand) and am
> > copying the page content.
> > These pages were using two macros that I am try to reprogramme but am
> > failing thus far.  
>  
> BTW do you know that we have a Confluence importer? :)  
>  
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Confluence+XML+module#HTutorial
>   
>  
> > I succeeded creating the macro with the easy tutorial here
> > http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial,
> > including content or parameters references in the XWiki 2.1 syntax but
> > in the confluence syntax I am failing:
> > - how can I specify macro parameters there?
> > - confluence macros do not have open and close tags. Does it mean it
> > cannot have content? If the macro requires content, an error is
> > displayed constantly that the content is missing.  
>  
> If you’re interested in the Confluence grammar:  
> https://github.com/xwiki/xwiki-rendering/blob/ae956128c40efd0445e15d531d2bf0a2e1ac34d5/xwiki-rendering-wikimodel/src/main/javacc/ConfluenceWikiScanner.jj
>  
> So you can have params for example: {color:red}…{color}  
>  
> From the grammar file it seems only some macros may be recognized… I don’t 
> know why the grammar doesn’t have a generic way to recognize a macro, this 
> should probably be improved. 

Forget that, I misread. The grammar says:

    | <#MACRO_PARAMS: (  | ~["}"]  )* >
    | <#MACRO: "{"   "}” >
    | <#MACRO_CONTENT: (  |  |  | | 
 ) >
    | <#MACRO_BLOCK: "{" 
        ( 
              "color"               // TODO: {color:xx} paragraph {color}
…
         )
         
        "}"
      >

so it should work fine. I also see in ConfluenceWikiScanner.splitMacroParams() 
the code to split the parameters.

I haven’t tried it for real though :)

Now I’d recommend that once you have a page in Confluence syntax inside XWiki, 
you convert it to XWiki Syntax 2.1 and then you won’t have any problem in using 
any wiki macro or the WYSIWYG editor and all features of XWiki in general.

Note: It’s still interesting to me to make macros work well in the confluence 
syntax so if you want to continue on that path I’m happy to help as I can.

Thanks
-Vincent

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


Re: [xwiki-users] Databasetree seems to be missing

2015-09-17 Thread vinc...@massol.net
Hi,

On 17 Sep 2015 at 19:41:35, HadleysHope 
(justin.scott-ex...@bannerhealth.com(mailto:justin.scott-ex...@bannerhealth.com))
 wrote:

> This post has NOT been accepted by the mailing list yet.

It was accepted, see http://markmail.org/message/4ybqodc7j7bizqvb

Why did you think it wasn’t accepted?

> I can manually add if I edit the class (but then I get a ton of errors) but
> its not in the field pallet (assume it would be in the advanced section
> under Database List).
> Does it need to be added to the pallet? if so how would I go about that?
>  
> Thx
>  
> HH

Not sure what you’re talking about, I’m missing some context.

Thanks
-Vincent

> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Databasetree-seems-to-be-missing-tp7596047.html

___
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 vinc...@massol.net
Hi,

On 17 Sep 2015 at 18:36:28, HadleysHope 
(justin.scott-ex...@bannerhealth.com(mailto:justin.scott-ex...@bannerhealth.com))
 wrote:

> Ok so I have been away and run through the FAQ tutorial. I have to say the
> app in minutes is by far the easiest way to do it, I honestly started to
> loose the will to live running through the other method, I can see that
> xwiki is incredibly incredibly powerful in its flexibility in that way but
> am glad there is another way to get things done because the learning curve
> would otherwise be too steep for us to consider using xwiki.
>  
> Ok, so I have manged to create two new apps one contains states and cities
> i.e.
>  
> Washington, Tacoma
> Washington, Seattle
> Texas,Houston
> Taxas,Dallas
> Kansas,Wichita
>  
> And one that references the values stored in the first. My question is, is
> there a way, without coding, that I can select "Washington" in one field and
> it only displays the cities in Washington in another field.
>  
> With Tiki this is accomplished with something called "Dynamic Lists" where
> it looks at a field (linked, remote) to then populate a list based on
> another (remote) field.

I think we’re missing a good tutorial to explain how to do this. I’ll see what 
I can do. I’ll also check if I can quickly come up with an extension to make 
this simpler by adding a custom type in the AWM palette.

FTR here’s what it means:
* Create a first app to enter the data (city + state), using 2 fields. Either 
by using Strings or Static Lists.
* Populate this first app by creating the 5 entries you have listed above
* Create a second app with a “State” field of type DBList and use the class and 
field of the first app. Note: do not create a second “City” field
* Edit the AWM-generated Class Sheet to add logic to generate the “City” field 
in the HTML form. Write some JS to get the value entered in the “State” field 
and do a backend REST query passing the state value (and make it return JSON 
data). Then generate the s of the  based on the returned JSON.

Also note that all this logic can be encapsulated in a new custom type for the 
Palette by using the custom displayer field (which you can’t see in the AWM app 
since it’s a very advanced field. You need to be in the standard Class editor 
to see it).

So if I can succeed in coding this, I could publish this as an extension on 
extensions.xwiki.org and you’d be able to install it directly in your wiki 
using the Extension Manager.

I just need to find a few hours to do this ;) (will try).

Hope it helps,
-Vincent

> Thanks again for your help.
>  
>  
>  
>  
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Migration-away-from-TikiWiki-Forms-based-question-tp7595997p7596044.html

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


Re: [xwiki-users] Databasetree seems to be missing

2015-09-18 Thread vinc...@massol.net
Hi Marius,

On 18 Sep 2015 at 10:37:26, Marius Dumitru Florea 
(mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) wrote:

> You'll have to customize the Field Palette for this, as documented on
> http://extensions.xwiki.org/xwiki/bin/view/Extension/App+Within+Minutes+Application#HFieldPalette-1
> , in the App Within Minutes documentation.

There’s something I don’t understand. I tried on a XWiki 7.2RC1 version and I 
have the Database List field type listed in the AWM palette.

Why would Gus not see it in this palette?

Thanks
-Vincent

>  
> Hope this helps,
> Marius
>  
> On Thu, Sep 17, 2015 at 8:58 PM, HadleysHope
> wrote:
> > Sorry I cut and paste from the rejection message I got! DOH!
> >
> > So I am trying to do a "app in minutes" and use database tree as a field but
> > it is not in the field pallet to drag and drop, yet if I edit the class I
> > can manually add it in but then I get a ton of errors. What do I need to do
> > to enable it so it shows up on the field pallet (again, I am assuming under
> > Database List in the advanced section).
> >
> > Thanks
> >
> >
> >
> >
> >
> > --
> > View this message in context: 
> > http://xwiki.475771.n2.nabble.com/Databasetree-seems-to-be-missing-tp7596047p7596049.html

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


Re: [xwiki-users] Databasetree seems to be missing

2015-09-18 Thread vinc...@massol.net

On 18 Sep 2015 at 11:10:44, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Hi Marius,
>  
> On 18 Sep 2015 at 10:37:26, Marius Dumitru Florea 
> (mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) wrote:
>  
> > You'll have to customize the Field Palette for this, as documented on
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/App+Within+Minutes+Application#HFieldPalette-1
> > , in the App Within Minutes documentation.  
>  
> There’s something I don’t understand. I tried on a XWiki 7.2RC1 version and I 
> have the Database List field type listed in the AWM palette.  
>  
> Why would Gus not see it in this palette? 

s/this/his/

Thanks
-Vincent

> Thanks  
> -Vincent
>  
> >
> > Hope this helps,
> > Marius
> >
> > On Thu, Sep 17, 2015 at 8:58 PM, HadleysHope
> > wrote:
> > > Sorry I cut and paste from the rejection message I got! DOH!
> > >
> > > So I am trying to do a "app in minutes" and use database tree as a field 
> > > but
> > > it is not in the field pallet to drag and drop, yet if I edit the class I
> > > can manually add it in but then I get a ton of errors. What do I need to 
> > > do
> > > to enable it so it shows up on the field pallet (again, I am assuming 
> > > under
> > > Database List in the advanced section).
> > >
> > > Thanks
> > >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context: 
> > > http://xwiki.475771.n2.nabble.com/Databasetree-seems-to-be-missing-tp7596047p7596049.html
>  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Databasetree seems to be missing

2015-09-18 Thread vinc...@massol.net


On 18 Sep 2015 at 11:29:53, Marius Dumitru Florea 
(mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) wrote:

> On Fri, Sep 18, 2015 at 12:11 PM, vinc...@massol.net wrote:
> >
> > On 18 Sep 2015 at 11:10:44, vinc...@massol.net 
> > (vinc...@massol.net(mailto:vinc...@massol.net)) wrote:
> >
> >> Hi Marius,
> >>
> >> On 18 Sep 2015 at 10:37:26, Marius Dumitru Florea 
> >> (mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) 
> >> wrote:
> >>
> >> > You'll have to customize the Field Palette for this, as documented on
> >> > http://extensions.xwiki.org/xwiki/bin/view/Extension/App+Within+Minutes+Application#HFieldPalette-1
> >> > , in the App Within Minutes documentation.
> >>
> >> There’s something I don’t understand. I tried on a XWiki 7.2RC1 version 
> >> and I have the Database List field type listed in the AWM palette.
> >>
>  
> >> Why would Gus not see it in this palette?
>  
> Because he's referring to the Database Tree :)

ok that explains it ;)

Thanks
-Vincent

> > s/this/his/
> >
> > Thanks
> > -Vincent
> >
> >> Thanks
> >> -Vincent
> >>
> >> >
> >> > Hope this helps,
> >> > Marius
> >> >
> >> > On Thu, Sep 17, 2015 at 8:58 PM, HadleysHope
> >> > wrote:
> >> > > Sorry I cut and paste from the rejection message I got! DOH!
> >> > >
> >> > > So I am trying to do a "app in minutes" and use database tree as a 
> >> > > field but
> >> > > it is not in the field pallet to drag and drop, yet if I edit the 
> >> > > class I
> >> > > can manually add it in but then I get a ton of errors. What do I need 
> >> > > to do
> >> > > to enable it so it shows up on the field pallet (again, I am assuming 
> >> > > under
> >> > > Database List in the advanced section).
> >> > >
> >> > > Thanks
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > --
> >> > > View this message in context: 
> >> > > http://xwiki.475771.n2.nabble.com/Databasetree-seems-to-be-missing-tp7596047p7596049.html

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


[xwiki-users] Master-Detail Tutorial with AWM (was Re: Migration away from TikiWiki - Forms based question.)

2015-09-20 Thread vinc...@massol.net
Hi Gus,

Here’s a first version of a Master-Detail Tutorial:
http://dev.xwiki.org/xwiki/bin/view/Drafts/MasterDetailTutorial

Now the next step is to build this into XWiki, I’ve created a JIRA issue for 
that:
http://jira.xwiki.org/browse/XWIKI-12598

Note that the tutorial probably needs polishing a bit before we move it to 
documentation proper (let me know what’s missing when you try to follow it, 
right now it’s pretty bare of explanations).

Thanks
-Vincent

On 18 Sep 2015 at 14:55:09, HadleysHope (justin.scott-ex...@bannerhealth.com) 
wrote:

Thanks so much for your help with this :)  



--  
View this message in context: 
http://xwiki.475771.n2.nabble.com/Migration-away-from-TikiWiki-Forms-based-question-tp7595997p7596079.html
  

___
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-20 Thread vinc...@massol.net
Hi Mohit,

Not sure why you needed to use a different database name for the main wiki but 
in case you need this you can configure xwiki to use this new name, see 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HConfigurethenamesofdatabaseschemas

Thanks
-Vincent

On 21 Sep 2015 at 07:22:37, Mohit Gupta 
(motgu...@gmail.com(mailto:motgu...@gmail.com)) wrote:

> Hi,
>  
> Any help on above ?
>  
> Thanks
> Mohit
>  
> On Sun, Sep 20, 2015 at 4:38 PM, Mohit Gupta wrote:
>  
> > looks like for generated urls xwiki not appending right application
> > context name i.e "myWiki" but instead using "xwiki" . it should be
> > /myWiki/resources/uicomponents/logging/logging.js
> >
> >
> > i tried below configuration in xwiki.cfg but it did not help
> >
> > xwiki.home=http://localhost:/myWiki/
> > xwiki.webapppath=myWiki
> >
> > On Sun, Sep 20, 2015 at 4:19 PM, Mohit Gupta wrote:
> >
> >> Hi All,
> >>
> >> I switched to MySQL. Server starts without any error. But when i hit url
> >> in browser. Page is stuck(looks like its refreshing but not proceeding)
> >>
> >> XWiki is initializing (12%)...
> >>
> >>
> >> Here are the logs from localhost_access_log.2015-09-20 file
> >>
> >>
> >> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> >> /myWiki/bin/view/Main/ HTTP/1.1" 503 2823
> >> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> >> /xwiki/bin/webjars/resources/path?value=requirejs%2F2.1.15%2Frequire.min.js
> >> HTTP/1.1" 404 1015
> >> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> >> /xwiki/resources/uicomponents/logging/logging.js HTTP/1.1" 404 1045
> >>
> >> I am not getting what is missing here
> >>
> >> On Thu, Sep 17, 2015 at 3:20 PM, Clemens Klein-Robbenhaar <
> >> c.robbenh...@espresto.com> wrote:
> >>
> >>> Hi *,
> >>>
> >>> > Hi Mohit,
> >>> >
> >>> >
> >>> > On 1 Sep 2015 at 15:32:48, Mohit Gupta (motgu...@gmail.com(mailto:
> >>> motgu...@gmail.com)) wrote:
> >>> >
> >>> >> Hi Vincet,
> >>> >>
> >>> >> I took the latest war
> >>> file(xwiki-enterprise-web-7.2-20150828.151901-292.war
> >>> >> )
> >>> >> from the link
> >>> >>
> >>> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/7.2-SNAPSHOT/
> >>> >> but getting exception when i hit the wiki url in browser. Here is the
> >>> full
> >>> >> stack trace
> >>> >
> >>> > [snip]
> >>> >
> >>> >> java.lang.NullPointerException
> >>> >>
> >>> org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(HqlSqlWalker.java:560)
> >>> >
> >>> > Strange, I don’t remember seeing this error before. It looks like an
> >>> Hibernate bug.
> >>> >
> >>>
> >>> Has been reported as such, and usually rejected, e.g.:
> >>> https://hibernate.atlassian.net/browse/HHH-3715
> >>>
> >>> I feel that the problem is that the XWQL-Query is not translated to HQL
> >>> properly
> >>>
> >>> > The query we send is:
> >>> >
> >>> > "where doc.object(XWiki.XWikiServerClass).server = :wikiAlias and
> >>> doc.name like 'XWikiServer%’"
> >>> >
> >>>
> >>> This is a XWQL query, however, and the HQL that is created from it (I
> >>> guess its created from the query, as that is what is shown in the error
> >>> 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
> >>>
> >>
> >>
> >
> ___

Re: [xwiki-users] [xwiki-devs] Display link on xwiki page

2015-09-21 Thread vinc...@massol.net
 




On 21 Sep 2015 at 10:16:00, PATEL, ABDULKADAR 
(abdulkadar.pa...@capgemini.com(mailto:abdulkadar.pa...@capgemini.com)) wrote:

>  
> Hi Vincent,
>  
>  
>  
>  
>  
> Thanks for your response.
>  
>  
> I know it might be very trivial issue but as I am working on xwiki first time,
>  
>  
> I don’t know basic things and that’s why bugging all of you with my silly 
> doubts.
>  
>  
>  
>  
>  
> To achieve this use case, I have followed below steps :
>  
>  
>  
>  
>  
> 1. Modified xwiki-min.js file to bind a javascript code which will display a 
> popup dialog on click of ctrl+shift+N

You shouldn’t do that. You should use a Javascript Extension instead, see 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial

> 2. This dialog fetches projects and issue types from jira server and displays 
> as dropdown

ok

> 3. Once user clicks on submit, a jira issue is created

ok

> 4. Now I need to display a link near text selected by user in step 1 but 
> don’t know how to do it.

This is not really related to XWiki (unless you wish to reuse the Annotation 
code but then I don’t now this code enough to know if you can do this or not).

In any case you could check the Annotation code to understand how it’s done 
there, basically how to find the location of some text in the content.

I guess there are at least 2 ways:
* Do that using JS and thus insert your link using JS
* Do it on the server side using the Rendering engine (this is what Annotation 
is doing I think) and add some specific HTML marker so that by using JS you can 
easily insert the link.

In any case what you wish to do is something complex and requires good 
knowledge of JS (and possibly of XWiki’s Rendering if you choose this solution).

Thanks
-Vincent

> I have attached code I have added in xwiki-min.js
>  
>  
>  
>  
>  
> You can also suggest if this is a right approach and if I can follow some 
> other approach.
>  
>  
>  
>  
>  
> Thanks & Regards,
>  
>  
> Abdulkadar Patel
>  
>  
>  
>  
>  
>  
>  
>  
>  
> P.S. I have not kept xwiki developers mail list since this mail becomes huge 
> and will need approval from list moderator.
>  
>  
>  
>  
>  
>  
>  
>  
> From: Vincent Massol [mailto:vmas...@gmail.com] On Behalf Of 
> vinc...@massol.net
> Sent: Monday, September 21, 2015 12:52 PM
> To: XWiki Developers
> Cc: PATEL, ABDULKADAR
> Subject: Re: [xwiki-devs] Display link on xwiki page
>  
>  
>  
>  
>  
>  
>  
> Hi there,  
>  
>  
>  
>  
>  
>  
>  
>  
> On 18 Sep 2015 at 15:25:44, PATEL, ABDULKADAR 
> (abdulkadar.pa...@capgemini.com(mailto:abdulkadar.pa...@capgemini.com))(mailto:abdulkadar.pa...@capgemini.com(mailto:abdulkadar.pa...@capgemini.com)))
>  wrote:
>  
> > Hi all,
> >
> > Sorry to bug all of you again and again with the same requirement.
> > But I am also helpless till I get it done.
> >
> > I have ebelow use case :
> >
> > 1. User selects some text on an xwiki page and hits some keyboard shortcut 
> > say Alt+ctrl+N
> >
> > 2. This opens a popup dialog like shown below :
> >
> > [file:///Users/vmassol/Library/Containers/it.bloop.airmail.beta11/Data/Library/Application
> >  
> > Support/Airmail/General/Local/1442819908355112192/Attachments/image004.jpg@01D0F242.DD794520(mailto:Support/Airmail/General/Local/1442819908355112192/Attachments/image004.jpg@01D0F242.DD794520)]
> >
> >
> >
> > 3. As you can see in the screenshot, it displays list of projects, issue 
> > types from JIRA server.
> >
> > Issue summary field is pre-populated with the selected text from xwiki page.
> >
> > 4. Once user submits this dialog, an issue is created in JIRA and a link 
> > will be created on xwiki page besides selected
> >
> > text.
> >
> > So far I have achieved 1,2 and 3 but not able to achieve 4
> > One option I thought of is to create an annotation for the selected text 
> > with text as a link to JIRA issue
> > But I don't understand how to achive this from javascript code.
> > I have written javascript code in 
> > webapps/xwiki/resources/js/xwiki/xwiki-min.js file
> >
> > Please suggest me an approach to achive point no 4.
> > Also suggest me if there is a better and cleaner approach.
>  
>  
>  
>  
>  
>  
> I’m not sure I understand the problem. Step 4 seems easy. You just need a 
> form action which calls a wiki page (possibly the current page passing some 
> parameter) and then using Velocity for example to create the JIRA issue using 
> 

Re: [xwiki-users] Master-Detail Tutorial with AWM (was Re: Migration away from TikiWiki - Forms based question.)

2015-09-21 Thread vinc...@massol.net
Hi Edy,

On 21 Sep 2015 at 11:39:16, Eduard Moraru 
(enygma2...@gmail.com(mailto:enygma2...@gmail.com)) wrote:

> Hi,
>  
> Nice tutorial!
>  
> I would suggest that, in the State Application, instead of creating a new
> JSON service (step 6), we reuse the LiveTableResults document that is
> specific to the State Data Application. Something like:
> http://localhost:8080/xwiki/bin/get/StateDataCode/StateDataLiveTableResults?outputSyntax=plain&classname=StateDataCode.StateDataClass&collist=state%2Ccity&state=
>  
>  
> ...or at least list this as a possibility.

That’s a very good idea, I didn’t even think of it! :)

I’ve added it as a suggestion. I guess I could rewrite the tutorial and app to 
skip Step 6 thanks to this. However, I’m hesitating since Step 6 is interesting 
from a didactic POV since it shows how to create a JSON service.

> Also, I`m not sure about the name, since it's extremely technical IMO (as
> names of design patterns usually are). Not sure of a better name either,
> maybe "Referencing key-value data" or something along those lines, don`t
> now.

I think I prefer Master-Detail since AFAIK this is the well-known pattern name 
for this and I’d like to be easy to find this page when googling.

> Side note: maybe it would be interesting for AWM to have some template apps
> meant both to showcase various tasks you can achieve with AWM but also to
> allow the user to more easily achieve common usecases by creating a new app
> from template and then customizing the new app to the user's specifics.

Yes that would be awesome. We’ll need to think about version 2 of AWM soon. 
This is one good idea. Another one I’d like to propose early next year will be 
the merging of the Web IDE extension started by Yann 
(http://extensions.xwiki.org/xwiki/bin/view/Extension/Web+IDE+Application - 
he’s shown me a more recent demo of it and it’s really nice) inside AWM v2 to 
offer a comprehensive way of developing apps.

Thanks
-Vincent

> Thanks,
> Eduard
>  
>  
> On Sun, Sep 20, 2015 at 6:28 PM, vinc...@massol.net  
> wrote:
>  
> > Hi Gus,
> >
> > Here’s a first version of a Master-Detail Tutorial:
> > http://dev.xwiki.org/xwiki/bin/view/Drafts/MasterDetailTutorial
> >
> > Now the next step is to build this into XWiki, I’ve created a JIRA issue
> > for that:
> > http://jira.xwiki.org/browse/XWIKI-12598
> >
> > Note that the tutorial probably needs polishing a bit before we move it to
> > documentation proper (let me know what’s missing when you try to follow it,
> > right now it’s pretty bare of explanations).
> >
> > Thanks
> > -Vincent
> >
> > On 18 Sep 2015 at 14:55:09, HadleysHope (
> > justin.scott-ex...@bannerhealth.com) wrote:
> >
> > Thanks so much for your help with this :)
> >
> >
> >
> > --
> > View this message in context:
> > http://xwiki.475771.n2.nabble.com/Migration-away-from-TikiWiki-Forms-based-question-tp7595997p7596079.html
> >
> > ___
> > 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] Master-Detail Tutorial with AWM (was Re: Migration away from TikiWiki - Forms based question.)

2015-09-21 Thread vinc...@massol.net
Note: I’ve now moved the tutorial to its final location at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/MasterDetailTutorial

Thanks
-Vincent

On 20 Sep 2015 at 17:28:31, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Hi Gus,
>  
> Here’s a first version of a Master-Detail Tutorial:  
> http://dev.xwiki.org/xwiki/bin/view/Drafts/MasterDetailTutorial
>  
> Now the next step is to build this into XWiki, I’ve created a JIRA issue for 
> that:  
> http://jira.xwiki.org/browse/XWIKI-12598
>  
> Note that the tutorial probably needs polishing a bit before we move it to 
> documentation proper (let me know what’s missing when you try to follow it, 
> right now it’s pretty bare of explanations).  
>  
> Thanks  
> -Vincent
>  
>  
>  
> On 18 Sep 2015 at 14:55:09, HadleysHope 
> (justin.scott-ex...@bannerhealth.com(mailto:justin.scott-ex...@bannerhealth.com))
>  wrote:
>  
> > Thanks so much for your help with this :)
> >  
> >  
> >  
> > --
> > View this message in context: 
> > http://xwiki.475771.n2.nabble.com/Migration-away-from-TikiWiki-Forms-based-question-tp7595997p7596079.html
> >  

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


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

2015-09-21 Thread vinc...@massol.net
Hi Paul,

On 18 Sep 2015 at 18:30:01, Paul Libbrecht 
(p...@hoplahup.net(mailto:p...@hoplahup.net)) wrote:

> Hello Vincent,
> > so it should work fine. I also see in 
> > ConfluenceWikiScanner.splitMacroParams() the code to split the parameters. 
> > Nope, it failed.

What failed?

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}

This worked too:

{documentTree}

This worked too (showing we can pass one parameter):

{documentTree:checkboxes=true}

This worked too (showing you can pass more than 1 parameter):

{documentTree:checkboxes=true|root=space:xwiki:Blog}

> What worked is to read a parameter or make it an {html} macro though:
> - {jsmath:f=\\frac\{x\}\{x+3\}}
> - {html}\( \frac{x+3}{x} \){html}
> The first, however, is a plague to use because of th eneed to escape all 
> curly brackets.
> > Note: It’s still interesting to me to make macros work well in the 
> > confluence syntax so if you want to continue on that path I’m happy to help 
> > as I can. is it useful to document it somewhere? where?


What would you wish to document? The Confluence syntax? If so I think we should 
point to some reference page from the Atlassian site instead (putting a link 
here: 
http://rendering.xwiki.org/xwiki/bin/view/Main/WebHome#HSupportedSyntaxes).

> That's easy enough to keep it in Confluence for now.
> > Now I’d recommend that once you have a page in Confluence syntax inside 
> > XWiki, you convert it to XWiki Syntax 2.1 and then you won’t have any 
> > problem in using any wiki macro or the WYSIWYG editor and all features of 
> > XWiki in general. Good point. I'll keep that in mind as the next step.
> > > BTW do you know that we have a Confluence importer? :) I know it but the 
> > > confluence I import from is a version 3 and apparently, confluence 
> > > version 4 and 5 cannot import xml exports of version 3. This importer 
> > > seems to be focussed on version 5 which is the latest and it's good this 
> > > way.

Ok, didn’t know about your version and the one our importer supports.

> I wonder if such importers should not stay at the level of scripting code 
> which others hack.

Are you referring to our Confluence importer? Do you mean not writing our 
official importer in java but instead in script in wiki pages?

> My little solution works just for me and that's fine this way... and probably 
> improters will be this way for a long time.

Thanks
-Vincent
 
> Paul

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


Re: [xwiki-users] Master-Detail Tutorial with AWM (was Re: Migration away from TikiWiki - Forms based question.)

2015-09-21 Thread vinc...@massol.net


On 21 Sep 2015 at 16:34:08, HadleysHope 
(justin.scott-ex...@bannerhealth.com(mailto:justin.scott-ex...@bannerhealth.com))
 wrote:

> Ok must be doing something wrong :S
>  
> I get to step 6 and save JSON page and all I get is a blank page entitled
> "JSON", not anywhere to enter new data :(

My understanding is that you finished step 6 and you’re now at Step 7.

I’ve slightly reworded step 7 at 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/MasterDetailTutorial#HStep7:CreateanentryintheStateApplication

You need to navigate to the State Application now.

Thanks
-Vincent

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


Re: [xwiki-users] Master-Detail Tutorial with AWM (was Re: Migration away from TikiWiki - Forms based question.)

2015-09-21 Thread vinc...@massol.net


On 21 Sep 2015 at 17:02:43, HadleysHope 
(justin.scott-ex...@bannerhealth.com(mailto:justin.scott-ex...@bannerhealth.com))
 wrote:

> Ok so went through it again and it didnt work for me so deleted it all and
> imported the XAR, interestingly that doesnt work for me either, it imports
> but the city field doesnt populate?! I must be doing something boneheaded
> here :(

I tried the XAR in a new instance too and it worked so my guess is that you 
added some Javascript Extension and since the default caching is “long”, it’s 
still in your browser cache.

Try refreshing your browser cache and see if it helps.

BTW if you want fast answers to debug the issue you could also log on IRC where 
we’re all present! :)

http://dev.xwiki.org/xwiki/bin/view/Community/IRC

Thanks
-Vincent
___
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-22 Thread vinc...@massol.net



On 22 Sep 2015 at 10:33:40, Marius Dumitru Florea 
(mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com)) wrote:

> On Sun, Sep 20, 2015 at 2:08 PM, Mohit Gupta wrote:
> > looks like for generated urls xwiki not appending right application context
> > name i.e "myWiki" but instead using "xwiki" . it should be
> > /myWiki/resources/uicomponents/logging/logging.js
>  
> If you're using XWiki 7.2M1+ then the right context path should be
> used. Sergiu fixed this with
> https://github.com/xwiki/xwiki-platform/commit/58295a36aa61a2a99956093b9571f033aecde912

This commit seems to have be committed in 7.1 according to the JIRA issue: 
http://jira.xwiki.org/browse/XWIKI-12155

Thus this commit should in 7.2M1+. Is the JIRA fix version wrong?

> . You can check init.vm to see whether the 'xwiiki' context path is
> hardcoded or not for logging.js .
>  
> Note that 7.2 final is not released yet so I wouldn't recommend using
> 7.2M1/M2/M3/RC1 expect for testing because they are development
> versions. Moreover, during 7.2 we did a lot of changes required to add
> support for nested spaces/documents and thus the milestones are less
> stable than usual.

I agree.

OTOH it’s very good that you’re trying it and provide feedback for us since 
this allows us to fix things to release an as-stable-as-possible 7.2 version :)

Just don’t put it in production!

Now we need to check if your problem still exist on 7.2RC1 and fix it. I don’t 
have the time right now but I’ll try to reproduce this week and fix the problem 
if I can. I’ll post back my findings.

Thanks a lot for your help!
-Vincent

>  
> Hope this helps,
> Marius
>  
> >
> >
> > i tried below configuration in xwiki.cfg but it did not help
> >
> > xwiki.home=http://localhost:/myWiki/
> > xwiki.webapppath=myWiki
> >
> > On Sun, Sep 20, 2015 at 4:19 PM, Mohit Gupta wrote:
> >
> >> Hi All,
> >>
> >> I switched to MySQL. Server starts without any error. But when i hit url
> >> in browser. Page is stuck(looks like its refreshing but not proceeding)
> >>
> >> XWiki is initializing (12%)...
> >>
> >>
> >> Here are the logs from localhost_access_log.2015-09-20 file
> >>
> >>
> >> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> >> /myWiki/bin/view/Main/ HTTP/1.1" 503 2823
> >> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> >> /xwiki/bin/webjars/resources/path?value=requirejs%2F2.1.15%2Frequire.min.js
> >> HTTP/1.1" 404 1015
> >> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> >> /xwiki/resources/uicomponents/logging/logging.js HTTP/1.1" 404 1045
> >>
> >> I am not getting what is missing here
> >>
> >> On Thu, Sep 17, 2015 at 3:20 PM, Clemens Klein-Robbenhaar <
> >> c.robbenh...@espresto.com> wrote:
> >>
> >>> Hi *,
> >>>
> >>> > Hi Mohit,
> >>> >
> >>> >
> >>> > On 1 Sep 2015 at 15:32:48, Mohit Gupta (motgu...@gmail.com(mailto:
> >>> motgu...@gmail.com)) wrote:
> >>> >
> >>> >> Hi Vincet,
> >>> >>
> >>> >> I took the latest war
> >>> file(xwiki-enterprise-web-7.2-20150828.151901-292.war
> >>> >> )
> >>> >> from the link
> >>> >>
> >>> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/7.2-SNAPSHOT/
> >>> >> but getting exception when i hit the wiki url in browser. Here is the
> >>> full
> >>> >> stack trace
> >>> >
> >>> > [snip]
> >>> >
> >>> >> java.lang.NullPointerException
> >>> >>
> >>> org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(HqlSqlWalker.java:560)
> >>> >
> >>> > Strange, I don’t remember seeing this error before. It looks like an
> >>> Hibernate bug.
> >>> >
> >>>
> >>> Has been reported as such, and usually rejected, e.g.:
> >>> https://hibernate.atlassian.net/browse/HHH-3715
> >>>
> >>> I feel that the problem is that the XWQL-Query is not translated to HQL
> >>> properly
> >>>
> >>> > The query we send is:
> >>> >
> >>> > "where doc.object(XWiki.XWikiServerClass).server = :wikiAlias and
> >>> doc.name like 'XWikiServer%’"
> >>> >
> >>>
> >>> This is a XWQL query, however, and the HQL that is created from it (I
> >>> guess its created from the query, as that is what is shown in the error
> >>> 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).
> >>

Re: [xwiki-users] Master-Detail Tutorial with AWM (was Re: Migration away from TikiWiki - Forms based question.)

2015-09-22 Thread vinc...@massol.net
Hi Gus,

Any luck with the browser cache clearing?

If not, I’ll retest everything on your version. What’s your XWiki version 
already? 7.1.2?

Thanks
-Vincent


On 21 Sep 2015 at 18:43:38, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

>  
>  
> On 21 Sep 2015 at 17:02:43, HadleysHope 
> (justin.scott-ex...@bannerhealth.com(mailto:justin.scott-ex...@bannerhealth.com))
>  wrote:
>  
> > Ok so went through it again and it didnt work for me so deleted it all and
> > imported the XAR, interestingly that doesnt work for me either, it imports
> > but the city field doesnt populate?! I must be doing something boneheaded
> > here :(  
>  
> I tried the XAR in a new instance too and it worked so my guess is that you 
> added some Javascript Extension and since the default caching is “long”, it’s 
> still in your browser cache.  
>  
> Try refreshing your browser cache and see if it helps.  
>  
> BTW if you want fast answers to debug the issue you could also log on IRC 
> where we’re all present! :)  
>  
> http://dev.xwiki.org/xwiki/bin/view/Community/IRC  
>  
> Thanks  
> -Vincent
>  
>  


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


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

2015-09-22 Thread vinc...@massol.net
Hi Bryn,

On 23 Sep 2015 at 07:48:15, Bryn Jeffries 
(bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) 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?

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

Thanks
-Vincent

___
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 vinc...@massol.net


On 23 Sep 2015 at 09:27:36, Bryn Jeffries 
(bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) 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.

ok so I misread. What you could do is redirect the page with:

{{velocity}}
#if("$!{request.xpage}" != 'plain')
  $response.sendRedirect($doc.getURL('view', 'xpage=plain'))
#else
  Hello world!
#end
{{/velocity}}

Thanks
-Vincent
___
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 vinc...@massol.net
 




On 23 Sep 2015 at 09:55:29, Bryn Jeffries 
(bryn.jeffr...@sydney.edu.au(mailto:bryn.jeffr...@sydney.edu.au)) wrote:

> Vincent wrote:
> > {{velocity}}
> > #if("$!{request.xpage}" != 'plain')
> > $response.sendRedirect($doc.getURL('view', 'xpage=plain')) #else
> > Hello world!
> > #end
> > {{/velocity}}
> >
>  
> Thanks again for the quick response. That's a good suggestion, but I think 
> loses any query parameters that I'd passed to the page to use in the script.

This is just an example, you can of course keep the query parameters passed :) 
You have them in $request.queryString.

Thanks
-Vincent

> It's looking like I'll just have to include the extra parameter for now. I 
> think I'm pushing against the way things are meant to be done in XWiki, but I 
> don' really have time to align things better at present.
>  
> Thanks,
>  
> Bryn

___
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 vinc...@massol.net
Hi Sylvain,


On 23 Sep 2015 at 13:05:18, Thomas Mortagne 
(thomas.morta...@xwiki.com(mailto:thomas.morta...@xwiki.com)) wrote:

> Unfortunately extracting the year of a date field is not supported by
> XWQL. See http://jira.xwiki.org/browse/XWIKI-6645.

As a workaround you could maybe use HQL, see 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples#HAdvancedQuery28date26time29

Thank
-Vincent

> 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


Re: [xwiki-users] [ANN] XWiki 7.2 released

2015-09-24 Thread vinc...@massol.net
Hi Hamster,

On 25 Sep 2015 at 08:39:49, Hamster 
(teun...@hotmail.com(mailto:teun...@hotmail.com)) wrote:

> Just wondering...
>  
>  
> In the release notes you always have a section "Tested Browsers &
> Databases".
>  
> You list several browser and several databases that you support and how they
> have been tested. None of the browsers and databases are being tested (or so
> you say :-).
>  
> Regarding the supported browsers, you mention IE8 and IE9 in your release
> notes, but on your Browser Support Strategy
> ,
> IE8 and IE9 are listed as NOT supported. IE10 and up is.
>  
> Copy-paste of old info?

Yes thanks for raising this up, there are several issues:

1) We have a process issue: There are some community members doing testing of 
XWiki releases but they do it *after* a version has been released (they tested 
RC1 for example, see http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Re 
leaseNotesXWiki72RC1#HTestedBrowsers26Databases, which leads to 
http://www.xwiki.org/xwiki/bin/view/TestReports/ManualTestReportXWiki72RC1#HJiraTicketsMarkedasFixedintheReleaseNotes
 if you click. In 7.2RC1 they’ve only tested on Chrome 45 and HSQLDB 2.3.2 for 
example. Usually they test on various browsers and DBs only for the final 
release (i.e. 7.2 here). Thus when the Release is made the report is not ready 
yet.

2) The Release Notes for 7.2 final seems to be missing some parts at the end. 
That seems a glitch. For example it’s missing "Known issues” and "Backward 
Compatibility and Migration Notes” sections

3) The Template used for Tested Browsers & Databases is wrong: as you rightly 
mentioned, support for IE8/9 has been dropped recently.

For 1), I’ve updated 
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HTestedBrowsers26Databases
 and I’m changing the Release Notes templates to reflect this so that we don’t 
display false information in the future.

For 3) I’m updating the Template too

For 2) I’ll add the missing parts

Thanks
-Vincent

> View this message in context: 
> http://xwiki.475771.n2.nabble.com/ANN-XWiki-7-2-released-tp7596168p7596173.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


Re: [xwiki-users] [ANN] XWiki 7.2 released

2015-09-24 Thread vinc...@massol.net
 




On 25 Sep 2015 at 08:51:01, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Hi Hamster,
>  
> On 25 Sep 2015 at 08:39:49, Hamster 
> (teun...@hotmail.com(mailto:teun...@hotmail.com)) wrote:
>  
> > Just wondering...
> >
> >
> > In the release notes you always have a section "Tested Browsers &
> > Databases".
> >
> > You list several browser and several databases that you support and how they
> > have been tested. None of the browsers and databases are being tested (or so
> > you say :-).
> >
> > Regarding the supported browsers, you mention IE8 and IE9 in your release
> > notes, but on your Browser Support Strategy
> > ,
> > IE8 and IE9 are listed as NOT supported. IE10 and up is.
> >
> > Copy-paste of old info?  
>  
> Yes thanks for raising this up, there are several issues:  
>  
> 1) We have a process issue: There are some community members doing testing of 
> XWiki releases but they do it *after* a version has been released (they 
> tested RC1 for example, see 
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Re 
> leaseNotesXWiki72RC1#HTestedBrowsers26Databases(http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72RC1#HTestedBrowsers26Databases),
>  which leads to 
> http://www.xwiki.org/xwiki/bin/view/TestReports/ManualTestReportXWiki72RC1#HJiraTicketsMarkedasFixedintheReleaseNotes
>  if you click. In 7.2RC1 they’ve only tested on Chrome 45 and HSQLDB 2.3.2 
> for example. Usually they test on various browsers and DBs only for the final 
> release (i.e. 7.2 here). Thus when the Release is made the report is not 
> ready yet.  
>  
> 2) The Release Notes for 7.2 final seems to be missing some parts at the end. 
> That seems a glitch. For example it’s missing "Known issues” and "Backward 
> Compatibility and Migration Notes” sections 

e… I actually caused the issue when I updated the RN a few minutes ago :) 
Fixed now for this point! Sorry about the false alarm.

Thanks
-Vincent

>  
> 3) The Template used for Tested Browsers & Databases is wrong: as you rightly 
> mentioned, support for IE8/9 has been dropped recently.  
>  
> For 1), I’ve updated 
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HTestedBrowsers26Databases
>  and I’m changing the Release Notes templates to reflect this so that we 
> don’t display false information in the future.  
>  
> For 3) I’m updating the Template too  
>  
> For 2) I’ll add the missing parts  
>  
> Thanks  
> -Vincent
>  
> > View this message in context: 
> > http://xwiki.475771.n2.nabble.com/ANN-XWiki-7-2-released-tp7596168p7596173.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


Re: [xwiki-users] [ANN] XWiki 7.2 released

2015-09-25 Thread vinc...@massol.net

On 25 Sep 2015 at 08:52:15, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

>  
> On 25 Sep 2015 at 08:51:01, vinc...@massol.net 
> (vinc...@massol.net(mailto:vinc...@massol.net)) wrote:
>  
> > Hi Hamster,
> >
> > On 25 Sep 2015 at 08:39:49, Hamster 
> > (teun...@hotmail.com(mailto:teun...@hotmail.com)) wrote:
> >
> > > Just wondering...
> > >
> > >
> > > In the release notes you always have a section "Tested Browsers &
> > > Databases".
> > >
> > > You list several browser and several databases that you support and how 
> > > they
> > > have been tested. None of the browsers and databases are being tested (or 
> > > so
> > > you say :-).
> > >
> > > Regarding the supported browsers, you mention IE8 and IE9 in your release
> > > notes, but on your Browser Support Strategy
> > > ,
> > > IE8 and IE9 are listed as NOT supported. IE10 and up is.
> > >
> > > Copy-paste of old info?
> >
> > Yes thanks for raising this up, there are several issues:
> >
> > 1) We have a process issue: There are some community members doing testing 
> > of XWiki releases but they do it *after* a version has been released (they 
> > tested RC1 for example, see 
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Re 
> > leaseNotesXWiki72RC1#HTestedBrowsers26Databases(http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72RC1#HTestedBrowsers26Databases),
> >  which leads to 
> > http://www.xwiki.org/xwiki/bin/view/TestReports/ManualTestReportXWiki72RC1#HJiraTicketsMarkedasFixedintheReleaseNotes
> >  if you click. In 7.2RC1 they’ve only tested on Chrome 45 and HSQLDB 2.3.2 
> > for example. Usually they test on various browsers and DBs only for the 
> > final release (i.e. 7.2 here). Thus when the Release is made the report is 
> > not ready yet.
> >
> > 2) The Release Notes for 7.2 final seems to be missing some parts at the 
> > end. That seems a glitch. For example it’s missing "Known issues” and 
> > "Backward Compatibility and Migration Notes” sections  
>  
> e… I actually caused the issue when I updated the RN a few minutes ago :) 
> Fixed now for this point! Sorry about the false alarm.  
>  
> Thanks  
> -Vincent
>  
> >
> > 3) The Template used for Tested Browsers & Databases is wrong: as you 
> > rightly mentioned, support for IE8/9 has been dropped recently.
> >
> > For 1), I’ve updated 
> > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki72#HTestedBrowsers26Databases
> >  and I’m changing the Release Notes templates to reflect this so that we 
> > don’t display false information in the future.
> >
> > For 3) I’m updating the Template too
> >
> > For 2) I’ll add the missing parts

1), 2) and 3) are now fixed!

Thanks
-Vincent

> > Thanks
> > -Vincent
> >
> > > View this message in context: 
> > > http://xwiki.475771.n2.nabble.com/ANN-XWiki-7-2-released-tp7596168p7596173.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


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

2015-09-26 Thread vinc...@massol.net
Hi Mahomed,

I’d like to help you but the stack trace you’ve put below seems to indicate 
that there’s a bug in XWiki. Marius is the one who coded this part and I’m sure 
he’s going to check it out as soon as Monday morning.

Right now I suggest you roll back to your previous version and wait for a fix.

Thanks
-Vincent

On 26 Sep 2015 at 10:13:12, Mahomed Hussein (maho...@custodiandc.com) wrote:

Hi  

I know it's a Saturday but I hope someone out there can help with the search 
issue. I have tried a re-index and I've been trying to search the XWiki Jira 
but haven't found anything.  

Ideally I need to have this fixed by Monday. Pretty please. Thanks.  


Kind regards,  

Mahomed  




-Original Message-  
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Mahomed Hussein  
Sent: 25 September 2015 17:51  
To: XWiki Users   
Subject: [xwiki-users] Search failing after upgrade to 7.2  

Hi  

We upgraded to 7.2 today and I’m having a couple of issues that I hope someone 
can help me with. I’ve had a look through the recent mailing list topics and 
nothing seems to match.  


· We have a custom skin based on Flamingo but the skin hasn’t picked up the new 
changes to the skin. I’ve tried searching for the tutorial for creating a 
custom skin and can’t find it. So can someone please help me with:  

o Link to the tutorial/documentation for creating a custom skin  

o The physical location on the file system where the custom skin is stored. I 
can’t seem to find it for some reason.  

· More importantly, search appears to be broken. Any help in fixing would be 
greatly appreciated. The error is that it “Failed to execute the [velocity] 
Macro”. When I click for more detail, I get: (sorry for the length)  



org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity 
Macro for content [#handleSolrSearchRequest]  

at 
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131)
  

at 
org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:50)
  

at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:286)
  

at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)
  

at 
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
  

at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269)
  

at 
org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
  

at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:94)
  

at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:252)
  

at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:125)
  

at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:55)
  

at 
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
  

at 
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
  

at 
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113)
  

at 
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
  

at 
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67)
  

at 
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41)
  

at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1164)  

at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1127)  

at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1179)  

at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:683)  

at sun.reflect.GeneratedMethodAccessor384.invoke(Unknown Source)  

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)  

at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
  

at 
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:567)
  

at 
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
  

at 
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
  

at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)  

at 
org.apache.vel

Re: [xwiki-users] HTTP 500 - war installation with Jetty and HSQLDB

2015-09-27 Thread vinc...@massol.net
Hi Sebastian,

On 27 Sep 2015 at 20:07:53, s.schafer 
(s.scha...@ssi.samsung.com(mailto:s.scha...@ssi.samsung.com)) wrote:

> Hi all,
> I'm new with xwiki and need help before I go crazy here. I just tried to
> install the 'proper' .war installation after a being happy with the xwiki
> standalone installation. The main reason to switch is not performance (it'll
> be a small wiki), but the fact that I can't seem to run it as a service and
> it stopped running after not being logged on for a couple of days. Back to
> topic...
> I chose what seemed like the easiest path to me from the manual install
> documentation:
> Jetty (9.3.3) + HSQLDB (2.3.3) + xwiki (7.2) on Windows server 2008 R2
> (don't have a choice of using something else there)
> I think my problem is an utter lack of knowledge of how to configure
> jetty+hsqldb.
> The good news is that I get to the xwiki initialization screen when I access
> hostname:8080/xwiki/
> Bad news is that it throws a http 500 error once it's done initializing, see
> the log below.
> Here is what I did: I literally wet by the documentation and I suspect that
> I'm missing the part where I define the hsqldb setup (db location and
> connection):
> - extracted jetty in a folder
> - extracted the xwiki 7.2 .war file into the webapps subfolder in jetty
> - copied the hsqldb.jar file in the WEB-INF/lib subfolder in xwiki
> - uncommented the HSQLDB part in the hibernate.cfg.xml
> - set the directory to environment.permanentDirectory="E:/Data/Wiki/data/"
> in xwiki.properties; I used unix-like path even though I'm on windows. Using
> \ instead of / did not work either

That looks ok (see 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationHSQL).

Yes you need to use “/“ in xwiki.properties.

> I did not set up a database, user, etc for hsqldb, is that my problem? The
> documentation made it sound like this is not necessary.
> I would really appreciate any input because I started over again a few times
> already and am lost.

Missing the logs to know what your problem is.

Normally it should be ok

Thanks
-Vincent

>  
> Cheers
>  
> Sebastian

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


Re: [xwiki-users] Xwiki templates

2015-09-27 Thread vinc...@massol.net
Hi,

Any web site can be developed on XWiki. That said, it can be more or less 
complex depending on what you wish to achieve.

In your case you need to develop a custom skin, which is pretty simple (for 
starter you can simply override the view.vm in your skin and use the HTML 
template you wish to use and use $doc.getRenrederedContent() for the content).

See http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins

See also http://www.xwiki.org/xwiki/bin/view/Main/Screenshots for what people 
have achieved with XWiki.

Thanks
-Vincent

On 27 Sep 2015 at 17:54:32, Mohit Gupta (motgu...@gmail.com) wrote:

Hi All,  

I want to develop website similar to http://www.artpal.com/ or any other  
art website.  
Basic requirements are :-  

1)I can upload my painting images,  
2)User can change the painting background if somebody want  
3)Allow user to purchase painting using card payment like in any other  
site,  
4) categorize different type of painting.  


Are there some readymade template available which i can use as base and  
then quickly develop on that? Just for info I am a java resource having  
around 10 years of exp.  

Thanks and Regards  
Mohit  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Migration failed

2015-09-28 Thread vinc...@massol.net
Hi Jody,

Unfortunately we’ve noticed this migration issue with oracle after we released 
7.2. Here’s the issue for it: http://jira.xwiki.org/browse/XWIKI-12625

As you can we fixed it yesterday and we may package it in a 7.2.1 version in 
the future.

For now, there’s a JAR attached to the issue that you can use to replace yours 
and it should work fine.

Sorry for the inconvenience

Thanks
-Vincent


On 29 Sep 2015 at 04:53:28, Jody BURGER 
(j.bur...@bfc.nc(mailto:j.bur...@bfc.nc)) wrote:

> Hi all,
> I'm actually working to migrate our wiki from 6.4.5 to 7.2 as it
> implement the feature we were looking for, since the begining of this year !
>  
> So as i did before i upgraded the .war manually,
> I replaced all config files to match my needs,
>  
> i'm working on oracle 11g so my hibernate looks like :
>  
> > name="connection.url">jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=My_server)
> (PORT=My_Port))(ADDRESS=(PROTOCOL=TCP)(HOST=My_server)
> (PORT=My_Port))(CONNECT_DATA=(SERVICE_NAME=xwiki)(FAILOVER_MODE=(TYPE =
> SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 5
> xwiki
> xwiki
> > name="connection.driver_class">oracle.jdbc.driver.OracleDriver
> > name="dialect">org.hibernate.dialect.Oracle10gDialect
> true
> 0
> false
> 20
>  
>  
>  
>  
>  
>  
> i also set the migration parameter in xwiki.cfg
> xwiki.store.migration=1
>  
> But i can't get through it ... my logs looks like :
>  
> 2015-09-29 13:28:01,157 [coreLoadExecutor-5-thread-1] WARN
> o.a.s.r.ManagedResource - No stored data found for /rest/managed
> 2015-09-29 13:28:01,453 [main] INFO o.x.s.s.i.EmbeddedSolrInstance -
> Started embedded Solr server.
> 2015-09-29 13:28:01,640 [main] INFO o.x.o.i.s.DefaultOfficeServer -
> Open Office instance started.
> 2015-09-29 13:31:19,030 [XWiki initialization] INFO
> .HibernateDataMigrationManager - Storage schema updates and data
> migrations are enabled
> 2015-09-29 13:31:19,420 [XWiki initialization] INFO
> .HibernateDataMigrationManager - The following data migration(s) will be
> applied for wiki [xwiki] currently in version [72000]:
> 2015-09-29 13:31:19,435 [XWiki initialization] INFO
> .HibernateDataMigrationManager - R72001XWIKI12228 - Make sure
> xwikidocument and xwikispace tables are in sync
> 2015-09-29 13:31:19,435 [XWiki initialization] INFO
> .HibernateDataMigrationManager - Checking Hibernate mapping and updating
> schema if needed for wiki [xwiki]
> 2015-09-29 13:31:20,371 [XWiki initialization] INFO
> .HibernateDataMigrationManager - Starting data migration
> [R72001XWIKI12228] with version [72001] on database [xwiki]
> 2015-09-29 13:31:20,387 [XWiki initialization] WARN
> o.h.u.JDBCExceptionReporter - SQL Error: 904, SQLState: 42000
> 2015-09-29 13:31:20,387 [XWiki initialization] ERROR
> o.h.u.JDBCExceptionReporter - ORA-00904: "TRUE" : identificateur non
> valide
>  
> 2015-09-29 13:31:20,402 [XWiki initialization] ERROR
> .HibernateDataMigrationManager - Failed to migrate database [xwiki]...
> com.xpn.xwiki.store.migration.DataMigrationException: Data migration
> R72001XWIKI12228 failed
> [...]
> Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "TRUE" :
> identificateur non valide
> [...]
> 2015-09-29 13:31:20,402 [XWiki initialization] ERROR
> .HibernateDataMigrationManager - Main wiki database migration failed, it
> is not safe to continue!
> 2015-09-29 13:31:20,402 [XWiki initialization] ERROR
> c.x.x.XWiki - Failed to initialize mandatory document
> com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while
> reading document [xwiki:XWiki.WikiMacroParameterClass]
> [...]
> Caused by: com.xpn.xwiki.XWikiException: Error number 3301 in 3:
> Exception while switching to database xwiki
> [...]
>  
> I'm so confused ... what did i do wrong ?!
> Hope someone can help me to deal with it :)
> Best regards,
> JB
> --
> //j.bur...@bfc.nc  
>  
> recycle ///Sauvez la planète, n'imprimez que si c'est nécéssaire.///

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


Re: [xwiki-users] HTTP 500 - war installation with Jetty and HSQLDB

2015-09-29 Thread vinc...@massol.net
Hi,

The error is “Caused by: org.xml.sax.SAXParseException; lineNumber: 230; 
columnNumber: 21; The content of element type "session-factory" must match 
"(property*,mapping*,(class-cache|collection-cache)*,event*,listener*)". “

This means that you have modified hibernate.cfg.xml and have made some errors 
in it (you’re not following the schema). You should verify the changes you’ve 
brought to this file.

Thanks
-Vincent

On 29 Sep 2015 at 18:26:31, Sebastian Schafer 
(s.scha...@ssi.samsung.com(mailto:s.scha...@ssi.samsung.com)) wrote:

> Hi,
> thank you Paul, Vincent for your quick feedback. I inserted the log as raw 
> text in the nabble forum but it looks like it disappeared...
> I later tried to send the complete browser output text but the message was 
> rejected (~300kB) - so I'll try just sending the first part.
> I guess usually zipping and attaching the output is not recommended?
> Here is the browser output/log I get when I request the main page, sorry that 
> it's so long...
>  
> HTTP ERROR 500
>  
> Problem accessing /xwiki/bin/view/Main/. Reason:

[snip]

> Caused by: org.xml.sax.SAXParseException; lineNumber: 230; columnNumber: 21; 
> The content of element type "session-factory" must match 
> "(property*,mapping*,(class-cache|collection-cache)*,event*,listener*)".
> at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
> Source)
> at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
> at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
> at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
> Source)
> at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>  Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> at org.dom4j.io.SAXReader.read(SAXReader.java:465)
> at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2238)
> ... 84 more

[snip]

> From: Vincent Massol [mailto:vmas...@gmail.com] On Behalf Of 
> vinc...@massol.net
> Sent: Sunday, September 27, 2015 12:46 PM
> To: XWiki Users
> Cc: Sebastian Schafer
> Subject: Re: [xwiki-users] HTTP 500 - war installation with Jetty and HSQLDB
>  
> Hi Sebastian,
>  
> On 27 Sep 2015 at 20:07:53, s.schafer 
> (s.scha...@ssi.samsung.com(mailto:s.scha...@ssi.samsung.com)) wrote:
>  
> > Hi all,
> > I'm new with xwiki and need help before I go crazy here. I just tried to
> > install the 'proper' .war installation after a being happy with the xwiki
> > standalone installation. The main reason to switch is not performance (it'll
> > be a small wiki), but the fact that I can't seem to run it as a service and
> > it stopped running after not being logged on for a couple of days. Back to
> > topic...
> > I chose what seemed like the easiest path to me from the manual install
> > documentation:
> > Jetty (9.3.3) + HSQLDB (2.3.3) + xwiki (7.2) on Windows server 2008 R2
> > (don't have a choice of using something else there)
> > I think my problem is an utter lack of knowledge of how to configure
> > jetty+hsqldb.
> > The good news is that I get to the xwiki initialization screen when I access
> > hostname:8080/xwiki/
> > Bad news is that it throws a http 500 error once it's done initializing, see
> > the log below.
> > Here is what I did: I literally wet by the documentation and I suspect that
> > I'm missing the part where I define the hsqldb setup (db location and
> > connection):
> > - extracted jetty in a folder
> > - extracted the xwiki 7.2 .war file into the webapps subfolder in jetty
> > - copied the hsqldb.jar file in the WEB-INF/lib subfolder in xwiki
> > - uncommented the HSQLDB part in the hibernate.cfg.xml
> > - set the directory to environment.permanentDirectory="E:/Data/Wiki/data/"
> > in xwiki.properties; I used unix-like path even though I'm on windows. Using
> > \ instead of / did not work ei

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

2015-09-30 Thread vinc...@massol.net

On 30 Sep 2015 at 10:38:55, pbasnews-thor...@yahoo.fr 
(pbasnews-thor...@yahoo.fr(mailto:pbasnews-thor...@yahoo.fr)) wrote:

> Hi,
>  
> Could you provide this nice wiki?
>  
> description: web site to share some presentation, news and strategies about 
> our clan: "Valhalla" on game: "Clash of clans"
> owner name: thorgal aegirsson
> wiki name: coc.myxwiki.org

Sorry, I cannot accept that, I’m a Castle Clash player :)

Just kidding of course, I’ve created your wiki here:
http://coc.myxwiki.org/xwiki/bin/view/Main/

Remember that it obeys the rules defined at 
http://myxwiki.org/xwiki/bin/view/Main/WebHome

Thanks
-Vincent

> Thxs
>  
> Thorgal

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


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

2015-09-30 Thread vinc...@massol.net
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


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

2015-09-30 Thread vinc...@massol.net
Hi Pascal,

On 1 Oct 2015 at 08:42:22, Pascal BASTIEN 
(pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote:

> Hi,
>  
> Like Vincent suggest, here a new discussion thread about PR for owner on 
> myxwiki.org.
>  
> On my new fresh myxwiki.org site, I wanted apply a nice CSS on all the site 
> with a StyleSheetExtension object, but without PR it is impossible (or more 
> complicated: I must find a way).
>  
> I think that allow PR right on creator account (or user with admin right) 
> will be helpful.
> I think allow PR for only one member (creator ) will be fine because if 
> something going wrong he will be the only interlocutor and responsable for 
> his site deletion (if he is naughty one).

I’m ok on my side to allow Owner to be able to use the “Always on this wiki” 
visibility for JSX/SSX.

> 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

> Could you think/discuss about it?
>  
> Thxs
>  
>  
> Pascal B.
>  
> 
> En date de : Mer 30.9.15, vinc...@massol.net a écrit :
>  
> Objet: Re: [xwiki-users] StyleSheetExtension doesn't work on myxwiki.org ?
> À: "XWiki Users"  
> Cc: pbasnews-xw...@yahoo.fr
> Date: Mercredi 30 septembre 2015, 19h23
> 
> >
> > 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


  1   2   3   4   5   6   7   8   >