Hi All,
I just want to know is it possible to login in xwiki application through
httpclient. Now through xmlrpc and rest api we can. But for some purpose i
need to login through httpclient. If possible, any one can tell the url
along with the parameters needed to login.
Thanks in advance.
Regards,
Nithya.
--
View this message in context: http://n2.nabble.com/Login-in-xwiki-through-http-client-tp4654361p4654361.h…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I have some question about translation.
1. Is the ApplicationResources_zh.properties exported from
l10i.xwiki.org? But I find the resources file in xwiki 2.2.1 release
package is not the same as the resource file I get from
l10i.xwiki.org.
2. I think the (Total translations = Empty translations + Outdated
translations + Translations to review), but in the site I found it is
not equal all the time, for example,
Simplified Chinese (zh),
Total translations: 2425
Empty translations: 477
Outdated translations: 29
Translations to review: 1454
477 + 29 + 1454 = 1960 != 2425. Does this mean the missing 465 items
are Validated? What is the relationship between total empty and
outdate translations.
3. If I want to improve the translation. Do I modify the resource file
and submit a patch or I just edit l10i.xwiki.org.
Thanks.
Wang Ning
Hi,
to translate texts into a more correct german I extracted ApplicationResources_de.properties to WEB_INF/lib.
This seems to work. I am willing to share this with others, however, it would took days when I am using the i10n.xwiki.org facility.
However, some translation I did not found. One of them comes up when trying to login.
In the last line of the dialog the texts are still in english "Forgot your username or password".
This text is NOT part of the property file.
Where is the place to translate this texts?
Stefan Bachert
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
brief description: exclusive personal use and a placeholder for my personal
notes that I can access from everywhere and that I won't have to backup or
provide disk space for.
user: mzf3lg or xy123 or xy123z456(a)gmail.com
server name: mzf3lg for mzf3lg.myxwiki.org
thank you !
mzf3lg
The XWiki development team is pleased to announce the release of XWiki
Enterprise and XWiki Enterprise Manager 2.2.1.
This is a bug fix release for the 2.2 branches.
It fixes mainly too important regressions around documents parents
handling and xar import so if you are using 2.2 you should really
upgrade to 2.2.1.
New features
* XWIKI-4922 - XWiki translation into catalan language
* XWIKI-4938 - Provide an action for sub queries
Improvements:
* XWIKI-4926 - Finish covering DocumentAccesBridge with new
DocumentReference and AttachementReference
* XWIKI-4884 - Hide the first and last new line when editing a
standalone macro
* XWIKI-4909 - Upgrade to Pygments 1.2.2
* XAADMINISTRATION-113 - Make registration page configurable from
administration sheet
* Updated translations
Important Bugs fixed:
* XE-607 - Cannot use Main.Dashboard as a space dashboard of a
blacklisted space
* XE-605 - Documentation about html macro is wrong in XWikiSyntax page
* XE-604 - Link to RSS feed on dashboard when used as space
dashboard points to global RSS feed
* XWIKI-4929 - XWikiDocument#getParent and setParent does not
serialize/resolve the reference based on the document but on the
current context
* XWIKI-4907 - Can't link to recently modified pages
* XWIKI-4856 - Charset errors on macro insertion
* XWIKI-4878 - Code macro 2.0 - extra newline inserted
* XWIKI-4915 - Code macro 2.0 - inline language=none uses non-monospace font
* XWIKI-4948 - DocumentModelBridge should not contain any set methods
* XWIKI-4672 - Freestanding image/links should be protected in
xwiki/2.0 renderer when before or after word that could break it when
parsed
* XWIKI-4413 - Livetable does not properly empty its cache when
sorting order change
* XWIKI-3899 - The LiveTable does not filter correctly documents
when the + character is used in the filter key
* XSCOLIBRI-199 - Syntax highlighting uses non-monospace font
* XSCOLIBRI-194 - In inline mode, the fullscreen UI doesn't use
the current theme
For more information see the Releases notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise221
and http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM221
Thanks
-The XWiki dev team
Hi All,
Long time no see. I'm back:) So glad back to this community. Missing
coding work.
BTW, I have a problem. When I used myxwiki.org to post a blog, I found
the "Set the publication date to:" was "27/02/2010 12:10:58", while
the actual time in my location was "27/02/2010 20:10:58". I think it
must be caused by time-zone. I'm in China, while the myxwiki server
must be in France I guess. Is that a problem and how to sovle it?
Thanks
Wang Ning
Hello,
I'm attempting to run the following Groovy script with the Scheduler app:
def eventLog = xwiki.getDocument("CodeTest.TestEventLog")
eventLog.setContent(eventLog.getContent() + "This is a test.")
eventLog.save()
However, this does nothing. I have scheduled the job (which is supposed to run every 5 minutes) and triggered it manually, but it still doesn't do anything.
I also tried surrounding the code with {{groovy}}{{/groovy}}.
My cron expression is the following:
0 0/5 * * * ?
Running on XWiki Enterprise 2.1.1.
Thanks in advance.
-Joshua
Hi,
I am currently testing the "Watch" feature and I can't display the
Watch List. I noticed that the Scheduler has some Watch List jobs,
could it be related ? I mean that the watch list could be populated by
one of the Watch list notifier jobs.
I am missing something ?
The setup is XE 2.2, Tomcat 6.0, PostgreSQL, Windows XP SP3.
Thanks
Simon glet
Hi everyone,
I was wondering how the standard authentication handles user
passwords. Especially I would like to know whether those passwords get
sent from the client to the server in plaintext or whether they get
encrypted.
Or in other words is it safe to use a non-encrypted http connection or
should I use to a SSL https connection to prevent password sniffing.
Thanks for your help,
--Alaina
Hi List,
I've got an instance of XWiki installed and working, and I've got XOffice installed as well. When I enter my log in information in the XOffice ribbon I can see the Wiki Explorer, but I cannot save things back to the wiki. What should I check next to be able to "Publish Documents" back to the wiki?
Thanks!
Courtney Christensen
Hi,
I figured out the macro capability. That is real powerful stuff.
However, I failed to pass a list to macros.
Is this a bug or by design?
Stefan Bachert
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
Hi All,
I am struggling with the implementation of SSO in xwiki. I have few doubts
to ask..
I am using my own SSO which use the OpenSSO and its OpenDS for
authentication.
My application, plugin to many application and the base is jboss portal. I
have successfully implemented the jforum inside jboss portal and implemented
my own custom SSO jforum, as the instructions given in jforum.
But in xwiki i am not seeing any guide lines to implement my own SSO.
Eventhough googling i didnt get the clear idea. I am using pure java and i
cant go for keberos and OpenID concept.
1. Whether i can implement my own SSO in xwiki?? When i login in my
application the same user should login in xwiki and the browser session n
cookie should get maintain for the user session..Is it possible?
2. If so What all are the files i have touch? Where i have to make the
changes for SSO? What is the name of the cookie which is used for sso in
xiwiki now?
3. What all the changes for SSO?
Thanks in advance.
Regards,
Nithya.
--
View this message in context: http://n2.nabble.com/How-to-implement-our-own-SSO-in-xwiki-tp4627411p462741…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
I need to find the best way of registering an event listener automatically on wiki startup. Right now I have to manually register the listener in a manner similar to the one illustrated in the Groovy Notification Tutorial (http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial).
Thanks in advance for any help.
- Joshua
Hi !
I am working for www.planetemer.org as a webmaster and I would like to
present my coleagues the tool.
We are often working on projects documents, and 'several-hands-writting'
tool would be useful.
Is it possible in this npo version to have different profiles and co-edit a
dozen of documents ?
Thanks in advance for your help !
Sincerely,
David
Hello,
I would like to create a class, with a number property that will be autoincrement. Is it posible? How can I do it?
Thanks
Francisco
--
Francisco Hernández Cuchí
Jefe de Servicios Sistemas de Información
OFICINA ESPAÑOLA DE PATENTES Y MARCAS
**********************************************************************************************
IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y está dirigido únicamente
para el destinatario/s.
Si Ud recibe este correo por error, por favor póngase en contacto con su administrador de correo o con el
emisor immediatamente y no difunda su contenido a nadie ni haga copias.
*** Este correo ha sido escaneado de virus y contenido malicioso ***
**********************************************************************************************
forwarding to the list
-Vincent
Begin forwarded message:
> From: Radek Rekas <Radek.Rekas(a)evalua.com.au>
> Date: February 24, 2010 1:19:38 AM GMT+01:00
> To: Vincent Massol <vincent(a)massol.net>
> Subject: RE: [xwiki-users] Ampersands in livetable filtering column bug
>
> Hi Vincent,
>
> I've just tested this and it still occurs in XE 2.2
>
> I've used firebug to check what requests are made when filtering and the problem appears to be caused by ampersands not getting correctly url encoded. Below is the get request made to LiveTableResults when I use a filter of "test & test" on the "council" row in the live table. The spaces get url encoded along with other characters but ampersands do not.
>
> http://localhost:8080/xwiki/bin/view/XWiki/LiveTableResults?xpage=plain&out…
>
> Radek Rekas
>
>
>
>
> ----- Original Message -----
> From: Vincent Massol <vincent(a)massol.net>
> Sent: Tue, 23/2/2010 6:33pm
> To: XWiki Users <users(a)xwiki.org>
> Subject: Re: [xwiki-users] Ampersands in livetable filtering column bug
>
> Hi,
>
> On Feb 23, 2010, at 5:23 AM, Radek Rekas wrote:
>
>> We're using xwiki 2.03 and text with ampersands in it breaks the livetable filtering feature.
>>
>> Is there any fix to properly escape the text that gets entered into the filtering fields on livetables or can anyone give me a pointer on where to start looking in order to fix this?
>
> AFAIK this was fixed in XE 2.2
>
> Thanks
> -Vincent
hello,
I have several spaces starting with a special charakter ÖGroup etc.
xwiki search doesn't find any attachements that are attached to groups
starting with Ö
when I try to search attachements limiting the search to ÖGroup I get the
following error:
org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate
Velocity Macro for content
[$xwiki.jsfx.use("uicomponents/search/search.js", false)##
$xwiki.ssfx.use("uicomponents/search/search.css", true)##
## Disable the document extra data: comments, attachments, history...
#set($docextras = [])
#set ($rssmode = ("$!request.xpage" == 'plain'))
## ---------------
## Space filtering
## ---------------
#set($spaces = $xwiki.spaces)
#set($selectedSpace = "$!request.space")
## ---------------
## Space macros
## ---------------
#macro(spaceoption $space $selectedSpace)
<option value="${space}" #if($selectedSpace ==
$space)selected="selected"#end>$space</option>
#end
#macro(spaceselect $selectedSpace $spaces)
<select name="space" title="$msg.get('xe.search.bar.spaces.title')">
<option value="" #if($selectedSpace ==
'')selected="selected"#end>$msg.get('xe.search.bar.spaces.all')</option>
#foreach($space in $spaces)
#if (!$blacklistedSpaces.contains($space))
#spaceoption($space $selectedSpace)
#end
#end
</select>
#end
##
##
#set($text = "$!request.getParameter('text')")
#set($utext = $util.encodeURI($text))
##
{{html}}
<form action="" id="searchBar">
<div class="centered">
<input type="text" name="text" class="searchQuery #if($text ==
'') defaultText#end" #if($text == '')
value="$msg.get('xe.search.bar.query.tip')" #else
value="$xwiki.getXMLEncoded(${text})" #end
title="$msg.get('xe.search.bar.query.title')"/>
#spaceselect($selectedSpace $spaces)
<input type="submit" class="searchButton"
value="$msg.get('xe.search.bar.submit')"
title="$msg.get('xe.search.bar.submit.title')"/>
</div>
</form>
{{/html}}
##
#set($space = $selectedSpace)
#set($datedlist = $util.arrayList)
#if("$!text" == '')
## No search
#else
#set($text = $text.replaceAll("'", "''").replaceAll("%", "\\%"))
#set($nbitems = 50)
## ----------------------------------------------------------------------
## Exclude Blacklisted spaces ($blacklistedSpaces is set in xwikivars.vm)
## Also exclude WebPreferences.
## ----------------------------------------------------------------------
#set ($webClause = '')
#foreach ($blacklistedSpace in $blacklistedSpaces)
#set ($webClause = "${webClause} doc.space <> '$blacklistedSpace' and")
#end
#if(!$hasAdmin && !$isAdvancedUser)
#set ($webClause = "${webClause} doc.name<>'WebPreferences' and")
#end
## -----------------------------------------------------------
## Display only a given space if $request.space is defined
## -----------------------------------------------------------
#if("$!space" != '')
#set ($webClause = "${webClause} doc.space='$space' and")
#end
#macro(addelement $item $list)
#if($xwiki.hasAccessLevel('view', $context.user,
"${context.database}:${item}"))
#set($itemdoc = $xwiki.getDocument($item))
## All items will be sorted by the date; since the list is
obtained from several queries, we can't order in the HQL.
## Prefix all item names with the date for sorting the combined results.
#set($sdate = $xwiki.formatDate($itemdoc.date, 'yyyyMMddHHmmss'))
#set($sitem = "${sdate}${item}")
#if(!$list.contains($sitem))
#set($discard = $list.add($sitem))
#end
#end
#end
## -----------------------------------------------------------
## Search in the page names
## -----------------------------------------------------------
#set ($sql = "where $webClause upper(doc.fullName) like
upper('%$!text%') order by doc.date desc")
#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
#end
## -----------------------------------------------------------
## Search in page content
## -----------------------------------------------------------
#set ($sql = "where $webClause upper(doc.content) like
upper('%$!text%') order by doc.date desc")
#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
#end
## -----------------------------------------------------------
## Search in text fields (simple String properties)
## -----------------------------------------------------------
#set($sql= ", BaseObject as obj, StringProperty as prop where
$webClause obj.name=doc.fullName and prop.id.id = obj.id and
upper(prop.value) like upper('%$!text%')")
#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
#end
## -----------------------------------------------------------
## Search in big text fields (textarea properties)
## -----------------------------------------------------------
#set($sql= ", BaseObject as obj, LargeStringProperty as prop where
$webClause obj.name=doc.fullName and prop.id.id = obj.id and
upper(prop.value) like upper('%$!text%')")
#foreach ($item in $xwiki.searchDocuments($sql , $nbitems, 0))
#addelement($item $datedlist)
#end
#end
#set($list = $util.arrayList)
#foreach($item in $util.sort($datedlist))
## datedlist contains items prefixed with the date; strip the date
from the actual item name:
#set($ok = $list.add(0, $item.substring(14)))
#end
#if ("$!utext" != '')
#if($rssmode)
#set ($feed = $xwiki.feed.getDocumentFeed($list, $util.getHashMap()))
#set ($feedURI = $doc.getExternalURL("view"))
#set ($discard = $feed.setLink($feedURI))
#set ($discard = $feed.setUri($feedURI))
#set ($discard = $feed.setAuthor('XWiki'))
#set ($discard = $feed.setTitle($msg.get('xe.search.rss', [$text])))
#set ($discard = $feed.setDescription($msg.get('xe.search.rss', [$text])))
#set ($discard = $feed.setLanguage($context.language))
#set ($discard = $feed.setCopyright($xwiki.getXWikiPreference('copyright')))
$xwiki.feed.getFeedOutput($feed,
$xwiki.getXWikiPreference('feed_type', 'rss_2.0'))
#else
{{include document="XWiki.Results"/}}
#if($selectedSpace == '')
#set($rssURL = $xwiki.getURL($doc.fullName, 'view',
"xpage=plain&outputSyntax=plain&text=${utext}" ))
#else
#set($rssURL = $xwiki.getURL($doc.fullName, 'view',
"xpage=plain&outputSyntax=plain&space=${selectedSpace}&text=${utext}"))
#end
{{html}}
<a href="${rssURL}"><img
src="$xwiki.getSkinFile("icons/silk/feed.gif")" alt="RSS
icon"/>$msg.get("xe.search.rss", ["[$text]"])</a>
{{/html}}
#set($luceneSearch = "[[Main.LuceneSearch?text=$!utext]]")
{{info}}$msg.get('xe.search.lucene.try', [$luceneSearch]){{/info}}
#end
#end
{{velocity}}]
at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:118)
at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:43)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to
evaluate content with id [velocity macro]
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:200)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:110)
... 93 more
Caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'searchDocuments' in class
com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException:
Error number 3223 in 3: Exception while searching documents with SQL
[select distinct doc.space, doc.name, doc.date from XWikiDocument as
doc where (doc.hidden <> true or doc.hidden is null) and
doc.space='ÖWM Logo' and upper(doc.fullName) like
upper('%manual.pdf%') order by doc.date desc]
Wrapped Exception: could not execute query at velocity macro[line 82, column 27]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
... 95 more
Caused by: com.xpn.xwiki.XWikiException: Error number 3223 in 3:
Exception while searching documents with SQL [select distinct
doc.space, doc.name, doc.date from XWikiDocument as doc where
(doc.hidden <> true or doc.hidden is null) and doc.space='ÖWM Logo'
and upper(doc.fullName) like upper('%manual.pdf%') order by doc.date
desc]
Wrapped Exception: could not execute query
at com.xpn.xwiki.store.XWikiHibernateStore.searchDocumentsNamesInternal(XWikiHibernateStore.java:2306)
I tried to delete those spaces using the following macro:
{{velocity}}
#if ($request.space)
#if ($request.confirm == "1")
#foreach ($item in $xwiki.getSpaceDocsName($request.space))
* Deleting $item
$xwiki.getDocument("${request.space}.${item}").delete()\\
#end
#else
[[Confirm delete space
${request.space}>>$doc.fullName?space=${request.space}&confirm=1]]:
#foreach ($item in $xwiki.getSpaceDocsName($request.space))
* $item
#end
#end
#else
|=Space |=Action
#foreach($space in $xwiki.spaces)
|$space | [[Index>>Main.SpaceIndex?space=${space}]] -
[[Delete>>$doc.fullName?space=${space}]]
#end
#end
{{/velocity}}
--------------------
again the same problem caused by the special charakter:
---->
Failed to execute macro: velocity
org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate
Velocity Macro for content [#if ($request.space)
#if ($request.confirm == "1")
#foreach ($item in $xwiki.getSpaceDocsName($request.space))
* Deleting $item $xwiki.getDocument("${request.space}.${item}").delete()\\
#end
#else
[[Confirm delete space
${request.space}>>$doc.fullName?space=${request.space}&confirm=1]]:
#foreach ($item in $xwiki.getSpaceDocsName($request.space))
* $item
#end
#end
#else
|=Space |=Action
#foreach($space in $xwiki.spaces)
|$space | [[Index>>Main.SpaceIndex?space=${space}]] -
[[Delete>>$doc.fullName?space=${space}]]
#end
#end]
at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:118)
at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:43)
at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:200)
at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:52)
at org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:175)
at org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:120)
at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72)
at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5586)
at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5561)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:557)
at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:571)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475)
at sun.reflect.GeneratedMethodAccessor324.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
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:336)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1703)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1624)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
at sun.reflect.GeneratedMethodAccessor125.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
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:336)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1703)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1624)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:224)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to
evaluate content with id [velocity macro]
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:200)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluate(VelocityMacro.java:110)
... 93 more
Caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'getSpaceDocsName' in class
com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException:
Error number 0 in 0: Exception while execute query. Query statement =
[getSpaceDocsName]
Wrapped Exception: Exception while execute query. Query statement =
[getSpaceDocsName] at velocity macro[line 8, column 27]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:282)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
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.SimpleNode.render(SimpleNode.java:336)
at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
... 95 more
Caused by: com.xpn.xwiki.XWikiException: Error number 0 in 0:
Exception while execute query. Query statement = [getSpaceDocsName]
Wrapped Exception: Exception while execute query. Query statement =
[getSpaceDocsName]
at com.xpn.xwiki.XWiki.getSpaceDocsName(XWiki.java:5734)
at com.xpn.xwiki.api.XWiki.getSpaceDocsName(XWiki.java:1515)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
... 106 more
Hi Vincent,
I've just checked and this problem still exists in XE 2.2.
I've managed to fix it on my local XE 2.2 setup by changing line 189 of the resources/js/xwiki/table/livetable.js file from:
for(key in this.filters){if(!existing[key]&&this.filters[key]!=""){filterString+="&"+key+"="+this.filters[key]
to:
for(key in this.filters){if(!existing[key]&&this.filters[key]!=""){filterString+="&"+key+"="+this.filters[key].gsub('&','%26')
This seems to have fixed it for select lists, input boxes etc.
Radek Rekas
----- Original Message -----
From: Vincent Massol <vincent(a)massol.net>
Sent: Tue, 23/2/2010 6:33pm
To: XWiki Users <users(a)xwiki.org>
Subject: Re: [xwiki-users] Ampersands in livetable filtering column bug
Hi,
On Feb 23, 2010, at 5:23 AM, Radek Rekas wrote:
> We're using xwiki 2.03 and text with ampersands in it breaks the livetable filtering feature.
>
> Is there any fix to properly escape the text that gets entered into the filtering fields on livetables or can anyone give me a pointer on where to start looking in order to fix this?
AFAIK this was fixed in XE 2.2
Thanks
-Vincent
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hi,
in generell self defined are more flexible than to use an {{include}}
Are there circumstances were {{include}} offers advantages?
Stefan Bachert
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com