CommunityBridge

15.5k Downloads

Having an issue with Xenforo and secondarygroups.

pixelbat opened this issue · 4 comments

commented

First off... Using CB 2.3.5 (build #449) and Spigot 1.7.9R2. My config http://pastebin.com/VakRTBJj

So what is happening is it seems to just ignore the primary group and give them the highest group they have in secondary. Shouldn't the primary group have precedence over secondary? Here is an example from XenForo http://i.imgur.com/a0068BL.png. When this user logs in, rather than placing them as admin as the primary group defines, they are set to the highest secondary group they have, which is builder.

Another thing I noticed. If I remove all their secondary groups, than it pulls the primary just fine. Is this just an issue of secondary > primary, or am I doing something wrong? Or is this maybe a bug? Thanks in advance.

commented

@pixelbat: I just contacted the XenForo team regarding issues with my installation where I couldn't modify add-ons or run system tasks like rebuilding user data, etc.

The XenForo representative, after going into my database, told me the following:

Hi,

This should be resolved now. I can only guess that this was caused by an add-on,
as you had corrupted data in the secondary_group_ids for a number of users.
This is normally a comma delimited list of user group IDs, but you had values like:

27111111111111
211211111111111111111111111111111111111111111
2312312424242424242424

It looks like something must have been modifying that field directly. Further, those
values weren't actually in the user group relation table, so these modifications
weren't done through XenForo itself.

I have removed the invalid data, but please check that your users are in the
expected groups. Please also resolve the issue with the script/add-on that is
modifying this data directly. Any code that doesn't use the XenForo API to access
the DB has a possibility of manipulating the data incorrectly (such as here).

I'm about to make a new ticket for this now, because CommunityBridge is the only thing I have that could possibly be modifying this table.

commented

Same with my XenForo install. All I use for addons is XenPorta, and I doubt that messes with users.

commented

@pixelbat: Try rebuilding some of your caches for your XF installation – do you also have issues?

commented

@pixelbat: Your groups on the web application are serving as both primary and secondary. That's not really something I anticipated, my expectation was that there'd be a set of groups on the web side that are primary (in that a player is a member of exactly one of the primary groups) and that on the game side we'd make sure that the player is a member of exactly one of those groups.

In your case, you want players to be members of any number of the groups, but have one of them designated primary. That will require some feature changes to replicate and may be similar to another request, issue #179.