[xwiki-users] Sub wiki delete of only sub-wiki user deleted all pages in XWiki space
We have a XWiki 5.0m1 wiki farm, relatively recently upgraded from 3.5 Having created a new subwiki for a new project, and spent a couple of days creating content in it, I noticed that the profile pics from the global users were not showing up I tried to create a local user with the same name (we had only global users until this point), but this did not work and I therefore deleted the local user page Unfortunately XWiki presented a confirmation dialog (for the delete) which I did not process mentally until after I had pressed confirm This dialog said that since this was the only page in the XWiki space, it would delete all the documents in the XWiki space ! Sure enough the XWiki space seems now to have been deleted in the sub wiki :-( (Seems that this is rather a serious bug - as this was clearly not the only page in the XWiki space) Good news the photos for the global users now displays properly, bad news the admin application and presumably everything else in the XWiki space in the subwiki (e.g. macros) are now gone Since there is no admin application in the sub wiki I cannot re-import the XWiki pages from the XAR I can equally neither export the pages in the new sub wiki to reimport in a backed up version, without the new sub wiki Can you recommend any course of action which will enable me to export my content pages from the new wiki or import a XAR of the administration application, without the administration application already being installed in the sub wiki (PS the main wiki is intact) Thanks for your help Tim -- View this message in context: http://xwiki.475771.n2.nabble.com/Sub-wiki-delete-of-only-sub-wiki-user-dele... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Tim, On Fri, Apr 26, 2013 at 6:53 PM, Tim.Jones <[email protected]> wrote:
We have a XWiki 5.0m1 wiki farm, relatively recently upgraded from 3.5
Having created a new subwiki for a new project, and spent a couple of days creating content in it, I noticed that the profile pics from the global users were not showing up
I tried to create a local user with the same name (we had only global users until this point), but this did not work and I therefore deleted the local user page
Unfortunately XWiki presented a confirmation dialog (for the delete) which I did not process mentally until after I had pressed confirm
This dialog said that since this was the only page in the XWiki space, it would delete all the documents in the XWiki space !
I'm not aware of such a feature in XWiki. I'm pretty sure you deleted the space instead of deleting the page. In any case, XWiki has a recycle bin so you can restore your pages from there. Either manually (unfortunately one by one) by going to Main.AllDocs page in that subwiki and selecting the 'Deleted Documents' tab, or by code, combining http://extensions.xwiki.org/xwiki/bin/view/Extension/Deleted+Documents with http://extensions.xwiki.org/xwiki/bin/view/Extension/Restore+Documents . Hope this helps, Marius
Sure enough the XWiki space seems now to have been deleted in the sub wiki :-(
(Seems that this is rather a serious bug - as this was clearly not the only page in the XWiki space)
Good news the photos for the global users now displays properly, bad news the admin application and presumably everything else in the XWiki space in the subwiki (e.g. macros) are now gone
Since there is no admin application in the sub wiki I cannot re-import the XWiki pages from the XAR
I can equally neither export the pages in the new sub wiki to reimport in a backed up version, without the new sub wiki
Can you recommend any course of action which will enable me to export my content pages from the new wiki or import a XAR of the administration application, without the administration application already being installed in the sub wiki
(PS the main wiki is intact)
Thanks for your help
Tim
-- View this message in context: http://xwiki.475771.n2.nabble.com/Sub-wiki-delete-of-only-sub-wiki-user-dele... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Marius Thanks for your reply. Unfortunately, I imagine the AllDocs feature depends on code which is in the XWiki space as no documents are displayed, deleted or otherwise. However, I used the macros you suggested and was able to restore all the docs in the XWiki which had been deleted. Thanks very much for your swift and very helpful response :-) (PS I definitely did not delete the space) -- View this message in context: http://xwiki.475771.n2.nabble.com/Sub-wiki-delete-of-only-sub-wiki-user-dele... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
Marius Dumitru Florea -
Tim.Jones