There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-c1f80371-1b32-41ee-82cc-a067033ab709 XWIKI-23582 Open

XWiki deb upgrade removes database configuration

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-f5be4a99-eb67-4fac-a0d8-09e6b76da646 Vincent on 09/Oct/25 10:17
 

hi, I don't know about the components, so thank you for explaining.
The thing is that I just had a working Xwiki installation that I apt update as described here: 
https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Upgrade/ ( 1.A )

Instead of an upgraded version with my data, I have an empty one.
On top of that the output in the terminal I posted suggest that when a DB is configured, one should 'refuse' the option which I think is no out of a yes/no option. I wouldn't expect any changes to happen, certainly not overwriting a file that had the db config, especially not when in other cases, at least there is a question if a file should be changed.

So I don't know at what level the best improvement can be made, but as it is it is certainly not good.

My suggestion:
 - if chosing (yes/no) now at current formulation of the text, do not change anything or behave the same as the other ones ( show diff, etc )
 - make the updater simply process db config and leave it unchanged, no matter the config
 - if for some reason current behaviour is wished for, explain in text what happens and have the script make a backup 

Just to be clear, I think the current behaviour is a major bug and has no place in an enterprise environment and it made me reconsider the use of Xwiki, because I simply don't want to be faced with this type of issue, needing to restore config from backup.
Thank you!

 
cid:jira-generated-image-avatar-f5be4a99-eb67-4fac-a0d8-09e6b76da646 Vincent on 09/Oct/25 10:18
 
hi, I don't know about the components, so thank you for explaining.
The thing is that I just had a working Xwiki installation that I apt update as described here: 
[https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Upgrade/] ( 1.A )

Instead of an upgraded version with my data, I have an empty one.
On top of that the output in the terminal I posted suggest that when a DB is configured, one should 'refuse' the option which I think is no out of a yes/no option. I wouldn't expect any changes to happen, certainly not overwriting a file that had the db config, especially not when in other cases, at least there is a question if a file should be changed.

So I don't know at what level the best improvement can be made, but as it is it is certainly not good.

My suggestion:
 - if chosing (yes/no) now at current formulation of the text, do not change anything or behave the same as the other ones ( show diff, etc )
 - make the updater simply process db config and leave it unchanged, no matter the config
( merging new options if needed )
 - if for some reason current behaviour is wished for, explain in text what happens and have the script make a backup 

Just to be clear, I think the current behaviour is a major bug and has no place in an enterprise environment and it made me reconsider the use of Xwiki, because I simply don't want to be faced with this type of issue, needing to restore config from backup.
Thank you!