AW: [xwiki-users] Register user broken (but tried the obvious...)
Hi, you are faster:-) I have exact the same problem.
Hi,
My user registration screen is broken and returns a -1 error whenever I try to register a new user.
It is on my own xwiki server, not on the farm. I've tried enabling the superadmin user, editing, and re-saving the RegisterNewUser document but I still get the same problem.
I have two wikis running on this server, with 'virtual' switched on in xwiki.cfg; the registration works fine in the default wiki but not in the new one I have created.
I'm an utter newbie to xwiki so it's possible I'm missing something obvious... if someone could post step-by-step instructions as to what is normally done to solve this problem, I'd be grateful.
Many thanks Jonathan Essex.
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Frank, Are you sure you have the same problem? By this I mean: 1. Are you also not on the wiki farm? 2. Have you also already tried saving RegisterNewUser with a user with programming rights? (if you're on the farm you'll have to ask an admin to do it for you). Jonathan, I guess you have already tried reverting RegisterNewUser to its original content, i.e. you are not using a modified registration script? Is there anything in your xwiki.log that could provide any clues? I have had problems creating users in the past when I was using a corrupt db image; the log was full of SQL exceptions. Regards, Robin On 10/10/06, Frank Häfemeier <[email protected]> wrote:
Hi,
you are faster:-) I have exact the same problem.
Hi,
My user registration screen is broken and returns a -1 error whenever I try to register a new user.
It is on my own xwiki server, not on the farm. I've tried enabling the superadmin user, editing, and re-saving the RegisterNewUser document but I still get the same problem.
I have two wikis running on this server, with 'virtual' switched on in xwiki.cfg; the registration works fine in the default wiki but not in the new one I have created.
I'm an utter newbie to xwiki so it's possible I'm missing something obvious... if someone could post step-by-step instructions as to what is normally done to solve this problem, I'd be grateful.
Many thanks Jonathan Essex.
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
AFAIK I've not actually changed the RegisterNewUser document. I've taken a machete to some of the other templates as part of a radical GUI redesign, but I left these alone. May try cut-and-paste from the working site. Nothing tremendously suspicious in the log - certainly no SQL exceptions. Have bumped up the log level for XWikiRightServiceImpl to debug in order to try and figure out what is happening; the two instances seem to behave completely differently; for example, the secondary xwiki checks for a specific 'register' access right (which is denied): 18:22:00,908 INFO http-8080-Processor23 http:// schoolmaze.iquality.co.uk:8080/xwiki/bin/view/XWiki/RegisterNewUser? template=XWiki.XWikiUserTemplate®ister=1&password=% 24password®ister_first_name=aaa®ister_last_name=bbb&xwikiname=AaaB bb®ister_email=aaa®ister_password=aaa®ister2_password=aaa®is ter_company=®ister_city=®ister_country=®ister_blog=®ister_bl ogfeed=®ister_comment= XWikiRightServiceImpl:logDeny:52 - Access has been denied for (XWiki.XWikiGuest,XWiki.XWikiPreferences,register): register level (no right found) Whereas the version that actually works never seems to even ask for this access right. Confused. Jon On 10 Oct 2006, at 18:34, Robin Fernandes wrote:
Frank, Are you sure you have the same problem? By this I mean: 1. Are you also not on the wiki farm? 2. Have you also already tried saving RegisterNewUser with a user with programming rights? (if you're on the farm you'll have to ask an admin to do it for you).
Jonathan, I guess you have already tried reverting RegisterNewUser to its original content, i.e. you are not using a modified registration script? Is there anything in your xwiki.log that could provide any clues? I have had problems creating users in the past when I was using a corrupt db image; the log was full of SQL exceptions.
Regards, Robin
On 10/10/06, Frank Häfemeier <[email protected]> wrote:
Hi,
you are faster:-) I have exact the same problem.
Hi,
My user registration screen is broken and returns a -1 error whenever I try to register a new user.
It is on my own xwiki server, not on the farm. I've tried enabling the superadmin user, editing, and re-saving the RegisterNewUser document but I still get the same problem.
I have two wikis running on this server, with 'virtual' switched on in xwiki.cfg; the registration works fine in the default wiki but not in the new one I have created.
I'm an utter newbie to xwiki so it's possible I'm missing something obvious... if someone could post step-by-step instructions as to what is normally done to solve this problem, I'd be grateful.
Many thanks Jonathan Essex.
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http:// www.objectweb.org/wws
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http:// www.objectweb.org/wws
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
Am Di, den 10.10.2006 schrieb Robin Fernandes um 18:34:
Frank, Are you sure you have the same problem? By this I mean: 1. Are you also not on the wiki farm?
Yes, I am not on the farm. I'm running xwiki on two different machines and on one machine there are two virtual wikis. And on the second wiki I have exact the same problem.
2. Have you also already tried saving RegisterNewUser with a user with programming rights? (if you're on the farm you'll have to ask an admin to do it for you).
Yes, I did it, with no effect. I will check anything in the next days and will give here in the list a message about the result. Bye Frank
It's either a bug or something counterintuitive with the rights setup for virtual wikis. As far as I can see, on the secondary wiki the createUser API call generates a request for the register right on XWiki.XWikiPreferences on behalf of user XWiki.XWikiGuest, which gets denied. On the main wiki, I see a request for the programming right on XWiki.RegisterNewUser on behalf of XWiki.Admin (even though I really don't think I'm logged in as XWiki.Admin) which is granted at 'master admin level'. Don't see how this could happen, but it's there in the log. Possibly an error on my part, as swiching debug on for XWikiRightServiceImpl really creates a __storm__ of log entries. Ah well, will keep looking at it. But thought I'd report what I've found so far in case someone else want to take a look. On 10 Oct 2006, at 21:41, Frank Haefemeier wrote:
Am Di, den 10.10.2006 schrieb Robin Fernandes um 18:34:
Frank, Are you sure you have the same problem? By this I mean: 1. Are you also not on the wiki farm?
Yes, I am not on the farm. I'm running xwiki on two different machines and on one machine there are two virtual wikis. And on the second wiki I have exact the same problem.
2. Have you also already tried saving RegisterNewUser with a user with programming rights? (if you're on the farm you'll have to ask an admin to do it for you).
Yes, I did it, with no effect.
I will check anything in the next days and will give here in the list a message about the result.
Bye Frank
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
Ha! Happy days are here again... The solution is to log in to the secondary xwiki server as the administrator from the PRIMARY wiki, then open the RegisterNewUser document and save it. You do this by typing 'xwiki:XWiki.Admin' in the username field. The reason being that the magic 'programming rights' can only be applied to users of the primary wiki. So even logging n as 'superadmin' to the secondary DB does not do the trick. Maybe this should have been obvious. But it took me a whole day of walking through the source code to work it out. (can't resist a small snipe at the xwiki developers here: It's a great program, guys, but you are allowed to write comments that are longer than one line, you know...) Thanks to all, Jon On 11 Oct 2006, at 18:31, Jonathan Essex wrote:
It's either a bug or something counterintuitive with the rights setup for virtual wikis.
As far as I can see, on the secondary wiki the createUser API call generates a request for the register right on XWiki.XWikiPreferences on behalf of user XWiki.XWikiGuest, which gets denied.
On the main wiki, I see a request for the programming right on XWiki.RegisterNewUser on behalf of XWiki.Admin (even though I really don't think I'm logged in as XWiki.Admin) which is granted at 'master admin level'. Don't see how this could happen, but it's there in the log. Possibly an error on my part, as swiching debug on for XWikiRightServiceImpl really creates a __storm__ of log entries.
Ah well, will keep looking at it. But thought I'd report what I've found so far in case someone else want to take a look.
On 10 Oct 2006, at 21:41, Frank Haefemeier wrote:
Am Di, den 10.10.2006 schrieb Robin Fernandes um 18:34:
Frank, Are you sure you have the same problem? By this I mean: 1. Are you also not on the wiki farm?
Yes, I am not on the farm. I'm running xwiki on two different machines and on one machine there are two virtual wikis. And on the second wiki I have exact the same problem.
2. Have you also already tried saving RegisterNewUser with a user with programming rights? (if you're on the farm you'll have to ask an admin to do it for you).
Yes, I did it, with no effect.
I will check anything in the next days and will give here in the list a message about the result.
Bye Frank
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http:// www.objectweb.org/wws
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
Hi Jonathan, thank you very much for your investigation. It's working perfect:-)! Bye Frank Am Mi, den 11.10.2006 schrieb Jonathan Essex um 20:02:
Ha! Happy days are here again...
The solution is to log in to the secondary xwiki server as the administrator from the PRIMARY wiki, then open the RegisterNewUser document and save it.
You do this by typing 'xwiki:XWiki.Admin' in the username field.
The reason being that the magic 'programming rights' can only be applied to users of the primary wiki. So even logging n as 'superadmin' to the secondary DB does not do the trick.
Maybe this should have been obvious. But it took me a whole day of walking through the source code to work it out. (can't resist a small snipe at the xwiki developers here: It's a great program, guys, but you are allowed to write comments that are longer than one line, you know...)
Thanks to all, Jon On 11 Oct 2006, at 18:31, Jonathan Essex wrote:
It's either a bug or something counterintuitive with the rights setup for virtual wikis.
As far as I can see, on the secondary wiki the createUser API call generates a request for the register right on XWiki.XWikiPreferences on behalf of user XWiki.XWikiGuest, which gets denied.
On the main wiki, I see a request for the programming right on XWiki.RegisterNewUser on behalf of XWiki.Admin (even though I really don't think I'm logged in as XWiki.Admin) which is granted at 'master admin level'. Don't see how this could happen, but it's there in the log. Possibly an error on my part, as swiching debug on for XWikiRightServiceImpl really creates a __storm__ of log entries.
Ah well, will keep looking at it. But thought I'd report what I've found so far in case someone else want to take a look. On 10 Oct 2006, at 21:41, Frank Haefemeier wrote:
Am Di, den 10.10.2006 schrieb Robin Fernandes um 18:34:
Frank, Are you sure you have the same problem? By this I mean: 1. Are you also not on the wiki farm?
Yes, I am not on the farm. I'm running xwiki on two different machines and on one machine there are two virtual wikis. And on the second wiki I have exact the same problem.
2. Have you also already tried saving RegisterNewUser with a user with programming rights? (if you're on the farm you'll have to ask an admin to do it for you).
Yes, I did it, with no effect.
I will check anything in the next days and will give here in the list a message about the result.
Bye Frank
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
______________________________________________________________________ -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Dipl. Inform. Frank Häfemeier <[email protected]>
participants (4)
-
Frank Haefemeier -
Frank Häfemeier -
Jonathan Essex -
Robin Fernandes