On 24 Mar 2016, at 14:45, Marius Dumitru Florea
<mariusdumitru.florea(a)xwiki.com> wrote:
On Thu, Mar 24, 2016 at 2:48 PM, Vincent Massol <vincent(a)massol.net> wrote:
Hi Denis,
On 24 Mar 2016, at 12:48, Denis Gervalle
<dgl(a)softec.lu> wrote:
+0
As Thomas said, it would be better to also fix the issues, this should
not
be that hard.
There is also other aspects that deserve attention:
- migrating users, that should be warned and provided better way to
migrate than a snippet IMO.
- the fact that user data will no more be in a
single place, and that
user
may miss the permanent directory for their
backup, especially because it
does not contains other precious information so far. We should raise more
attention on that point.
FTR I’ve documented this a long time ago at:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup
Use cases:
* UC1: The user upgrades to latest version of XWiki and merges the
xwiki.cfg file
* UC2: The user installs a new version and imports a XAR containing all
his pages (including attachments).
For UC2 nothing to do.
For UC1, there are several options:
1) We convert Caleb’s snippet into a DB migrator and move the attachments
out of the DB at startup
2) We don’t do anything at startup but we notice that there are attachment
content in the DB and we show a "Distribution Wizard”-like UI to convert at
the first request (for admins), using the code Caleb’s snippet. We would
put explanations about the backup warning you mentioned.
What would be the best would be to refactor the DB migrators so that they
can have an associated UI, which would be a "Distribution Wizard”-like UI.
Any better idea?
Now all this is theoretic since there’s nobody with the time to work on
any of this AFAIK, so we can create jira issues about it but if we want to
progress we need to turn on FS-attachments by default.
There's no guarantee that the issues will be fixed after we enable File
System attachments by default, unless we put in on the roadmap (with
someone assigned to it), but then what stopped us from putting it on the
roadmap before?