On Tue, Jul 30, 2013 at 12:01 PM, Vincent Massol
<vincent(a)massol.net> wrote:
On Jul 30, 2013, at 11:57 AM, Vincent Massol <vincent(a)massol.net> wrote:
On Jul 30, 2013, at 11:48 AM, Denis Gervalle <dgl(a)softec.lu> wrote:
> On Mon, Jul 29, 2013 at 6:42 PM, Vincent Massol <vincent(a)massol.net>
wrote:
>
>> Hi Guillaume,
>>
>> On Jul 29, 2013, at 6:06 PM, Guillaume Fenollar <
>> guillaume.fenollar(a)xwiki.com> wrote:
>>
>>> Hello all,
>>>
>>> Platform and Client team of XWiki SAS find interesting the idea of
having
>>> XWiki version written as comment in
the top of xwiki.cfg (no need for
>>> particular location though).
>>> When an upgrade is performed, it would permit to know if this
>> configuration
>>> file has been merged (new xwiki version) or directly moved
>> (first/previous
>>> xwiki version) from the old webapp.
>>>
>>> Do you think it would be feasible?
>>
>> How do you think it would work?
>>
>> * Imagine you have version N installed.
>> * Now you've upgraded your WAR to version N+1
>> * You merge the xwiki configuration files
>> . If you don't edit their versions you still have version N mentioned
and
>> it's even worse than before because
the next person that comes will
see and
>
*trust* that you're at version N when you're actually at version N+1.
>
> I don't see how having a comment with the current version will help… I
> fear it might do the opposite...
>
I do not understand what you fear, a comment saying "Configuration file
distributed with XWiki version x.y.z" could not really cause an issue to
the merge process, and could help the way Guillaume said without causing
any misinformation from our side anyway.
Administrators could do tons of stupid things while merging, it does not
matter.
I explained the risk in my mail but I was probably not clear.
Summary:
Having wrong doc is worse than having no doc.
It is not wrong doc for our distributed configuration files. So nothing to
fear, this why I do not understand why you seems to be against that
comment. What will be done with it later is up to the user, and you cannot
prevent him to do stupid things.