Actually I saw that code. The simplest fix I could figure was this...
In the page http://.../xwiki/bin/edit/XWiki/WebRssCode,
I replaced this line
<dc:date>$currentdoc.date</dc:date>
with
<dc:date>$xwiki.formatDate($currentdoc.date, "yyyy-MM-dd'T'HH:mm:ss")</dc:date>
The fix however omits the timezone.
There is java code at http://www.dpawson.co.uk/relaxng/schema/datetime.html
which handles the timezone as well.
The SimpleDateFormat pattern "yyyy-MM-dd'T'HH:mm:ss.SSSZ" is close as it gives
2005-06-29T17:20:46.171-0800
This however does not work because of the missing colon. It needs to
be 2005-06-29T17:20:46.171-08:00
The simplest way seems to be to use commons-lang utilities
DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.format(new Date())
Since commons-lang is already part of the distribution is there a easy
way to add this code? I just don't know how to incorporate it in here
at this point due to unfamiliarity with velocity, groovy etc.
Thanks very much.
regards
Sudhir
On 6/29/05, Ludovic Dubost <ludovic(a)xwiki.com> wrote:
>
> Yes.. You need to customize the code in BlogRssCode
>
> http://www.xwiki.com/xwiki/bin/view/XWiki/BlogRssCode?xpage=code
>
> You can get this code and put it in your wiki and modify it.
> The line <dc:date>$currentdoc.display("date", "view", $currentobj)</dc:date>
> Should be changed to some conversion.. I'm not sure which one though
> If you send us some java code that does the conversion and right
> formatting we can adapt it for the scripting
>
> Ludovic
>
> Sudhir Rao a écrit :
>
> >Is there any easy way to change the timestamp format in the rss feed
> >which gets generated without modifying xwiki source code?
> >
> >The field
> ><dc:date>Tue Jun 28 16:31:33 PDT 2005</dc:date>
> >should have been formatted as per the dateTime spec at
> >http://www.w3.org/TR/xmlschema-2/#dateTime
> >
> >The current behavior seems to throw off the date/time sorting in RSS
> >readers as they just ignore the value.
> >
> >A SimpleDateFormat conversion has been given here..
> >
> >http://lists.xml.org/archives/xml-dev/200311/msg00153.html
> >which uses the format
> >"yyyy-MM-dd'T'HH:mm:ss,SSS'Z'"
> >
> >Any thoughts?
> >
> >-Sudhir
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >
> >--
> >You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
> >To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
> >For general help: mailto:sympa@objectweb.org?subject=help
> >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
> >
>
>
> --
> Ludovic Dubost
> XPertNet: http://www.xpertnet.fr/
> Blog: http://www.ludovic.org/blog/
> XWiki: http://www.xwiki.com
> Skype: ldubost AIM: nvludo Yahoo: ludovic
>
>
Hi,
I try to set up virtual wikis by following the documentation :
http://www.xwiki.com/xwiki/bin/view/Doc/HowToSetupVirtualWikis
However when I went to the page XWiki.XWikiServerClass, I got the following
error. I was using xWiki 0.9.840 with UTF-8 configuration :
Error number 0 in 11: Uncaught exception
Wrapped Exception: String index out of range: -7
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
Wrapped Exception: String index out of range: -7
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:224)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
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:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run()V(Unknown Source)
Wrapped Exception:
java.lang.StringIndexOutOfBoundsException: String index out of range: -7
at java.lang.String.substring(II)Ljava.lang.String;(Unknown Source)
at com.xpn.xwiki.XWiki.getDocumentFromPath(XWiki.java:627)
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:2428)
at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java:133)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
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:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run()V(Unknown Source)
Any clue ?
--
Xavier MOGHRABI - Consortium ObjectWeb
Email: xavier.moghrabi at objectweb.org
Phone: +33 4 76 61 52 35 - Skype ID: xavier.moghrabi.bureau
Is there a sitemap function of a particular space?
Thanks.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hi Ludovic!
> Please let's start with mysql first .. It does not make sense to
debug both things at a time.
sure :) Now I have installed two instances of xwiki - one for mysql,
second for pgsql. both look and act identically.
> The "cannot execute query" is not enough.. It should show a
wrapped exception but for some reason it doesn't.
> Can you try with the What's New or WebSearch page ?
Sure! I have attached both exceptions along with full server log...
(btw. hale to bzip2 that packed all this from ~3MB to only 46kB! I
hope nobody will kill me for this attachment)
> Can you also turn on debugging in log4j.properties so that you see
if hibernate generates a query..
### Hibernate logging options ###
log4j.logger.org.hibernate.SQL=debug
log4j.logger.org.hibernate=debug
log4j.logger.org.hibernate.type=debug
log4j.logger.org.hibernate.ps.PreparedStatementCache=warn
is it ok?
Thank You!
Tomek
Hi,
the email notification plugin seems to "forget" the subscriptions
(achieved by ckliking the "subscibe" links that came with the plugin) on
a tomcat restart unless each user goes to his user-page, uses "edit
objects" and explicitly "saves" his subscriptions by clicking save objects.
Did I configure anything wrongly or ist this normal behaviour? Is there
a workaround?
Thank you!
Sascha Oesterle
Hi,
i use since few days the great xwiki platform on xwiki.com<http://xwiki.com>(
http://jguard.xwiki.com).
but i've got one problem about editing a page:
when i edit a page, i can modify content, click on 'preview' and 'save' the
page:
=> the content is updated.
when i edit a page, modify content but not click on 'preview' but click
directly on the 'save' button, the content is not updated.
when i modify a page, click on 'preview', 'save', and want to modify one
more time the page, the code of the page is the code of the old page.
is there any problem on cache settings?
have you one tips to solve this problem?
thanks to the xwiki team, for the wiki solution, and the free hosting offer!
cheers,
Charles(jGuard team).
Short form of the question: Is there any way to change which space (or
web) a given page resides in?
Details: I've created a "smart table" (use the class/template/sheet
approach). The pages for this appear in a given space/web (let's call it
'X'). However, X's space access rights don't give the community at large
access to them -- they do have access to the table page itself. This was
a case of not thinking things through clearly. So, my thought was to put
the whole table (and the pages that created for it) in a new space that
does have appropriate access rights. Thus, I'd like to create it and move
all the existing pages into the new space. Hence, my original question.
I'm open to other alternatives. My only thought, thus far, is to see if
there is a way to dynamically apply access rights to a page as it is
created (but that sounds "unclean").
Charles Rankin
Hi,
i experienced strange lucene plugin behaviour. if i don't set the
log4j.logger.net.jkraemer.xwiki=debug
line into my log4j.properties file i get a null pointer exception after
posting the search from. If the line is set to "debug" it works
properly. Does also not work "error" or "warn". - Can't find problems
in the logfile!
Any suggestions?
Thank you!
Sascha Oesterle
Hi,
<a href="pubs/felicissimoTrack2.pdf"><img src="images/pdf.gif" alt="Download
Publication" width="21" height="21" border="0"></a>
How is it done in XWiki syntax?
Thank you!
Rodrigo Paes
PHD Student - Computer Science - PUC-Rio - <mailto:rbp@les.inf.puc-rio.br>
rbp(a)les.inf.puc-rio.br
Messenger - <mailto:r0drigopaes@hotmail.com> r0drigopaes(a)hotmail.com
Web-page: <http://www.teccomm.les.inf.puc-rio.br/rodrigo/>
http://www.teccomm.les.inf.puc-rio.br/rodrigo/
"Só existem duas certezas na vida: a morte e os impostos"
I've got a "smart table" (using the class/template/sheet method). My
problem arises when a user clicks on the button to add a new "object"
(which is a really a new page with an object on it, based on the template,
etc.). The page comes up and allows the user to edit, as expected.
However, if the user takes "too long" (I haven't pin down an exact amount
of time yet -- but 5 minutes seems to suffice) filling out the form, then,
when they hit save, the page is created, but the object is nowhere to be
found. As you can imagine, the users a bit miffed by this. The problem
is exacerbated by the fact that no error is generated. The user thinks
things worked, until they go back to the table to find their entry isn't
present.
Any thoughts on what to do here? Is there a way to increase the timeout
or something? At the moment, I've put a note that they should just save
the page very quickly and then go back and edit after the fact, which
seems to work, but is pretty ugly.
Charles Rankin