Hi XWikiers,
An issue has been raised during the XWiki Enterprise 1.3.1 release
process, http://jira.xwiki.org/jira/browse/XWIKI-2269 :
2 successive newlines (\\\\) are taken by the escape filter and
transformed to one \ (escapeFilter)
Is there anyone here using this syntax ? If not the filter will
removed today and XE 1.3.1 released with this modification.
ps : If you don't use it please tell it here too, it'll help us to
estimate the number of people who've seen the thread.
Thanks,
--
Jean-Vincent Drean
hello,
just to inform that I'm currently working on an evolution of the class
management around the idea of archiving/versioning in order to simplify
class properties modification/deletion and its consequence for existing
object instances and also around the idea of class inheritance, thus keeping
compatibility with current implementation and without modifying the existing
Data Model.
I'm still implementing a proof of concept to prove my idea can work.
I will give some samples and explanations asap...
best regards
Pascal
Hi devs,
with a delay from the initial plan, I would like to release XWatch 1.0
Milestone 4 as soon as possible, either tomorrow or monday, with the
following new features / improvements / bug fixes:
Bugs:
[XWATCH-79] - Do not allow to create feed, groups or keywords with name
that alreay exists
[XWATCH-111] - PressReview email not generated correctly when guest user
does not have view rights on the WatchCode.PressReview document
[XWATCH-121] - Date filter does not apply for RSS press review
[XWATCH-119] - The date filter should include both the start date and the
end date.
Improvements:
[XWATCH-31] - Write a filter top prevent usual English words to be
displayed in the Text Analysis
[XWATCH-96] - Adding a "delete" button under group names in the list on
the left
[XWATCH-97] - Adding a "delete" button under keyword names in the list on
the right
[XWATCH-108] - Move Jetty resources in a jetty/ directory for the
standalone distribution
[XWATCH-114] - Autosuggest for tags
[XWATCH-115] - Feed Deletion
Tasks:
[XWATCH-118] - Add an integration test that ensure Watch loads in the
distribution
[XWATCH-80] - Upgrade to GWT 1.4
Here's my +1 for this,
Please let me know what you think.
Happy coding,
Anca Luca
I'm using XWiki 1.3 in tomcat 5.5 and I'm getting this exception when I
attempt to edit a group with Administration
- No storage migration required since current version is [7351]
2008-04-02 18:20:04,725
[http://coe.portal8.stg.covisint.com/xwiki/bin/admin/XWiki/$xwiki.getSkinFil…'icons/ajax-loader.gif')]
[TP-Processor3] ERROR log.SimpleLog4JLogSystem - Method sendRedirect
threw exception for reference $response in template
/skins/covisint_coe/adminprefs.vm at [69,1]
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'sendRedirect' in class com.xpn.xwiki.web.XWikiServletResponse threw
exception java.lang.IllegalStateException @
/skins/covisint_coe/adminprefs.vm[69,11]
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
Here is a snippet of the adminprefs.vm the problem is the redirect. I
think something must have already been written to the client buffer and so
we get the IllegationStateException
##########
##
## Content
##
#set($formname = "update")
#set($saveaction = "save")
<form id="update" method="post" action="$doc.getURL("save")"
onsubmit="cancelCancelEdit()">
<div id="xwikieditcontent">
#set($redirect = "$xwiki.getRequestURL()")
#set($classname = "XWiki.XWikiPreferences")
#set($class = $xwiki.getDocument($classname).xWikiClass)
#set($obj = $doc.getObject($classname, 0))
#if(!$obj)
#set($redirect = $xwiki.getRequestURL())
$response.sendRedirect($doc.getURL("objectadd",
"classname=XWiki.XWikiPreferences&XWiki.XWikiPreferences_upload_maxsize=33554432&xredirect=$xwiki.getFormEncoded($redirect)"))
#end
<div class="hidden">
<input type="hidden" name="xcontinue" value="$doc.getURL("admin",
"editor=prefs")"/>
<input type="hidden" name="xredirect"
value="$xwiki.getURL("Main.WebHome")"/>
<input type="hidden" name="classname" value="XWiki.XWikiPreferences" />
<input type="hidden" name="global" value="1" />
</div>
<div>
<div id="xwikiprefs">
#foreach($section in $sections)
#showsection($section $sectionitemsmap)
#end
</div> ## xwikiprefs
<script type="text/javascript">new Rico.Accordion( 'xwikiprefs', {
panelHeight:'max', maxHeight: 320} );</script>
</div> ## noname
</div> ## xwikieditcontent
<div class="bottombuttons">#template("adminactions.vm")</div>
</form>
So, I commented out the line with $response.sendRedirect and the exception
went away but I don't know if it really needs the redirect. From the log it
looks like it is just loading 'icons/ajax-loader.gif' If my "fix" is wrong
please let me know.
Glenn Everitt
--
View this message in context: http://www.nabble.com/IllegalStateException-when-editing-Groups-with-Admin-…
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi all,
there is possibly a litte bug I stumbled upon while writing multi-
lingual support in XMLRPC API.
Actually I am not sure if it's a bug or it is due to the fact that I
am not doing things properly.
Anyway what happens is the following: after that I successfully store
a new translation for a page in a "random" language X (where X is a 4-
character string) the subsequent calls to getDocument(pageId) return a
document that has the content of the "default" language page but,
instead of having the language field set to "", it has this field set
to "X".
So basically XWiki returns a document that appears to be in language
"X" but it is actually the document in the default language.
Other strange things happened while playing with that support, for
example using the web interface at a given time new pages started to
be created by using one of the "random" languages X as the default one
(I am trying to reproduce this but I cannot :( )
Basically this is the code I am using for storing a new translation
(i.e., a translation that didn't exist before):
com.xpn.xwiki.XWiki baseXWiki = xwikiXmlRpcContext.getBaseXWiki();
XWikiDocument xwikiDocument = baseXWiki.getDocument(pageId,
xwikiXmlRpcContext.getXWikiContext());
xwikiDocument.setLanguage(lanuage);
doc = new Document(xwikiDocument, xwikiXmlRpcContext.getXWikiContext());
doc.setContent(content);
doc.save();
Do you see anything wrong here so far?
Thanks.
Cheers,
Fabio
To reproduce, goto /trunks/xwiki-platform-core/xwiki-core and execute `mvn
install`
i get the following,
<DUMP>
[INFO] Starting audit...
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/web/XWikiMessageTool.java:110:
warning: Comment matches to-do format 'TODO:'.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/web/XWikiMessageTool.java:256:
warning: Comment matches to-do format 'TODO:'.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/web/XWikiMessageTool.java:258:27:
The String "Failed to load internationalization document bundle [" appears 2
times in the file.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/web/XWikiMessageTool.java:259:23:
The String "]." appears 2 times in the file.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/web/XWikiMessageTool.java:276:64:
Expected @param tag for 'defaultLanguage'.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/web/XWikiMessageTool.java:278:9:
Declaring variables, return values or parameters of type 'ArrayList' is not
allowed.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/web/XWikiMessageTool.java:297:
warning: Comment matches to-do format 'TODO:'.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/web/XWikiMessageTool.java:307:5:
Missing a Javadoc comment.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/plugin/fileupload/FileUploadPlugin.java:236:
warning: Comment matches to-do format 'TODO:'.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/plugin/zipexplorer/ZipExplorerPlugin.java:289:
warning: Comment matches to-do format 'TODO:'.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/plugin/zipexplorer/ZipExplorerPlugin.java:315:
warning: Comment matches to-do format 'TODO:'.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/plugin/zipexplorer/ZipExplorerPlugin.java:319:
warning: Comment matches to-do format 'TODO:'.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/plugin/zipexplorer/ZipExplorerPlugin.java:325:
warning: Comment matches to-do format 'TODO:'.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/store/hibernate/HibernateAttachmentRecycleBinStore.java:32:8:
Unused import - com.xpn.xwiki.XWiki.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/store/hibernate/HibernateAttachmentRecycleBinStore.java:125:31:
The String "unchecked" appears 2 times in the file.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/store/hibernate/HibernateAttachmentRecycleBinStore.java:131:43:
The String "docId" appears 2 times in the file.
/home/asiri/projects/xwiki-dev/trunks/xwiki-platform-core/xwiki-core/src/main/java/com/xpn/xwiki/store/hibernate/HibernateAttachmentRecycleBinStore.java:136:69:
The String "date" appears 2 times in the file.
Audit done.
[INFO] There are 9 checkstyle errors.
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] Ending forked execution [fork id: 341048484]
[ERROR]
Mojo:
org.apache.maven.plugins:maven-checkstyle-plugin:2.1:check
FAILED for project:
com.xpn.xwiki.platform:xwiki-core:jar:1.4-SNAPSHOT
Reason:
You have 9 checkstyle violations.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run with the -e flag
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILED
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 6 seconds
[INFO] Finished at: Thu Apr 03 18:18:24 LKT 2008
[INFO] Final Memory: 9M/24M
[INFO]
------------------------------------------------------------------------
</DUMP>
Could I be doing anything wrong ?
Thanks.
- Asiri
The XWiki development team is pleased to announce the release of XWiki
Enterprise1.4 Milestone 1.
Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download
First milestone of the XWiki Enterprise 1.4 version.
Note that general goals for XWiki Enterprise 1.4 are:
* Switch to Java 1.5
* Improved stats performances
* XMLRPC improvements
* Improved performances (less Javascript files, more optimized
CSS, better caching, etc)
* Skins extensions
* Bug fixes
* More automated tests
For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise14M1
Thanks -The XWiki dev team