Hello,
(My french boss) noticed than a space character missing between question mark and text in FAQ application...
Rather to modify the code, do you think there is a way to fix it with CSS?
Note: I wanted fix it on Xwiki then I looking for typographical rules about that but I didn't found an authoritative source... :-/
http://english.stackexchange.com/questions/14003/any-authoritative-source-o…http://www.sdbcompany.com/index.php?option=com_content&view=article&id=59&I… => "Question mark (?): General rule: non-breaking space before the question mark and space after."
http://en.wikipedia.org/wiki/Question_mark#Stylistic_variants => "French usage must include a non-breaking space before the question mark (for example, "Que voulez-vous boire ?"), whereas in the English language orthography no space is allowed in front of the question mark (e.g. "What do you drink?")"
Pascal B.
Hello,
I'd like to connect xwiki with our AD. But I don't get it right.
I used these guide:
https://network.xwiki.com/xwiki/bin/view/DocXE34En/LDAPAuthentication#HMicro
softActiveDirectory
In xwiki.cfg made following changes: (Domain: Test.local)
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthSer
viceImpl
xwiki.authentication.ldap=1
xwiki.authentication.ldap.server=192.168.100.41
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.bind_DN=test{0}
xwiki.authentication.ldap.bind_pass={1}
xwiki.authentication.ldap.base_DN=dc=test,dc=local
xwiki.authentication.ldap.UID_attr=sAMAccountName
xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=sn,fi
rst_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
Then I restarted xwiki. But my user could not logging on.
In the guide they say that it is also possible to configure LDAP over UI.
But I can't find it. How do I come in Object Mode in Preferences and where
can I find the Logs?
Thank you for your help.
Best Regards,
Alexander Steinberg
Hello Community,
our company is looking for an alternative for our confluence wiki. It seems
to me xwiki could be the right wiki for us.
Now my question: Is there a way to migrate confluence with all insert files,
sites and blogposts to xwiki?
Thank you for your help.
Best Regards,
Alexander Steinberg
We've received a few questions from new users trying to register for the
wiki.
The registration form does not require an email to be entered in the
email field. If it is not supplied, and the form submitted, the newly
registered user cannot log in as they need a validation key that was
emailed to them (but remember, no email entered).
Here is a demo: http://youtu.be/xk0t7Hf3rQY
Is this a local issue that I can fix in the admin panels (we do want to
confirm users email), or is this an issue with the registration form itself?
Thanks,
Patrick
--
|| | | |||| || || | |||| ||| | |||
Patrick Masson
General Manager, Director & Secretary to the Board
Open Source Initiative
855 El Camino Real, Ste 13A, #270
Palo Alto, CA 94301
United States
OSI Phone: (415) 857-5398
Direct Phone: (970) 4MASSON
Skype: massonpj
Em: masson(a)opensource.org <mailto:masson@opensource.org>
Ws: www.opensource.org <http://www.opensource.org>
Hello,
I want send mail from xwiki to inform XWikiAllGroup of my xwiki upgrade
I tested with Invitation application and share by email without success. Both want email or xwiki username.
Is it possible?
Thxs.
Pascal BASTIEN
Hello all,
During the last few days we have conducted smoke testing on: Firefox 32,
Chrome 37, IE8, IE9, IE10 and IE11. Also, I would like to mention that I
have conducted no full test so far on this version. The next full text will
most likely take place after version 6.2 is launched. If you wish for us to
conduct a full test on a certain browser, we will gladly honour your
request.
This link offers an overview of the issues and improvements reported by the
team on the 6.2-rc-1 version:
http://jira.xwiki.org/issues/?jql=affectedVersion%20in%20%28%226.2-rc-1%22%…
We shall continue testing for other issues and improvements.
Have a good day!
--
Andreea Zenovia Popescu
QA Engineer @XWiki
I have installed xwiki 6.1 and any object (page or space) created or edited
is sent to "preview" space.
How can i turn off this behavior to any publication can be displayed to all
users?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Doubt-Preview-Space-tp7592234.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
I have installed xwiki 6.1 and any object (page or space) created or edited
is sent to "preview" space.
How can i turn off this behavior to any publication can be displayed to all
users?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Doubt-Preview-Space-tp7592232.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi everyone,
I need to create a livetable for documents having a specific parent and
tag. For example:
Document A -> Has a parent document called "procedure" and "Server01" tag
Document B -> Has a parent document called "procedure" and "Server02" tag
Document "Server01" -> Should show a livetable with a filter for
"Parent=procedure and tag=Server01 (same as Doc.name)
Document "Server02" -> Should show a livetable with a filter for
"Parent=procedure and tag=Server02 (same as Doc.name)
I know I can create a new Document macro and filter by "Parent" and
"Space", but I also need to filter by tag. XWQL may help but I need to show
result as a link to the document.
Any guess or example to follow? Any advice will be appreciated!
Thanks!
The XWiki development team is proud to announce the availability of XWiki
6.2.
This release is mainly focused on the Flamingo skin and it being now used
by default, but also features improvements for applications such as AWM and
Blog and various performance improvements.
Developers can benefit from new APIs such as the new Mail Sender API and
the new Blame API but also from improved APIs such as the wiki module API
and JS widgets.
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/ReleaseNotesXWiki62
Thanks
-The XWiki dev team
*push*
---------- Forwarded message ----------
From: Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
Date: 2014-09-18 10:17 GMT+02:00
Subject: Re: [xwiki-users] need advice about an extension developpment
To: Michael Bußler <michael.bussler(a)googlemail.com>
heu it's my fault I didn't precised xwiki version (6.1) and skin
(flamingo)I used. :-/
------------------------------
*De :* Michael Bußler <michael.bussler(a)googlemail.com>
*À :* Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
*Envoyé le :* Jeudi 18 septembre 2014 10h08
*Objet :* Re: [xwiki-users] need advice about an extension developpment
Yes you're right, it wasn't clear to me which version of XWiki you are
using.
I'm using the latest stable, consider it working in there. ;)
Best, Michael
2014-09-18 10:02 GMT+02:00 Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>:
Thanks you but this code doesn't work with flamingo skin because this issue:
http://jira.xwiki.org/browse/XWIKI-10498
class collapsed have no effetc with flamingo (tested with firebug)
------------------------------
*De :* Michael Bußler <michael.bussler(a)googlemail.com>
*À :* Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>; XWiki Users <users(a)xwiki.org>
*Envoyé le :* Mercredi 17 septembre 2014 22h54
*Objet :* Re: [xwiki-users] need advice about an extension developpment
Hi Pascal,
I've had the same issue. Here is how I solved it with JS:
<code>
function collapse( panel ){
panel.addClassName('collapsed').removeClassName('expanded');
}
function collapsePanels() {
$$('.PanelIndex').each( collapse );
$$('.PanelAbkuerzungenLink').each( collapse );
$$('.PanelDifferentialDiagnosen').each( collapse );
$$('.PanelEintraege').each( collapse );
};
</code>
Just insert the ids of the panels you wank to be collapsed during page
loading.
You would need to add this to a page as XWiki.JavaScriptExtension object,
and make sure it is loaded for instance in the sheet.
BTW, I would really like to see a version of this using a session cookie. :)
Best regards,
Michael
(XWiki && XWiki.domIsLoaded && collapsePanels()) ||
document.observe("xwiki:dom:loaded", collapsePanels);
2014-09-17 21:40 GMT+02:00 Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>:
Thxs you (again :-) )
You have just confirmed what I was afraid of, I mean js + cookie.
I will probably look into this collapsed menu , this week. but, I am not
sure if this replies to your issue...
If you like, I will show you the result... if I manage :-/
________________________________
De : Ecaterina Moraru (Valica) <valicac(a)gmail.com>
À : Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>; XWiki Users <users(a)xwiki.org>
Envoyé le : Mercredi 17 septembre 2014 19h01
Objet : Re: [xwiki-users] need advice about an extension developpment
Hi Pascal,
If you look at
http://www.cssportal.com/css3-preview/showing-and-hiding-content-with-pure-…
the CSS code for making this work is using the :focus pseudo-class, which
is triggered when the link is selected using the mouse pointer or keyboard.
It's normal that if you navigate the focus of that element to be lost.
If you want something persistent you must implement it with JS and cookies.
CSS is not the tool to achieve these things.
On this topic there is also this issue
http://jira.xwiki.org/browse/XWIKI-10498 but this is not a priority and not
sure when/who will try to fix it (maybe even you :) )
Thanks,
Caty
On Wed, Sep 17, 2014 at 4:48 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
wrote:
Hello,
>
>I try to writing an extension to add the right panel collapsible (with CSS
only). Something like this:
>http://www.cssportal.com/css3-preview/demo/css-menu-ex4.html (hide and
seek panel)
>explained here
http://www.cssportal.com/css3-preview/showing-and-hiding-content-with-pure-…
>I inserted code in rightpanels.vm and CSS but the limitation is when I
navigate on another xwiki page/space the right panel is reset. My right
panel is not persistent.
>Do you have an advice to make my right panel persistent:
>- if user show panel and change current page, right panel must be still
open
>- if user hide panel and change current page right panel must be still
hide
>
>javascript (and cookie) are mandatory in my case?
>Do you have an elegant tip: an secret xwiki API ?
>
>Thxs
>
>Pascal B
>_______________________________________________
>users mailing list
>users(a)xwiki.org
>http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hi All,
I'm trying to set up xWiki to run as a service via the Tomcat method.
I have installed Tomcat 8.0.12, Java 7 update 67 and extracted xwiki-enterprise-web-6.1.war into the webapps folder under Tomcat. I am running on Windows Server 2012 R2.
Tomcat recognizes it but when I go to http://localhost:8080/xwiki it initializes and then appears to hang at 100%.
I can't help thinking I've missed a step. I've re-read the instruction page and have tried adding:
-XX:MaxPermSize=256m
-Xmx800m
As a troubleshooting step but no luck.
In the tomcat stderr log file I have this:
16-Sep-2014 15:58:54.012 INFO [localhost-startStop-3] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Program Files (x86)\Apache Software Foundation\Tomcat 8.0\webapps\xwiki
16-Sep-2014 15:58:54.184 SEVERE [localhost-startStop-3] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/xwiki]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1071)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1722)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@4ba620]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4854)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4983)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@1ce3a26]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:684)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 13 more
Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: zip file is empty
at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:94)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 16 more
Caused by: java.util.zip.ZipException: zip file is empty
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:86)
... 17 more
What have I missed?
Thanks.
Hello.
We're using the most recent version of xWiki (6.1) with the most recent FAQ Application (6.1) installed.
When I go to create/contribute FAQ items they do NOT appear listed under the FAQ.WebHome space. FAQ items when edited directly DO appear to have the FAQ attribute set for source Space. They also DO have FAQ.WebHome set as the parent.
When I go to manually search for said items from the FAQ.WebHome widget they also do NOT appear under a FAQ search results.
We are using the Solr search engine with XWQL and no custom queries defined.
We were using Lucene and when we searched for said items from the FAQ.WebHome widget they would appear as a result of a FAQ search, but still were NOT listed under the FAQ.WebHome space.
What are we missing?
Any insight would be appreciated.
~Patrick
Hi Xwiki Users.
I have a simple question about user rights. Here's a simple example of what
I'm trying to do:
User_X has a problem with the printer.
1 - He creates an issue in "Requests" space (created via App Within
Minutes).
2 - The IT departament checks it and solves the problem.
3 - The user marks it as closed.
What I'm asking is:
Can user_X be able to read only his own question and not user_Y's question?
I mean, I know that I can change a single page permission, but I got to do
it manually. Is it possible to make the item readable only by its autor and
by a certain group(in this case, the IT departament) when creating an
article?
Thank you very much.
Hello,
I received the error: "LDAP service is not available. Please verify your
installation"
I check the config files, and everything seems setup correctly. I am
running a Windows 2012R2. Any suggestions?
Thanks,
Ian
--
View this message in context: http://xwiki.475771.n2.nabble.com/LDAP-service-is-not-available-Please-veri…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi XWiki users,
I’m wondering if we’d be enough to start organizing an XWiki users/dev meetup in France.
Could you let me know in reply if you’d be interested in joining if I was to organize such a meetup?
If we’re enough we could imagine organizing it in September or October for example. XWiki SAS has an office located in Paris (http://www.xwiki.com/lang/en/Company/Contact) and they could host us.
Note for those who’d be coming from afar, I’m sure that it would be possible to have you sleep at some XWiki SAS employee’s place in Paris or even in the office (there’s a shower and kitchen).
Interesting or not?
If you’re interested what would you be interested in doing/seeing during this time? We could imagine a 3-4 hours meetup or even a 1 day meetup. We could also imagine having a hackathon during the time, in this case probably 2 days would be nicer.
WDYT?
Thanks
-Vincent
Hello ,
I've a small problem with a fresh install of xwiki 6.1 on solaris (tomcat, oracle).
When I try to see the deleted attachments from the 'xwiki list of documents ', I got this error (see bellow).
There is just 2 deleted doc in the table;
I tried to save the page with admin account (who has programming rights), still the same.
Any idea?
BR
Patrick
Failed to execute the [velocity] macro
org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [#if(!$xwiki.hasProgrammingRights())
{{warning}}This document requires programming rights and needs to be saved by an administrator of this Wiki{{/warning}}
#else
#set($dateFormat = 'yyyy MMMM d, HH:mm')
#if(!$request.list)
$xwiki.ssx.use('XWiki.DeletedAttachments')##
$xwiki.jsx.use('XWiki.DeletedAttachments', {'minify' : 'false'})##
##
#set($columns = ['datt.filename', 'datt.docName', 'datt.date', 'datt.deleter', 'actions'])
#set($columnProperties = {
'datt.filename' : { 'type' : 'text', 'size' : 10 },
'datt.docName' : { 'type' : 'text', 'size' : 10 },
'datt.date' : { 'type' : 'date', 'filterable' : false },
'datt.deleter' : { 'type' : 'text', 'size' : 10 },
'actions' : { 'type' : 'text', 'filterable' : false, 'sortable' : false }
})##
#set($options = {
'url' : "$xwiki.getURL('XWiki.DeletedAttachments', 'view', 'list=1&xpage=plain&outputSyntax=plain')",
'callback' : 'XWiki.index.trash.attachments.displayEntry',
'translationPrefix' : 'platform.index.trashAttachments.'
})##
##
##
##
{{html wiki="true" clean="false"}}
<div class="hidden">
#livetable('attachmentTrash' $columns $columnProperties $options)
</div>
{{/html}}
{{html wiki="true" clean="false"}}
<noscript>
#set($deletedAttachments = $services.query.hql('select count(datt.id) from DeletedAttachment as datt').execute().get(0))
#if($deletedAttachments == 0)
{{info}}$services.localization.render('platform.index.trashAttachmentsEmpty'){{/info}}
#else
#macro(displayDeletedAttachment $id)
#set($datt = $xwiki.getDeletedAttachment("$id"))
#set($originalAttachment = $datt.getAttachment())
#set($originalDocument = $xwiki.getDocument($datt.docName))
<tr>
<td><a href="$originalDocument.getAttachmentRevisionURL($originalAttachment.filename, $originalAttachment.version, "rid=${datt.id}").replaceAll('&', '&')">$escapetool.xml($datt.filename)</a></td>
<td><a href="$originalDocument.getURL()">$escapetool.xml($originalDocument.plainTitle) ($escapetool.xml(${originalDocument.fullName}))</a></td>
<td>$xwiki.formatDate($datt.getDate(), $dateFormat)</td>
<td>$xwiki.getUserName($datt.getDeleter())</td>
<td class="itemActions">
#if($datt.canDelete())
<a href="${originalDocument.getAttachmentURL($datt.filename, 'delattachment', "trashId=${datt.id}&xredirect=$escapetool.url($!request.getRequestURI())?$escapetool.url($!request.getQueryString())")}" class="tool delete" title="$services.localization.render('platform.index.trashAttachmentsActionsDeleteTooltip')">$services.localization.render('platform.index.trashAttachmentsDeleteText')</a>
#end
</td>
</tr>
#end
##
#if("$!{request.view}" == '')
#set($queryParams = '')
#else
#set($queryParams = "view=$!{escapetool.url($request.view)}")
#end
#set($paginationParameters = {
'totalItems' : $services.query.hql('select count(datt.id) from DeletedAttachment as datt').execute().get(0),
'defaultItemsPerPage' : 15,
'url' : $doc.getURL('view', $queryParams)
})
#pagination($paginationParameters)
<table id="searchResults" class="xwiki-livetable xwiki-livetable-display">
<thead class="xwiki-livetable-display-header"><tr>
<th scope="col" class="xwiki-livetable-display-header-text selected asc">$services.localization.render('platform.index.trashAttachments.datt.filename')</th>
<th scope="col" class="xwiki-livetable-display-header-text">$services.localization.render('platform.index.trashAttachments.datt.docName')</th>
<th scope="col" class="xwiki-livetable-display-header-text">$services.localization.render('platform.index.trashAttachments.datt.date')</th>
<th scope="col" class="xwiki-livetable-display-header-text">$services.localization.render('platform.index.trashAttachments.datt.deleter')</th>
<th scope="col" class="xwiki-livetable-display-header-text">$services.localization.render('platform.index.trashAttachments.actions')</th>
</tr></thead>
<tbody class="xwiki-livetable-display-body">
#set ($query = $services.query.hql('select datt.id from DeletedAttachment as datt order by datt.filename asc'))
#foreach($item in $query.setLimit($paginationParameters.itemsPerPage).setOffset($paginationParameters.firstItem).execute())
#displayDeletedAttachment($item)
#end
</tbody>
</table>
#set($discard = $paginationParameters.put('position', 'bottom'))
#pagination($paginationParameters)
#end ## deletedAttachments != 0
</noscript>
{{/html}}##
#else ## request.list
## ============================================================================================
## This page is called from live table via Ajax with the argument xpage=plain. It returns a
## set of results serialized in JSON.
## @programming This service page needs to be saved by a user with the programming access level
## to work as expected
## ============================================================================================
#if("$!{request.get('xpage')}" == 'plain')
$response.setContentType('application/json')
#set($offset = $mathtool.toInteger($request.get('offset')))
## offset starts from 0 in velocity and 1 in javascript
#set($offset = $offset - 1)
#if (!$offset || $offset < 0)
#set ($offset = 0)
#end
#set($limit = $mathtool.toInteger($request.get('limit')))
#if (!$limit)
#set ($limit = 15)
#end
#set($filenameFilter = $request.get('datt.filename'))
#set($docNameFilter = $request.get('datt.docName'))
#set($deleterFilter = $request.get('datt.deleter'))
#set($sql = '')
#if("$!{filenameFilter}" != '')
#set($sql = "and lower(datt.filename) like '%${filenameFilter.trim().toLowerCase()}%' ")
#end
#if("$!{docNameFilter}" != '')
#set($sql = "and lower(datt.docName) like '%${docNameFilter.trim().toLowerCase()}%' ")
#end
#if("$!{deleterFilter}" != '')
#set($sql = $sql + "and lower(datt.deleter) like '%${deleterFilter.trim().toLowerCase()}%' ")
#end
#if("$!{request.sort}" != '')
#set($order = $request.sort)
#else
#set($order = 'datt.id')
#end
#if("$!{request.dir}" != '')
#set($dir = $request.dir)
#else
#set($dir = 'asc')
#end
#set($selectSql = "select datt.id, $order from DeletedAttachment as datt where 1=1 " + $sql + " order by $order $dir")
#set($countSql = "select count(*) from DeletedAttachment as datt where 1=1 " + $sql)
#set($items = $services.query.hql($selectSql).setLimit($limit).setOffset($offset).execute())
#set($totalItems = $services.query.hql($countSql).execute().get(0))
#set($returnedItems = $items.size())
## ==============================================
## json starts
## ==============================================
{
"totalrows": $totalItems,
"returnedrows": $returnedItems,
"offset": ${mathtool.add($offset, 1)},
"reqNo": ${request.reqNo},
"query" : "$selectSql",
"rows": [
#foreach($item in $items)
#set($datt = $xwiki.getDeletedAttachment("$item.get(0)"))
#if($velocityCount > 1) , #end
{
#set($originalAttachment = $datt.getAttachment())
#set($originalDocument = $xwiki.getDocument($datt.docName))
"filename" : "$escapetool.javascript($datt.filename)",
"docName" : "$escapetool.javascript($datt.docName)",
"title" : "$escapetool.javascript($originalDocument.plainTitle)",
"url" : "$originalDocument.getAttachmentRevisionURL($originalAttachment.filename, $originalAttachment.version, "rid=${datt.id}")",
"documentUrl" : "$originalDocument.getURL()",
"canDelete" : $datt.canDelete(),
"deleteUrl" : "$originalDocument.getAttachmentURL($datt.filename, 'delattachment', "trashId=${datt.id}&form_token=$!{services.csrf.getToken()}")",
"canRestore" : $datt.canRestore(),
"alreadyExists" : #if($originalDocument.getAttachment($datt.filename)) true #else false #end,
"restoreUrl" : "$originalDocument.getAttachmentURL($datt.filename)",
"date" : "$xwiki.formatDate($datt.date, $dateFormat)",
"deleter" : "$escapetool.javascript($datt.deleter)",
"deletername" : "$escapetool.javascript($xwiki.getUserName($datt.deleter, false))",
"deleterurl" : "$xwiki.getURL($datt.deleter, 'view')"
}
#end
]}
## ==============================================
## json ended
## ==============================================
#end## xpage=plain
#end## request.list
#end## hasProgramR]
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.transformOnce(MacroTransformation.java:200)
at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:140)
at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:175)
at org.xwiki.rendering.internal.macro.html.HTMLMacro.renderWikiSyntax(HTMLMacro.java:271)
at org.xwiki.rendering.internal.macro.html.HTMLMacro.execute(HTMLMacro.java:154)
at org.xwiki.rendering.internal.macro.html.HTMLMacro.execute(HTMLMacro.java:73)
at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transformOnce(MacroTransformation.java:200)
at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:140)
at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:175)
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:80)
at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:38)
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:981)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:960)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:991)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:606)
at sun.reflect.GeneratedMethodAccessor195.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.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:131)
at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluate(DefaultPrivilegedTemplateRenderer.java:147)
at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluateTemplate(DefaultPrivilegedTemplateRenderer.java:84)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1622)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1562)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:801)
at sun.reflect.GeneratedMethodAccessor111.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.render(ASTReference.java:369)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:131)
at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluate(DefaultPrivilegedTemplateRenderer.java:147)
at com.xpn.xwiki.internal.template.DefaultPrivilegedTemplateRenderer.evaluateTemplate(DefaultPrivilegedTemplateRenderer.java:84)
at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1622)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:357)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id [xwiki:Main.AllDocs]
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:247)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187)
at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:124)
... 116 more
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getAttachment' in class com.xpn.xwiki.api.DeletedAttachment threw exception java.lang.OutOfMemoryError: Java heap space at xwiki:Main.AllDocs[line 42, column 34]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:261)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:187)
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.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:216)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:311)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:230)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:420)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:228)
... 118 more
Caused by: java.lang.OutOfMemoryError: Java heap space
Hello, now I have this scenario: I’d like to use a page(which includes some velocity macros) in another new page, I use the snippet below in my new page:
{{velocity}}
#set($reference = $services.model.createDocumentReference('', 'API', 'InterfaceDocTemplate'))
#set($document = $xwiki.getDocument($reference))
$xwiki.getDocument($document).getContent()
{{/velocity}}
but it turns out that the velocity macros cannot be executed, and the alert is “Failed to execute the [velocity] macro”.
I would greatly appreciate if someone could give me a solution.
Excuse my poor English please, thank you very much!
Hi,
I'm experiencing frequent crashes that I think are related to Solr, and I'd
appreciate any advice on how to fix them.
I have a fairly large wiki (with several thousand attachments) running
5.4.3 on tomcat7, and it goes down multiple times a day. Sometimes it will
remain unresponsive for a few minutes then come back on its own, other
times it stays down until I restart tomcat. Usage runs anywhere from a few
active users to several thousand, depending on time of day. Crashes happen
even when the number of users is low.
Checking catalina.out and the localhost_access logs, there almost always
appears to be requests related to solr around the time it goes down.
Sometimes catalina.out shows a java heap out of memory error, but other
times there are no errors in the logs at all, the site is just unresponsive.
I can usually reproduce the issue by running several searches back to back,
while browsing pages in another tab. While the searches are in progress,
the responsiveness of browsing pages steadily drops until it times out. It
usually only takes 5 or 10 searches before this happens.
The other thing that makes me suspect Solr is that even when the site
doesn't crash, while running a search in one tab, requests in the other tab
don't finish until the search is complete - it (subjectively, I know) feels
like other requests are suspended while Solr is thinking.
Potentially related is that I occasionally also see JDBC connection pool
related errors in the logs when it goes down - I have tried tweaking my
connection pool size settings, to no avail.
My current java memory settings are:
JAVA_OPTS="-Djava.awt.headless=true -Xms2500m -Xmx2500m -XX:PermSize=64m
-XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC"
I've used everything from the 800m xwiki.org settings to 3GB+, and it
doesn't seem to make a difference.
I have also reduced the cache settings from 3000 back to 100 in
xwiki.properties, which hasn't helped.
My hibernate settings are:
connection.pool.size = 100
statement_cache.size = 50
dbcp.maxActive = 100
dbcp.maxIdle = 10
dbcp.maxWait = 300000
Mysql max_connections is set to 290
I have changed nearly all of those numbers at some point, but nothing seems
to help.
Any assistance is greatly appreciated - even just tips on how to
troubleshoot what's actually taking the site down, since the logs aren't
always useful.
thanks,
aaron
---------- Forwarded message ----------
From: Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
Date: Mon, Sep 15, 2014 at 4:52 PM
Subject: Re: [xwiki-users] About IE9 bug
To: Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
In this case please mention on
http://jira.xwiki.org/browse/XWIKI-10664 that you are still
reproducing the issue. We may need to reopen it.
Thanks,
Marius
On Mon, Sep 15, 2014 at 3:46 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> wrote:
> Yes I refresh IE with Ctrl+F5 on this page
> http://localhost:8080/xwiki/bin/edit/Sandbox/WebHome (with Xwiki 6.2RC1) and
> I obtain unfortunaly this bug: XWIKI-10664.
>
>
> ________________________________
> De : Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
> À : Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>; XWiki Users <users(a)xwiki.org>
> Envoyé le : Lundi 15 septembre 2014 14h12
> Objet : Re: [xwiki-users] About IE9 bug
>
> Yes, http://jira.xwiki.org/browse/XWIKI-10664 , but it is marked as
> fixed in 6.2RC1 which you already have (right?). Can you clear your
> browser's cache and try again?
>
> Thanks,
> Marius
>
> On Thu, Sep 11, 2014 at 4:03 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
> wrote:
>> Hello,
>>
>> With 6.2 RC1, could you open Sandbox page with WYSIWYG under IE9?
>> When you move you cursor on the page, DIVS blinking or more precisely
>> right "Information doc" box jump at the bottom of the page...
>> It's annoying because Sandbox is a little bit the showcase of Xwiki.
>> Didn't you manage to reproduce this bug?
>>
>> Pascal BASTIEN
>
>>
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
---------- Forwarded message ----------
From: Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
Date: Mon, Sep 15, 2014 at 4:35 PM
Subject: Re: [xwiki-users] Solr and blank characters
To: Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
On Mon, Sep 15, 2014 at 4:22 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> wrote:
> Thxs a lot for this detailled explaination and these links: it helps my tiny
> xwiki knowledge. :-)
>
> If I want looking for a string in all my fields on my EAClass, I must add
> all my fields in
> set ($solrConfig = {
> 'queryFields': 'title^3
> property.Formulaires$20SMQ.EAClass.A_ExpertsAutre
> property.Formulaires$20SMQ.EAClass.MyField
> property.Formulaires$20SMQ.EAClass.AnotherField
> property.Formulaires$20SMQ.EAClass.AnotherOne',
> or I can use something like this ?
> 'queryFields': 'title^3 property.Formulaires$20SMQ.EAClass.*
No, like this:
'queryFields': 'title^3 object.Formulaires$20SMQ.EAClass'
See http://design.xwiki.org/xwiki/bin/view/Design/SolrSchema#HDocumentFields
. The downside is that the name of the property whose value is matched
won't be displayed in the search results (you match the entire object
not just a particular property).
Hope this helps,
Marius
>
> ________________________________
> De : Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
> À : Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>; XWiki Users <users(a)xwiki.org>
> Envoyé le : Lundi 15 septembre 2014 14h59
>
> Objet : Re: [xwiki-users] Solr and blank characters
>
> Sorry for the late reply.
>
> On Fri, Sep 5, 2014 at 6:18 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
> wrote:
>> Hello,
>> I try to writing a search page in my application, but unfortunaly I used
>> bank characters in my spave name :-(
>> I try to applie this method:
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Applicatio…
>> without succes.
>
>> I tried to replace blank with + character and/or add " character or '
>
> No. It doesn't work like this. See
> http://design.xwiki.org/xwiki/bin/view/Design/SolrSchema#HEncodingDynamicFi…
> and
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki53RC1#HSe…
> :
>
> "We're using an encoding scheme similar to the URL-encoding to support
> special characters in the Solr index field names"
>
>>
>> The result is an error or no search result...
>>
>> Have you got a tip to escape blank character in my code?
>>
>> {{include reference="XWiki.SearchCode"/}}
>>
>> {{velocity output="false"}}
>> #if ($searchEngine == 'solr')
>> ## Customize the Solr Search UI for the application.
>> #set ($solrConfig = {
>
>> 'queryFields': 'title^3
>> property.Formulaires+SMQ.EAClass.A_ExpertsAutre',
>
> 'queryFields': 'title^3 property.Formulaires$20SMQ.EAClass.A_ExpertsAutre',
>
>> 'facetFields': ['creator', 'creationdate', 'author', 'date',
>> 'mimetype', 'attauthor', 'attdate', 'attsize'],
>> 'filterQuery': [
>> 'type:DOCUMENT',
>> "wiki:$xcontext.database",
>
>> "space_exact:Formulaires+SMQ",
>> 'class:Formulaires+SMQ.EAClass'
>
> These are different. See
> https://wiki.apache.org/solr/SolrQuerySyntax#Default_QParserPlugin:_LuceneQ…
>
> "Certain characters are special and those characters need to be
> escaped using quotes or a backslash if you want them to be treated as
> literals."
>
> This works for me:
>
> 'space_exact:"Formulaires SMQ"',
> 'class:"Formulaires SMQ.EAClass"'
>
> Hope this helps (next time :) ),
> Marius
>
>
>> ]
>> })
>> #end
>> {{/velocity}}
>>
>> {{velocity}}
>> {{include reference="$searchPage"/}}
>> {{/velocity}}
>>
>>
>>
>>
>> Thxs
>>
>> Pascal B
>
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
I will digest all of that and apply it.
Yyumi! :-)
________________________________
De : Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
À : Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
Envoyé le : Lundi 15 septembre 2014 15h35
Objet : Re: [xwiki-users] Solr and blank characters
On Mon, Sep 15, 2014 at 4:22 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> wrote:
> Thxs a lot for this detailled explaination and these links: it helps my tiny
> xwiki knowledge. :-)
>
> If I want looking for a string in all my fields on my EAClass, I must add
> all my fields in
> set ($solrConfig = {
> 'queryFields': 'title^3
> property.Formulaires$20SMQ.EAClass.A_ExpertsAutre
> property.Formulaires$20SMQ.EAClass.MyField
> property.Formulaires$20SMQ.EAClass.AnotherField
> property.Formulaires$20SMQ.EAClass.AnotherOne',
> or I can use something like this ?
> 'queryFields': 'title^3 property.Formulaires$20SMQ.EAClass.*
No, like this:
'queryFields': 'title^3 object.Formulaires$20SMQ.EAClass'
See http://design.xwiki.org/xwiki/bin/view/Design/SolrSchema#HDocumentFields
. The downside is that the name of the property whose value is matched
won't be displayed in the search results (you match the entire object
not just a particular property).
Hope this helps,
Marius
>
> ________________________________
> De : Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
> À : Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>; XWiki Users <users(a)xwiki.org>
> Envoyé le : Lundi 15 septembre 2014 14h59
>
> Objet : Re: [xwiki-users] Solr and blank characters
>
> Sorry for the late reply.
>
> On Fri, Sep 5, 2014 at 6:18 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
> wrote:
>> Hello,
>> I try to writing a search page in my application, but unfortunaly I used
>> bank characters in my spave name :-(
>> I try to applie this method:
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Applicatio…
>> without succes.
>
>> I tried to replace blank with + character and/or add " character or '
>
> No. It doesn't work like this. See
> http://design.xwiki.org/xwiki/bin/view/Design/SolrSchema#HEncodingDynamicFi…
> and
> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki53RC1#HSe…
> :
>
> "We're using an encoding scheme similar to the URL-encoding to support
> special characters in the Solr index field names"
>
>>
>> The result is an error or no search result...
>>
>> Have you got a tip to escape blank character in my code?
>>
>> {{include reference="XWiki.SearchCode"/}}
>>
>> {{velocity output="false"}}
>> #if ($searchEngine == 'solr')
>> ## Customize the Solr Search UI for the application.
>> #set ($solrConfig = {
>
>> 'queryFields': 'title^3
>> property.Formulaires+SMQ.EAClass.A_ExpertsAutre',
>
> 'queryFields': 'title^3 property.Formulaires$20SMQ.EAClass.A_ExpertsAutre',
>
>> 'facetFields': ['creator', 'creationdate', 'author', 'date',
>> 'mimetype', 'attauthor', 'attdate', 'attsize'],
>> 'filterQuery': [
>> 'type:DOCUMENT',
>> "wiki:$xcontext.database",
>
>> "space_exact:Formulaires+SMQ",
>> 'class:Formulaires+SMQ.EAClass'
>
> These are different. See
> https://wiki.apache.org/solr/SolrQuerySyntax#Default_QParserPlugin:_LuceneQ…
>
> "Certain characters are special and those characters need to be
> escaped using quotes or a backslash if you want them to be treated as
> literals."
>
> This works for me:
>
> 'space_exact:"Formulaires SMQ"',
> 'class:"Formulaires SMQ.EAClass"'
>
> Hope this helps (next time :) ),
> Marius
>
>
>> ]
>> })
>> #end
>> {{/velocity}}
>>
>> {{velocity}}
>> {{include reference="$searchPage"/}}
>> {{/velocity}}
>>
>>
>>
>>
>> Thxs
>>
>> Pascal B
>
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
Hello,
I try to writing a search page in my application, but unfortunaly I used bank characters in my spave name :-(
I try to applie this method: http://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Applicatio… without succes.
I tried to replace blank with + character and/or add " character or '
The result is an error or no search result...
Have you got a tip to escape blank character in my code?
{{include reference="XWiki.SearchCode"/}}
{{velocity output="false"}}
#if ($searchEngine == 'solr')
## Customize the Solr Search UI for the application.
#set ($solrConfig = {
'queryFields': 'title^3 property.Formulaires+SMQ.EAClass.A_ExpertsAutre',
'facetFields': ['creator', 'creationdate', 'author', 'date', 'mimetype', 'attauthor', 'attdate', 'attsize'],
'filterQuery': [
'type:DOCUMENT',
"wiki:$xcontext.database",
"space_exact:Formulaires+SMQ",
'class:Formulaires+SMQ.EAClass'
]
})
#end
{{/velocity}}
{{velocity}}
{{include reference="$searchPage"/}}
{{/velocity}}
Thxs
Pascal B
Hello,
With 6.2 RC1, could you open Sandbox page with WYSIWYG under IE9?
When you move you cursor on the page, DIVS blinking or more precisely right "Information doc" box jump at the bottom of the page...
It's annoying because Sandbox is a little bit the showcase of Xwiki.
Didn't you manage to reproduce this bug?
Pascal BASTIEN
Hello.
We're using the most recent version of xWiki (6.1) with the most recent FAQ Application (6.1) installed.
When I go to create/contribute FAQ items they do NOT appear listed under the FAQ.WebHome space. FAQ items when edited directly DO appear to have the FAQ attribute set for source Space. They also DO have FAQ.WebHome set as the parent.
When I go to manually search for said items from the FAQ.WebHome widget they also do NOT appear under a FAQ search results.
We are using the Solr search engine with XWQL and no custom queries defined.
We were using Lucene and when we searched for said items from the FAQ.WebHome widget they would appear as a result of a FAQ search, but still were NOT listed under the FAQ.WebHome space.
What are we missing?
Much thanks in advance.
~P