emoncms / group

In development: Emoncms groups module
GNU Affero General Public License v3.0
4 stars 8 forks source link

Unable to add users to new groups on emoncms.org #37

Open pb66 opened 6 years ago

pb66 commented 6 years ago

On emoncms.org I am unable to add a user to a new group as reported on the OEM forum in the "One device - different users" thread. Just tried it again and it is still a current issue, although oddly, I have noticed that I can add the same user to a previously created test group that I created way back when the groups module first appeared on emoncms.org. So I am currently able to add a user to an old existing group, but not to a newly created group.

image

pb66 commented 6 years ago

Ok... Some more info for you, I tried creating a new group and added a user to it to test if it was possibly just 1 corrupt group that was the issue and it did allow me to add another user, BUT, what I noticed was that all the working groups have me as a default user and admin, and that there is no way to delete me. The faulty group has no members, not even me.

So I tried "create new user" on another new good group and that resulted in the following "undefined error"

image

and a second click of the button told me that the user already exists

image

but when I closed that modal box, I was no longer a member of that group, the group was now empty.

This is easy to reproduce by

  1. create new group (check you are admin) (ps I used a numeric first char, if that matters eg 10home)
  2. create new user
  3. after the errors and modal screen closed you will no longer be admin for that group, it will be empty.

I have not tested this on a self hosted, only on emoncms.org so I have no way of checking the tables or logs etc.

Plus I do not know who will get notifications so I will ping @cagabi and also @TrystanLea since it is the emoncms.org implementation.

cagabi commented 6 years ago

Hi Paul, I am testing in my self hosted up to date installation and everything is working ok. I am waiting for my email verification in emoncms.org to try it there but I am afraid I cannot help on that one.

cagabi commented 6 years ago

Ah, I get all notifications for issues in this repository :)

cagabi commented 6 years ago

Hi again, tried in emoncms.org and you are right it's broken. I got the same pop ups, first saying "undefined" then saying "Name already exists" and now the page loads but the group seems to be empty

pb66 commented 6 years ago

So should this be moved to the emoncmsorg repo? or will @TrystanLea (or @emrysr) pick this up here ?

We don't even know if emoncmsorg is running the latest group module or if it's modded in anyway for emoncmsorg specifically.

cagabi commented 6 years ago

Good point. Let's wait and see if we hear from them soon and if not open an issue in emoncms.org