Re: [xwiki-users] XWiki space partially deleted

2014-01-08 Thread vinc...@massol.net
Hi Peter,

On 8 Jan 2014 at 11:42:55, Peter John Acklam 
(pjack...@gmail.com(mailto://pjack...@gmail.com)) wrote:

> I wanted a metawiki space, so as the "Admin" user, I created the "XWiki"
> space. Realizing that we already had a "Wiki" space, I deleted the "XWiki"
> space. The deletion to surprisinly long time, so I got suspicious and hit
> "Cancel". I didn't think much of it until a few days later, when I was no
> longer able to log in as "Admin". That was when I remembered that the
> "XWiki" space is special. I had deleted a lot more than just a newly
> created empty space.
>  
> Now I am no longer allowed to log in as "Admin" or "superadmin". Both
> accounts worked before, but now both give me the error message "Invalid
> credentials". Apparently, all users can log in with their ordinary user
> account, but with no admin account I can no longer re-import the XWiki
> pages from the XAR file.
>  
> The "superadmin" account was enabled when I upgraded to the current XWiki
> 5.2. It was tested and working, but not any longer.
>  
> How on earth to I get around this?

The Admin user is located in the page XWiki.Admin so if you removed the XWiki 
space you probably removed that user too :)

Now I’ve tried it locally too and I can tell you that using the superadmin user 
works fine for me even with the full XWiki space removed.

I noticed something strange though. I deleted the XWiki space and then tried to 
go to the wiki home and I got a stack trace on screen. Then I restarted XWiki 
and I was able to view the home page and I was able to log in as superadmin.

> As as side note, I am very surprised that 1) I was able to create the
> "XWiki" space, just as any other space, and 2) that I was able to delete
> the "XWiki" space with no notification about this space being vital to
> XWiki.

It’s not completely vital. I did remove the full XWiki space and my xwiki still 
shows up and I can log in with superadmin and edit pages. Of course I’m missing 
a few things like all XWiki preferences which were in XWiki.XWikiPreferences so 
I’m back to defaults (no Panels displayed on the side for example).

Now I do agree that we need to make it harder for a user to delete an existing 
space by error, by asking for confirmation.

We also need to make it easier to rollback a full space (ATM you have to 
rollback each doc one by one).

There are existing JIRA issues for these 2 points, someone just need to find 
the time to implement them…

Would that be enough in your opinion?

> Any help or pointers are highly appreciated.

Provided you don’t have any backup, the first thing to do is to get you be able 
to log in as superadmin.

Make sure you’re using the user “superadmin” and the right password (as defined 
in xwiki.cfg). If it doesn’t work, please check the xwiki logs to see if there 
are any error and let us know.

Thanks
-Vincent

> Kind regards,
> Peter John Acklam

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki space partially deleted

2014-01-08 Thread Valdis Vītoliņš
There is no "Space" object in XWiki model, it is property of XWiki
document. Therefore by "creating space" you actually create
"Space.WebHome" document. As there was "XWiki.WebHome" document already,
it probably ignored adding new one.

Try to restart XWiki and hope it will recreate insufficient objects, and
then go to
/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladmin§ion=Import
and try to import new XAR file.

Valdis 

> I wanted a metawiki space, so as the "Admin" user, I created the "XWiki"
> space. Realizing that we already had a "Wiki" space, I deleted the "XWiki"
> space. The deletion to surprisinly long time, so I got suspicious and hit
> "Cancel". I didn't think much of it until a few days later, when I was no
> longer able to log in as "Admin". That was when I remembered that the
> "XWiki" space is special. I had deleted a lot more than just a newly
> created empty space.
> 
> Now I am no longer allowed to log in as "Admin" or "superadmin". Both
> accounts worked before, but now both give me the error message "Invalid
> credentials". Apparently, all users can log in with their ordinary user
> account, but with no admin account I can no longer re-import the XWiki
> pages from the XAR file.
> 
> The "superadmin" account was enabled when I upgraded to the current XWiki
> 5.2. It was tested and working, but not any longer.
> 
> How on earth to I get around this?
> 
> As as side note, I am very surprised that 1) I was able to create the
> "XWiki" space, just as any other space, and 2) that I was able to delete
> the "XWiki" space with no notification about this space being vital to
> XWiki.
> 
> Any help or pointers are highly appreciated.
> 
> Kind regards,
> Peter John Acklam
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users