The XWiki Development team is proud to announce the second release of the 4.x cycle.
This release brings Extension Manager improvements such as merging of configuration documents during extension upgrade, a more gentle learning curve by hiding internal documents from non-technical users, and lots of goodies for the developers such as easy sharing of variables between scripts in different languages.
Download it hot off the press: http://www.xwiki.org/xwiki/bin/view/Main/Download
Other new and notable features include:
* Message sender macro for allowing users to send to the activity stream from any location.
* Global and per-user timezone settings
* Script access to load dependencies from the core using the Component Manager
* Smarter velocity interpretation converts allows strings to be passed to methods which take enums
* Stop run-away scripts after a configurable timeout
* Shorthand HQL queries in the Query Manager
For a full list with examples and explanations, check out the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterpris…
Thanks everyone who contributed to make the 4.1 cycle a success.
Caleb
Hi devs,
Here is what XWikiAttachment#setFilename looks like
public void setFilename(String filename)
{
filename = filename.replaceAll("\\+", " ");
if (!filename.equals(this.filename)) {
setMetaDataDirty(true);
this.filename = filename;
}
this.reference = null;
}
Seriously ?
That does not make any sense and there is not even a comment for it.
I would go for removing this replaceAll and forget about anything that
really expect this API to do something that bad and avoid
retro-compatibility nightmare.
WDYT ?
Here is my +1.
--
Thomas Mortagne
Hi,
XWIKI-7568 <http://jira.xwiki.org/browse/XWIKI-7568> - Implement mechanism
to hide technical content
added some big changes for me in the way we organize things inside XWiki,
what we consider to be hidden or not and how we reach hidden applications.
As a first visible change, now the Spaces gadget found on Main.WebHome
doesn't display anymore spaces like 'AnnotationCode', 'ColorThemes',
'Invitation', 'Panels', 'Scheduler', 'Stats'.
My main concern is that if something is not visible and accessible it will
never be used and thus it doesn't exists.
That's why I've created:
XWIKI-7916 <http://jira.xwiki.org/browse/XWIKI-7916> - Integrate
ColorThemes functionality inside Administration
XWIKI-7920 <http://jira.xwiki.org/browse/XWIKI-7920> - Integrate Scheduler
functionality inside Administration
XWIKI-7919 <http://jira.xwiki.org/browse/XWIKI-7919> - Create an entry
point for Stats inside Administration
XWIKI-7918 <http://jira.xwiki.org/browse/XWIKI-7918> - Have an entry point
for the Invitation application
While some functionality may seem normal to be Admin only (also because
some of the hidden spaces were about configuration), some is arguable:
- 'ColorThemes' initially were supposed to be used also by normal users in
their profile but this didn't made it in final implementation;
- makes sense that maybe a normal user could create a 'Panel' but right now
this is not possible from Panels.WebHome;
- Invitation should be able to be used by both types of users, but without
the setting of the server mail, the users will always receive an error;
- Stats again could be used by both.
What I would like is that things that are about configuration should always
be integrated in the Administration. I am referring to the Scheduler
configuration, Stats configuration, Search Suggest configuration, etc. The
logic behind is that the Administration acts like an entry point for any
configuration related actions. As Admin I shouldn't go outside
Administration in order to achieve my configuration task (ex.
XWIKI-7917<http://jira.xwiki.org/browse/XWIKI-7917>
XWIKI-7921 <http://jira.xwiki.org/browse/XWIKI-7921> etc. ).
Now adding configuration inside Administration still doesn't solve the
problem on the entry point. As an administrator, after I've completed the
configuration step, where do I find the application? As a normal user is
the same question + how do I even know that applications exists?
For this issue I've created
XWIKI-7927 <http://jira.xwiki.org/browse/XWIKI-7927> - Create an entry
point for all available applications inside the wiki
This can be implemented as a gadget, as a panel or even as an Application
Index (as a livetable or as a grid).
Now another problem remaining is that of specifying if an application is
intended for Advanced, Simple users or both. Who should see Stats app? All
the users? Just advanced users?
As a first step, the hidden feature works because 'advanced' applications
will be considered 'hidden' for users. The problem is what we consider
'advanced' to mean. Is ColorThemes or Stats an advanced application? And is
especially problematic since by default the Administrator has an 'advanced'
+ 'hidden' configuration, meaning that he will not be able to see by
default ColorThemes or other configuration (but currently hidden)
application that might be useful for him (he needs to know that the
functionality exists somewhere). So he is an 'advanced' user that doesn't
have visibility to 'advanced' applications.
So IMO the hidden mechanism is great for hiding technical pages (pages like
*Sheet, *Template, Macros, internal pages, etc.) from users. It doesn't
matter if those pages exist (from an user's point of view) as long as there
is an UI that integrates them.
The bad part of the current status of the 4.1RC1 is that IMO we should not
consider entire applications to be hidden. Internal pages of the
'Invitation' app should be hidden, but the WebHome (that contains the
functionality and the UI) should be available/discoverable somewhere.
In order for 'advanced' applications to not be displayed for normal users
we should have another field that describes the application and this can be
'simple' or 'advanced' (and not rely just on the 'hidden').
XWIKI-7925 <http://jira.xwiki.org/browse/XWIKI-7925> - Have application
descriptors for Application spaces
So the only problem remaining (besides the actual implementation :) ) would
be to discuss what applications are advanced (or even admin only) and what
are not (thus available to the general population). Keep in mind that the
current separation is now simple/advanced but we might need a
user/developer/admin separation in order to better separate the task
functionality of our current applications scopes (ex. since we might want
to have admins only applications that should not be available to
developers, both being advanced users).
Thanks,
Caty
Is there a version of the Groovy Console (
http://extensions.xwiki.org/xwiki/bin/view/Extension/Groovy+Console+Applica…
) that is compatible with XWiki 3.5?
When I try to run it, I see missing icons ( referencing old skins,
which I fixed), but now get the following JavaScript errors after
attempting to execute my Groovy code:
Uncaught ReferenceError: CodeMirror is not defined
var editor = CodeMirror.fromTextArea('script', {
And "Uncaught TypeError: Cannot call method 'getCode' of undefined"
var ajx = new Ajax.Request("$scriptDoc.getURL('save')" , {
parameters:
{"XWiki.ConsoleScriptClass_${scriptObj.number}_code":editor.getCode(),
"ajax":"1"},
onComplete:function(transport){
$('saveLoading').addClassName("hidden");
$('saveStatus').removeClassName("hidden");
$('saveStatus').innerHTML = "Saved !";
var foo = new Effect.Highlight('saveStatus');
setTimeout(function(){
$('saveStatus').innerHTML = "";
$('saveStatus').addClassName("hidden");
}, 5000);
}
I guess I could keep plugging away and trying to fix this, but was
wondering whether there's a newer version of the Groovy Console
compatible w/ XWiki 3.5 and beyond, or is there some simple fix to the
problems outlined above?
Seems like this has been noted as a problem previously:
http://lists.xwiki.org/pipermail/users/2011-October/020745.html
I attempted installing 'SyntaxHighlighting' (says its "CodeMirror
based syntax highlighting ...") and noticed it now adds new error at
startup in the GroovyConsole:
Uncaught TypeError: Object function
a(f,g){if(g.dumbTabs){g.tabMode="spaces"}else{if(g.normalTab)
Suggesting problems w/ this extension as well. I do note that my
existing scripts now have pretty syntax highlighting... so it is
working. Unfortunately, it also forces the wiki-code editor to appear
below the wysiwyg and makes the wysiwyg area too small. So I
uninstalled it and my Wysiwyg now works as before....
Any way of getting Groovy Console functionality working? Seems like a
great way to work with cloud-based XWiki installs, such as mine...
Thanks,
-- Niels
http://www.nielsmayer.com
Hi,
I want to list some ideas about Extension Manager that come to my mind. I'm
sure others thought about them already or will find the time to make some
other suggestions:
1) Filtering core extensions
Would be nice to be able to view preinstalled applications with EM.
Right now everything that comes preinstalled is found inside 'Core
extensions'.
There are a lot of technical extensions, but there are also some extensions
that could be of general knowledge. For example it would be nice to see
what functionality a default wiki has in terms of applications and macros
(even nicer if we think about future flavored packages). This would allow
the administrator to quickly scan and customize the tools at his disposal.
Maybe it would be interesting to have some filtering functionality.
This way I could filter for applications and see that I have preinstalled
'Activity Stream', 'Annotations', 'Search', 'WYSIWYG', 'Message Stream',
etc. and if I filter for macros I could get 'Chart macro', 'Box macro',
'Display macro', 'Message macro', etc.
2) Enable/Disable applications from inside EM
Another idea is for the EM to sustain enable/disable actions for
installed/core applications/macros. Right now applications like
'Annotations', 'Search Suggest', 'Message Stream', even 'OpenOffice Server'
have special settings that permit to enable ('activate') them. This
functionality could be covered by the EM and not display anymore special
administration sections for each applications.
3) Integrate application configuration inside EM
If EM will manage installed applications and would also allow the
enabling/disabling part, than is normal that the application configuration
should be made also from inside the EM and not as a separate Administration
component.
Although all things in XWiki are extensions and components, we would need
to get along what the lightest version of xwiki would contain (in terms of
functionality and not components). For this default functionalities (Users,
Rights, Localization, Presentation, Import/Export, etc.) the Administration
sections would be still used, since they could be considered core elements
and not something that can be disabled or uninstalled.
Maybe all the thoughts I am writing here could also be solved if we rewrite
some functionality like 'Activity Stream', 'Annotations', some macros, etc.
and not display them anymore as 'Core Extensions' but rather as 'Installed
Extensions'.
Thanks,
Caty
Hello developers,
I seem to see a regression whereby a POST to an /xwiki/bin/upload/ request no more uses the xredirect parameter and simply redirects to the page.
Is this a known change?
Is it supposed to have been working being undocumented and can try to find a fix?
Or should I simply try to adjust the client (tremble tremble).
thanks in advance
Paul
Dear all,
some notes about my recent upgrade from 3.5 wiki farm to a 4.0
-- Sysem --
* Xwiki 4.0 farm (the old way, independent farm)
* Jetty package that you provided xwiki-manaer-mysql-4.0
* 4 wikis (2 active, one template and the manager)
* File attachments on filesystem
-- Question --
1) After I have upgraded from xem 3.5 to xem 4.0 all previously
installed extensions have been removed from XEM control panel (but
extension pages are still present) - minor bug, I have solved it
reinstalling all extensions.
2) Since XEM 3.5 xwiki-manager can setup two different kind of
multiple wikis: a) workspaces b) the old way wikifarm.
- What is exactly the difference between that two?
- XEM home page suggests to create workspaces and the old wikifarm is
placed in a sub page, this create some confusion. I would prefer to
have both options on the home page with some notes that explain
differences. Personally I use the wiki farm (independent wikis).
3) In wikifarm (independent wikis) management of extensions is not
clear.
- If I install an extension from XEM it is installed in all sub-wikis,
but if I remove it, it is removed only from XEM and not from sub-wikis
(pages are still present but extension disappear form sub-wikis
control panel, so it is impossible to completely remove them)
- If I install an extension in sub-wiki, it is listed in XEM, but if I
select it I see many errors.
-- Bugs --
- One of the two wiki is constantly loosing web preferences settings
(skins and localization template), no error in file log, really
annoying and hard to debug.
- Since webpreferences settings are lost, it is impossible to know
what extensions were installed
-- Workaround --
- Is it possible to have multiple wiki (completely independent)
without using Xem?
-- My proposal --
- If an extension is installed in XEM it can be removed only from XEM
and this remove the extension form all sub-wikis (we could delete
pages and send them in the recycler bin for better security)
- If an extension is installed in sub-wikis it is only listed in the
relative control panel of that wiki
Thank you,
Gianluca