Hi,
for one of our projects, we're creating a XWiki component, based upon
this documentation
(http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents).
In documentation, it is said we can access the XWikiContext, which is
also said to be deprecated.
Considering that, and the fact we're running in XWiki 7.0, what is the
best way to get incoming request parameter ?
Thanks
Hi,
Firstly, I hope I'm sending this to the correct e-mail, if not please tell
me so I can avoid making the same mistake in the future.
Secondly, I would like to create my own personal Wiki. I'm mainly going to
use it for personal use. This will hold a knowledge base for my IT and
Webdesign knowledge to present me this in a structured way. While I'm using
this, I'm also going to evaluate it to use it in an enterprise environment.
Owner name: Daniël Meyfroot
Wiki name: bedar.myxwiki.com (bedar89 is also possible, but I prefer
without numbers)
Thank you in advance,
Daniël Meyfroot
Hi all!
We have successfuly updated our XWiki 6.x installation along the whole 6 cycle, but I'm in troubles with the new 7.0 release. I think that with only the first four lines of the error stack
XWiki initialization failed !
Exception thrown during job execution
class java.lang.AbstractMethodError: null
at org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
at org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
...
Here you could find all catalina.out logged me after a Tomcat shutdown/start cycle and a call to XWiki in that server...
http://atriumkm.idisantiago.es/bin/download/ICT/XWikiUpgradeIssues/tomcatEr…
XWiki is running in a CentOS box...
[root@idis1 /]# cat /etc/centos-release
CentOS release 6.5 (Final)
With the following XWiki relevant pieces...
[root@idis1 /]# java -version
*java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
... concerning JDBC
Since 1.7 -- new in the JDBC 4.1 API and part of the Java SE platform, version 7
*INFO: Starting Servlet Engine: Apache Tomcat/7.0.55
To the best of my knowledge, compatible with the new Servlet Spec as per...
http://tomcat.apache.org/whichversion.html
... from XWiki 7.0 Release Notes
mysql> status
--------------
*mysql Ver 14.14 Distrib 5.5.38, for Linux (x86_64) using readline 5.1
*mysql-connector-java-5.0.8-bin.jar (2007-10-09)
Well, this piece is a good candidate for being identified as the poblem, but updating it to the last available release...
mysql-connector-java-5.1.35-bin.jar (2015-03-23)
...doesn't solve the issue.
As they are a lot of versions between mysql-connector-java-5.0.8-bin.jar (working for us nicely so far) and the newest mysql-connector-java-5.1.35-bin.jar (failing for us, at least with this combination of Java, Tomcat and MySQL), please, could you tell us if we are in the right direction? Should we update any other component but mysql-connector-java-x.y.z-bin.jar to get XWiki 7.0 working? Should we start trying one by one mysql-connector-java-x.y.z-bin.jar newer releases? Do you know which release introduces JDBC 4.1 support?
Thanks you so much for your help!
Ricardo
--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es
________________________________
Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.
Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada.
See more languages: http://www.sergas.es/aviso_confidencialidad.htm
We use the database connector "mysql-connector-java-5.1.24-bin.jar" and are hesitant to proceed with the upgrade until this issue is resolved.
Thanks,
Jeff Anderson
Press F5 to refresh on that page. We had this as well. I think something gets cached in the browser that stops it from loading. I never got to the bottom of it, but it hasn't really happened with V7 actually (and users now know to press F5 before reporting an issue to me :) )
I hope that helps.
Kind regards,
Mahomed
-----Original Message-----
From: users [mailto:users-bounces@xwiki.org] On Behalf Of Jeff Anderson
Sent: 07 April 2015 15:29
To: users(a)xwiki.org
Cc: # IT
Subject: [xwiki-users] XWiki 6.4.3 - Bug - Stuck Loading Edit Page
After updating the wiki from v6.4.2 to v6.4.3 we have run into an issue.
Upon clicking "edit" button to edit a page the page will get stuck loading the page.
This has been reported to happen on multiple occasions.
Thanks,
Jeff Anderson
ü P.R.I.D.E.<http://pridedallas.com/> IT Analyst
* jeffanderson(a)pridedallas.com
* (214) 420 7818
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
After updating the wiki from v6.4.2 to v6.4.3 we have run into an issue.
Upon clicking "edit" button to edit a page the page will get stuck loading the page.
This has been reported to happen on multiple occasions.
Thanks,
Jeff Anderson
ü P.R.I.D.E.<http://pridedallas.com/> IT Analyst
* jeffanderson(a)pridedallas.com
* (214) 420 7818
Hello,
i like the REST-API and have a library in Java which works perfect. Now i
want to use the RESTful API in Javascript. But i am new to javascript and
tried a lot, but nothing seems to work. Is there a simple example in
javascript with the rest-api?
I don't get what i am doing wrong, because i am not good in javascript.
I tried
require(['jquery'], function ($) {
$.ajax({
accepts: {xml: 'text/xml', text: 'text/plain'},
url: 'http://HOST/xwiki/rest',
type: 'GET',
dataType: 'xml',
contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
converters: {'text xml': jQuery.parseXML},
crossDomain: true,
async: true,
username: 'username',
password: 'apassword',
success: function(data){
alert("Success: "+JSON.stringify(data));
},
error: function(data){
alert("Error: "+ JSON.stringify(data));
}
});
});
Also i tried
var httpRequest = new XMLHttpRequest();
httpRequest.open('PUT', 'http://HOST/xwiki/rest');
httpRequest.setRequestHeader('Accept', 'application/xml');
httpRequest.send( null );
alert( JSON.stringify(httpRequest.responseText) );
httpRequest.onreadystatechange = function(){
if(this.readyState == 4){
if(this.status == 200){
alert(this.responseText);
}
else{
alert(this.statusText);
}
}
}
I recognized a difference in ajax when i switched to jsonp because i tried
on localhost. But anyway my example work when i use my server outside.
Can you help me?
Regards,
Matthias
--
View this message in context: http://xwiki.475771.n2.nabble.com/Javascript-RESTful-tp7594084.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
I'd like to be able to generate pure JSON from a wiki page, to use in other pages via AJAX. To that end I created a page with the following content:
{{velocity wiki="false"}}
$response.setContentType('application/json')
{
"greeting" : "Hello",
"location": "World"
}
{{/velocity}}
Calling this via /xwiki/bin/get/Sandbox/JsonTest I get the following code:
<p><br/>{<br/>"greeting" : "Hello",<br/>"location": "World"<br/>}</p>
I get the same via /xwiki/bin/view/AlertDB/JsonTest?xpage=plain.
If I remove the $response.setContentType('application/json')
https://dev.alertnessdb.net/xwiki/bin/view/AlertDB/JsonTest?xpage=plain
Currently, I'm using something like this to generate a list of pages whose
prefix is "Prefix:" and link to them:
{velocity}} (((
#foreach ($row in $services.query.hql("select doc.name, doc.fullName from
XWikiDocument doc where doc.space.hidden = false and doc.space not in
('XWiki', 'Sandbox', 'Main', 'Macros') and doc.name like
'Prefix:%'").execute())
* **[[$row[0].replaceFirst("Prefix: *", "").replaceAll("~",
"~~~~").replaceAll("[\x20-\x7f&&[^a-zA-Z0-9 ~]]",
"~~$0")>>doc:$row[1].replaceAll("~", "~~").replaceAll("[\x5b\x5d|]", "\\$0
<file:///\\$0> ")]]**
#end
))) {{/velocity}}
I have tested with some heavy test cases like
Prefix:
~~~!!!```@@@$$$%%%^^^&&&***((()))___----+++==={{{}}}[[[]]]\\\|||:::;;;'''"""
???///...>>>,,,<<<
And what I have above works correctly (both showing the title and linking to
the document). I only work on a few hard test cases, though, so I'm not sure
if I missed anything.
Is there a method that does all this automatically? Or is there a better
approach to this?
I have a Groovy script that takes input from a form textarea. I'd like to prevent html (and JS) markup from being submitted and, if HTML is submitted, strip it out. Is there a tool already packaged within XWiki to do this, or should I look to an external package like Jericho?
Thanks,
Bryn
Hello,
I'm looking for advice about a way to add some tags on saved page with class.
What I have:
- a sheet page with an object Class ( with an object class + properties) + a template page
- a velocity code in a page AddMyTag to add some tags on some page with this URL parameters:
$!request.PageSource, $!request.ClassName
What I'm trying to do, is: when a user save a page, a tag is added. The tag to add is coming from a properties value (last character on property name is _Tag).
If I call my 'AddMyTag' page, tags are correctly added on PageSource.
To resume:
- the user save HisPage
- HisPage add tags from a properties value (name xxx_Tag)
My problem is "how can I launch" automaticelly my 'AddMyTag' page when a user record PageSource?
I tried with Ajax with
document.observe("xwiki:actions:save", function(event){ (http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI#HActioneven…) but the problem is: sometime xxx_Tag property value is updated after my AJAX call (and the old tag is attached on page).
A the moment, I'm looking for another way, I read http://extensions.xwiki.org/xwiki/bin/view/Extension/WikiComponent+Module
But documentation indicate: "The goal is to listen ... DocumentUpdatingEvent events (note that these events are fired before the page is saved and thus our code doesn't need to perform the save itself ..."
Then I can not use this method either because I must add tag from new value from my _Tag properties.
How can I launch a velocity script on a document after document is saved (to add some tag from the document itself)?
Thxs for any help
Pascal B
I would like to create a form for a international audience (multi language)
So I created a AppWithinMinutes app.
I would like that my users can Multiselect from a list that is a selection
of objects based on a class.
So i created a class (with AppWithinMinutes:
Class properties
Short Text (shortText1: String)
Long Text (longText1: TextArea)
Long Text (longText2: TextArea)
Database List (databaseList1: Database List)
The databaseList1 has the following properties:
DisplayType: checkbox
Multiple Select: true
XWiki Class Name: XWiki.UIExtensionClass
Id Field Name: name ()
Value Field Name: name
The first issue I get that I get all objects of the class. I hoped to add a
selection by adding this query:
from doc.object(XWiki.UIExtensionClass) as obj where
lower(obj.extensionPointId) like '%cdlsworld.standardized.questionaires%'
and ('wiki' = obj.scope) order by obj.name
But how can I add this?
The second issue that I hoped to be able to use for the option to add the
translated value
$services.localization.get('$value')
I'm sorry but i can't find any option like "icon theme".
Am I in the wrong dialog(see the screenshots in the attachments)?
2015-04-03 12:27 GMT+02:00 Georg Hirn <georg.hirn(a)gmail.com>:
> I'm sorry but i can't find any option like "icon theme".
> Am I in the wrong dialog(see the screenshots in the attachments)?
>
> 2015-04-03 11:32 GMT+02:00 Marius Dumitru Florea <
> mariusdumitru.florea(a)xwiki.com>:
>
>> On Thu, Apr 2, 2015 at 12:12 AM, Georg Hirn <georg.hirn(a)gmail.com> wrote:
>> > Hi,
>> >
>>
>> > I have changed the skin of my xwiki(6.4.3) installation from calibri to
>> > flamingo.
>>
>> Flamingo is the default skin since XWiki 6.2 so why did you have to
>> switch from Colibri? Did you do an upgrade from a previous version (<
>> 6.2)? It's always important to mention if the problem is on a clean
>> install or after an upgrade.
>>
>> Thanks,
>> Marius
>>
>> > When I refreshed the page there were some errors. On some buttons
>> > the icons were drawn multiple, see the picture in the attachment.
>> > I tired to update to the latest stable xwiki version (7.0) but nothing
>> > changed.
>> > Could anybody help me please?
>> >
>> > Thanks,
>> > Georg
>> > _______________________________________________
>> > 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
>>
>
>
Hello!
I'm trying to use XWIki for purposes for company documentation and data.
My first step is to setup XWiki for HR Department, and for now I have
problems with that.
Can you please help me?
1. How can I make some kind of Address Book? We need a place, where we
can put in all contacts of our current team, their photo, emails, tel.
numbers, skype, etc.
2. Is it possible to place this kind of information on dashboard?
3. Is there any way to place an announcement, so all xwiki users will
see it?
--
*Faithfully yours,Andreev Vladislav*
*Head Project Manager*
*Cleveroad Inc.*
> > I found my
> query, something like this:
> > #set($hql =
> "select obj.name, prop.value from BaseObject obj,
> StringProperty prop where (
> obj.className='FormSMQ.EAClass' or
> obj.className='FormSMQ.PiacJ2Class' ) and
> prop.id.id=obj.id and
> prop.name='TypeFiche_RO'")
> >
>
> > Now
> I need the JSON format of my JSON data provider (resultPage
> parameter: full name of the page to use as a JSON data
> provider for the table)
>
> You
> can use https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
> as an example of a custom results page.
Thanks, I will give a try.
With ResultPage, I wonder if I could use select list of livetable.
Thanks you VERY much to make my week-end busy ;-)
>
> > -
> "search page" searching only Id value and not lib
> value (of course because it is the id value that is stored
> in EAClass object)
> > i.e. I found pages,
> if I search "25_dgec" but not if I search
> "DGEC"
>
> Yes, this
> is 'normal' because ATM only the raw value (id) is
> indexed
> for Database List properties.
>
> > - Result "search
> page" displayed property name (and not the pretty name)
> FAQ have same issue.
> > - my solr facet
> displayed my id value too.
> >
> > Do you know how can I fix this issue (if
> someone understand my problem ;-) )?
>
> > Here I paste a nice screenchot: http://snag.gy/Joa7q.jpg
>
> ATM there's no solution
> for the search results highlights. The
> property name displayed there is part of the
> highlight (the matched
> text) and it cannot
> be parsed (if the property value is large enough
> and the match is somewhere at the end then the
> property name is not
> even included in the
> match).
>
To resolve the problem I use lib column to display correct value (and not the id)
> Regarding the raw
> value (id) displayed in the facet, you can write a
> custom facet that displays the label
> corresponding to the raw value.
>
Yes I manage to did this solution, but I was confronted at multi class problem (again)
Thxs anyway, I store pretty name in my Page with Class.
Hi,
As I tried XWiki, I used my laptop as server with the Windows standalone
install.
Now, I want to have XWiki installed on a standard server with a standard
DB/web server using the XWiki RPM (I guess this RPM will not install
Jetty/SQLite, but Tomcat/??).
But, I would better not have to reinstall the various extensions,
recreate the users (with the same login/passwords) and rewrite the pages
I already have.
Is there any synchronisation mechanism available that would allow me to
give the "official" XWiki my "prototype" one as a kind of upstream
server and make sure their content and config is synchronized ?
Thanks
--
Nicolas Delsaux
We are having an issue where some links that have been created are not opening up in a new tab or window. An unregistered user is prompted to download the linked attached document rather than opening up in a new tab or window, even if the option is set in the link.
If the contributor that created the link does not have program right, we see the above behavior. If the admin account created the link, it works as expected.
We are on version 6.3
Please advise.
This e-mail, and any attachments, is intended only for the use of the
addressee(s) named herein and may contain legally privileged and/or confidential
information. If you are not the intended recipient of this e-mail, you are
hereby notified that any dissemination, distribution or copying of this e-mail,
and any attachments, is strictly prohibited. If you have received this e-mail in
error, please notify me via return e-mail immediately and permanently delete the
original from your computer. Thank you, Mangar Industries Inc.
Hello
I created an application:
- my Class EAClass contain a field DG MOA * : (P1_DgMoa: Database List)
Display Type: select
Sort: Id
XWiki Class Name: FormSMQ.ListeDGClass
Id Field Name: DGId
Value Field Name: DGLib
My Class (source of select list) FormSMQ.ListeDGClass have 2 fields:
DG Id (DGId: String): contain l'Id of my list
DG Lib (DGLib: String): contain lib (pretty name like) who is displayed on my list select.
My data are:
DGId:20_dgaln / DGLib: DGALN
DGId:25_dgec / DGLib: DGEC
DGId:30_dgitm / DGLib: DGITM
...
Everything going well:
-all pages based on EAClass displayed Lib Value in view mode and in edit mode too (the id value is stored in the page)...
Except for search engine: I have some problems:
- "search page" searching only Id value and not lib value (of course because it is the id value that is stored in EAClass object)
i.e. I found pages, if I search "25_dgec" but not if I search "DGEC"
- Result "search page" displayed property name (and not the pretty name) FAQ have same issue.
- my solr facet displayed my id value too.
Do you know how can I fix this issue (if someone understand my problem ;-) )?
Here I paste a nice screenchot: http://snag.gy/Joa7q.jpg
Thanks.
Pascal B
--- En date de : Ven 27.3.15, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> a écrit :
> De: Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
> Objet: [xwiki-users] livetable with multiple class?
> À: "XWiki Users" <users(a)xwiki.org>
> Date: Vendredi 27 mars 2015, 14h19
> If I understand documentation, to use
> Livetable with multiple Class (with 3 or 4 common
> properties: same name) I must use
> Parameter $options:
> resultPage The full name of the page to
> use as a JSON data provider for the table. This option
> allows to use a different data source than the default one
> (XWiki.LiveTableResults) for specific needs not handled by
> LiveTableResults (for example: complex cross-classes
> queries, external data retrieved with a groovy script,
> etc.).
>
...
> Can I do it with query in one (or two) shots or I must use a
> foreach loop to rendering my JSON data?
I found my query, something like this:
#set($hql = "select obj.name, prop.value from BaseObject obj, StringProperty prop where ( obj.className='FormSMQ.EAClass' or obj.className='FormSMQ.PiacJ2Class' ) and prop.id.id=obj.id and prop.name='TypeFiche_RO'")
Now I need the JSON format of my JSON data provider (resultPage parameter: full name of the page to use as a JSON data provider for the table)
> >
> > A the
> moment, I'm looking for another way, I read http://extensions.xwiki.org/xwiki/bin/view/Extension/WikiComponent+Module
> > But documentation indicate: "The goal
> is to listen ... DocumentUpdatingEvent events (note that
> these events are fired before the page is saved and thus our
> code doesn't need to perform the save itself
> ..."
>
> > Then I can
> not use this method either because I must add tag from new
> value from my _Tag properties.
>
> It doesn't say the document doesn't
> have the changes. But that the
> event is
> fired before the changes are saved. So if you listen to
> this
> event you should be able to get the new
> property value and add the
> tag. Just
> don't call save() in the event handled because this is
> done
> automatically after the event is passed
> to all handlers (including
> yours).
Ok thxs.
Then I must try this method, I must found the way to execute my velocity script to add/remove some tags (all is ready, I need to pass this parameter on my velocity code:
$request.PageSourceTo applyMyTag (and eventually) $!request.MyClassAttachedOnMyPage
but I'm affraid than there will be some conflict (or loop) because my velocity script use $xwiki.tag.addTagToDocument(String tag, String documentName) : this method save document...
Why I don't use full groovy script? Because I know API xwiki with velocity only (it is simple and groovy doc missing)
I admit I didn't initially understand the WAR + UI upgrade relation. But now that it has been explained, I promise to upgrade both when I do my testing and production upgrades :)
Kind regards,
Mahomed
-----Original Message-----
From: users [mailto:users-bounces@xwiki.org] On Behalf Of vincent(a)massol.net
Sent: 03 April 2015 12:39
To: Marius Dumitru Florea; XWiki Users
Subject: Re: [xwiki-users] Advice on upgrade and testing
Indeed not upgrading WAR + UI makes sense. Upgrading only WAR without the UI doesn’t.
We agree :)
Thanks
-Vincent
On 3 Apr 2015 at 13:37:48, Marius Dumitru Florea (mariusdumitru.florea(a)xwiki.com) wrote:
On Fri, Apr 3, 2015 at 2:05 PM, vincent(a)massol.net <vincent(a)massol.net> wrote:
> Hi Mahomed,
>
> 2 things:
>
> 1) if you pressed “later” XWiki will not ask you again until it’s restarted
> 2) if you don’t upgrade now you are going to risk having stuff in your wiki that don’t work so it’s important you upgrade ASAP. Having a reminder at each XWiki restart is a good thing and bypassing that is not such a brilliant idea IMO :)
My comment was about blocking the WAR upgrades not the UI upgrades
(through the DW). When you install XWiki through APT you may get
unwanted WAR uppdates because:
* the system is configured to update automatically
* the list of system updates is large and you don't notice that XWiki
is included in the list
Thanks,
Marius
>
> Thanks
> -Vincent
>
> On 3 Apr 2015 at 13:01:10, Mahomed Hussein (mahomed@custodiandc.com(mailto:mahomed@custodiandc.com)) wrote:
>> Hi
>>
>> This is brilliant and just what I needed. Thank you very much!
>>
>>
>> Kind regards,
>>
>> Mahomed
>>
>>
>>
>>
>> -----Original Message-----
>> From: users [mailto:users-bounces@xwiki.org] On Behalf Of Marius Dumitru Florea
>> Sent: 03 April 2015 11:37
>> To: XWiki Users
>> Subject: Re: [xwiki-users] Advice on upgrade and testing
>>
>> On Wed, Apr 1, 2015 at 12:50 PM, Thomas Mortagne
>> wrote:
>> > On Wed, Apr 1, 2015 at 11:35 AM, Mahomed Hussein
>> > wrote:
>> >> Hi
>> >>
>> >> I wonder if anyone could be kind enough to provide me with some advice and pointers. I’ve noticed that XWiki runs its distribution upgrade wizard automatically when a new version is detected, but even though I pressed “Later” it still went ahead and upgraded. Or at least it appeared to have upgraded part of the system as the core version at the bottom showed 6.4.3 when the extensions etc. were still for 6.4.2. We started with 6.4.2 (installed using apt-get on Ubuntu 14.04). So, to summarise my questions:
>> >>
>> >>
>> >> · How do I stop Xwiki from automatically upgrading. I just want it to notify me then I can plan the upgrade
>> >
>> > You are mixing two different things. The upgrade wizard is only about
>> > part of XWiki (the standard wiki pages) and it's been triggered
>> > because you upgraded the WAR probably using apt-get upgrade. If you
>> > don't want XWiki to be upgraded by apt-get you need to look at apt-get
>> > configuration.
>>
>> > As far as I know you can indicate a list of packages to
>> > not be taken into account automatically by apt-get upgrade.
>>
>> I successfully 'blocked' upgrades for XWiki by creating the file
>>
>> /etc/apt/preferences.d/xwiki
>>
>> with this content:
>>
>> Package: xwiki-*
>> Pin: version 6.2.7
>> Pin-Priority: 1001
>>
>> See https://help.ubuntu.com/community/PinningHowto
>>
>> Hope this helps,
>> Marius
>>
>> >
>> >>
>> >> · How do you perform a controlled upgrade and test (I appreciate that this is a rather in-depth question)? What I need to be able to do is to do an upgrade and then be able to fairly easily test that the new version doesn’t break any of our documents or functionality that we depend on. Would the only way to do this be to keep a list of my changes and check them with every upgrade?
>> >
>> > The safest for this is usually to have a test server which is a clone
>> > of the production server on which you do the upgrade and test it
>> > before doing it on the production server.
>> >
>> >>
>> >> Thanks in advance for your time and help.
>> >>
>> >>
>> >> Kind regards,
>> >>
>> >>
>> >>
>> >>
>> >> Mahomed Hussein
>> >> Senior NOC Engineer
>> >>
>> >> P.S. We are finalists for Data Centre Colocation Supplier of the year, please help us to win and VOTE for us here
>> >>
>> >> Tel: +44 (0)1622 230382
>> >>
>> >> | Email: Mahomed(a)CustodianDC.com
> _______________________________________________
> 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
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hi
This is brilliant and just what I needed. Thank you very much!
Kind regards,
Mahomed
-----Original Message-----
From: users [mailto:users-bounces@xwiki.org] On Behalf Of Marius Dumitru Florea
Sent: 03 April 2015 11:37
To: XWiki Users
Subject: Re: [xwiki-users] Advice on upgrade and testing
On Wed, Apr 1, 2015 at 12:50 PM, Thomas Mortagne
<thomas.mortagne(a)xwiki.com> wrote:
> On Wed, Apr 1, 2015 at 11:35 AM, Mahomed Hussein
> <Mahomed(a)custodiandc.com> wrote:
>> Hi
>>
>> I wonder if anyone could be kind enough to provide me with some advice and pointers. I’ve noticed that XWiki runs its distribution upgrade wizard automatically when a new version is detected, but even though I pressed “Later” it still went ahead and upgraded. Or at least it appeared to have upgraded part of the system as the core version at the bottom showed 6.4.3 when the extensions etc. were still for 6.4.2. We started with 6.4.2 (installed using apt-get on Ubuntu 14.04). So, to summarise my questions:
>>
>>
>> · How do I stop Xwiki from automatically upgrading. I just want it to notify me then I can plan the upgrade
>
> You are mixing two different things. The upgrade wizard is only about
> part of XWiki (the standard wiki pages) and it's been triggered
> because you upgraded the WAR probably using apt-get upgrade. If you
> don't want XWiki to be upgraded by apt-get you need to look at apt-get
> configuration.
> As far as I know you can indicate a list of packages to
> not be taken into account automatically by apt-get upgrade.
I successfully 'blocked' upgrades for XWiki by creating the file
/etc/apt/preferences.d/xwiki
with this content:
Package: xwiki-*
Pin: version 6.2.7
Pin-Priority: 1001
See https://help.ubuntu.com/community/PinningHowto
Hope this helps,
Marius
>
>>
>> · How do you perform a controlled upgrade and test (I appreciate that this is a rather in-depth question)? What I need to be able to do is to do an upgrade and then be able to fairly easily test that the new version doesn’t break any of our documents or functionality that we depend on. Would the only way to do this be to keep a list of my changes and check them with every upgrade?
>
> The safest for this is usually to have a test server which is a clone
> of the production server on which you do the upgrade and test it
> before doing it on the production server.
>
>>
>> Thanks in advance for your time and help.
>>
>>
>> Kind regards,
>>
>>
>>
>>
>> Mahomed Hussein
>> Senior NOC Engineer
>>
>> P.S. We are finalists for Data Centre Colocation Supplier of the year, please help us to win and VOTE<http://www.dcsawards.com/voting.php> for us here<http://www.dcsawards.com/voting.php>
>>
>> Tel: +44 (0)1622 230382
>>
>> | Email: Mahomed(a)CustodianDC.com
>>
>>
>> | Web: www.CustodianDC.com<http://www.CustodianDC.com>
>>
>>
>> | Info: info.CustodianDC.com<http://info.CustodianDC.com>
>>
>>
>> [Custodian Data Centres]<http://www.CustodianDC.com>
>> [ISO 27001 IS:567248]
>>
>> Click to VOTE<http://www.dcsawards.com/voting.php> for Custodian! [DCS Awards Finalist]
>>
>>
>> [Like us on Facebook!][Follow us on Twitter][See us on YouTube!]
>> [Link to us!][Google Plus!]
>>
>>
>> Click here to view our email disclaimer<http://www.custodiandc.com/disclaimer.txt>
>> Registered Office: Maidstone TV Studios, Vinters Park, Maidstone, Kent ME14 5NZ. Company Number: 07878023
>>
>>
>>
>>
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne
> _______________________________________________
> 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
I wonder if anyone could be kind enough to provide me with some advice and pointers. I’ve noticed that XWiki runs its distribution upgrade wizard automatically when a new version is detected, but even though I pressed “Later” it still went ahead and upgraded. Or at least it appeared to have upgraded part of the system as the core version at the bottom showed 6.4.3 when the extensions etc. were still for 6.4.2. We started with 6.4.2 (installed using apt-get on Ubuntu 14.04). So, to summarise my questions:
· How do I stop Xwiki from automatically upgrading. I just want it to notify me then I can plan the upgrade
· How do you perform a controlled upgrade and test (I appreciate that this is a rather in-depth question)? What I need to be able to do is to do an upgrade and then be able to fairly easily test that the new version doesn’t break any of our documents or functionality that we depend on. Would the only way to do this be to keep a list of my changes and check them with every upgrade?
Thanks in advance for your time and help.
Kind regards,
Mahomed Hussein
Senior NOC Engineer
P.S. We are finalists for Data Centre Colocation Supplier of the year, please help us to win and VOTE<http://www.dcsawards.com/voting.php> for us here<http://www.dcsawards.com/voting.php>
Tel: +44 (0)1622 230382
| Email: Mahomed(a)CustodianDC.com
| Web: www.CustodianDC.com<http://www.CustodianDC.com>
| Info: info.CustodianDC.com<http://info.CustodianDC.com>
[Custodian Data Centres]<http://www.CustodianDC.com>
[ISO 27001 IS:567248]
Click to VOTE<http://www.dcsawards.com/voting.php> for Custodian! [DCS Awards Finalist]
[Like us on Facebook!][Follow us on Twitter][See us on YouTube!]
[Link to us!][Google Plus!]
Click here to view our email disclaimer<http://www.custodiandc.com/disclaimer.txt>
Registered Office: Maidstone TV Studios, Vinters Park, Maidstone, Kent ME14 5NZ. Company Number: 07878023