Issue with Invitation App

Hello all! I’m new to XWiki and try to debug an issue with one of the core components, the invitation app. The issue is that an invited person accepts the invitation and fills out the registration form to get another email (on the entered email address) to confirm that address (this userflow is a bit weird, because he got the invitation on some email in first place, so I don’t know why the email needs to be checked again, but anyways). Now when the user clicks on this particular confirmation link, it says that the confirmation did not work and the validation code, that is part of the link, does not work either when its inputted into the submission form. When I look in the administration area I see that the invitations are accepted, but the accounts are still all deactivated. So, in order to “debug” this issue somehow, I thought at first “let’s have a look at the database scheme” just to see that things are not stored in a regular normalized manner there, so I don’t see where the code for a particular user account is actually stored (heck, there is not even some kind of “users” table). Then I thought “let’s have a look at the app’s source code to see what’s going on”, again, just hitting another wall because all I can find for that app are UI templates and UI tests (https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwiki-platform-invitation). So, am I looking at the wrong places? Where is stuff stored? Where is the actual code? Thanks!

Hi,

in XWiki most of the stuff is stored directly in the pages themselves as what we called XObjects, whose class are defined themselves in XClass defined in other (or same) pages. You should check https://dev.xwiki.org/xwiki/bin/view/Onboarding/TrackXObjects/ if you want to know more on that.

So XWiki users are actual objects on the user profile page: you can see the information by editing the page in object edit mode (see https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/PageEditing#HObjectseditingmode)

Checking email address at registration is actually a setting of the registration that is probably enabled in your wiki. The first check is probably done by the Invitation App itself: you have to be aware that most of the stuff in XWiki is just extensions which don’t necessarily interact with each other.

So my understanding here is that for some reason the registration email check did not work. To confirm it easiest is probably to disable checking email at registration (see https://extensions.xwiki.org/xwiki/bin/view/Extension/Administration%20Application#HRegistration). If you can confirm that’s the problem you can open a ticket on https://jira.xwiki.org since it’s probably a bug.

Hi @surli,

indeed, disabling the email registration check worked, now the invitation can be accepted and the user can login without any problems. Ok, I’ll create an issue then.

Thanks for the support,
Thomas.

The issue is here: Loading..., I hope I did it in the correct project.