members-management issueshttps://gitlab.gnugen.ch/gnugen/infrastructure/members-management/-/issues2023-11-30T15:42:56+01:00https://gitlab.gnugen.ch/gnugen/infrastructure/members-management/-/issues/31La page souscription souffre d'une race-condition assez mauvaise2023-11-30T15:42:56+01:00Antoine FontaineLa page souscription souffre d'une race-condition assez mauvaiseSi deux personnes ouvrent le formulaire des souscriptions https://members.gnugen.ch/subscriptions, puis que l'une envoie le premier formulaire avec un renouvellement, puis que l'autre envoie un deuxième renouvellement, ce second renouvel...Si deux personnes ouvrent le formulaire des souscriptions https://members.gnugen.ch/subscriptions, puis que l'une envoie le premier formulaire avec un renouvellement, puis que l'autre envoie un deuxième renouvellement, ce second renouvellement annule le premier.
Exemple de résultat, où on note que 4 dates ont été restaurées à l'année précédente:
![image](/uploads/53f38d0e3567811fe1abc6b6259d72f3/image.png)
### Repérer le problème
Quand vous voyez qu'un membre que vous n'avez pas renouvelé est marqué renouvelé, c'est qu'il a été en fait "dérenouvelé", vous pouvez voir que la date ne joue pas comme sur l'image d'avant.
### Solution de contournement ou soins palliatifs
Vous pouvez recharger la page de souscription avant d'inscrire quelqu'un pour éviter le problème.
Si cela est arrivé quand-même, vous devez le renouveler à nouveau pour annuler l'effet du bug.https://gitlab.gnugen.ch/gnugen/infrastructure/members-management/-/issues/30Add people on Truffe automatically2023-09-16T12:32:12+02:00Antoine FontaineAdd people on Truffe automaticallyIt would be nice to add members on truffe automatically, to discuss in reunion I think. Then let's contact agep's respinfo to see if we can do it automatically.It would be nice to add members on truffe automatically, to discuss in reunion I think. Then let's contact agep's respinfo to see if we can do it automatically.https://gitlab.gnugen.ch/gnugen/infrastructure/members-management/-/issues/28Changing a password from members is broken2023-11-30T15:43:49+01:00Antoine FontaineChanging a password from members is brokenI've checked that it does update the password in the LDAP, but it doesn't update it to the correct hashed password. It could be an incorrect hash type, or an extra character like a '\n' that would slip in or anything else really. Further...I've checked that it does update the password in the LDAP, but it doesn't update it to the correct hashed password. It could be an incorrect hash type, or an extra character like a '\n' that would slip in or anything else really. Further investigation is needed.https://gitlab.gnugen.ch/gnugen/infrastructure/members-management/-/issues/22Add proper logging to gitlab-sync, and fix it2022-10-27T18:25:31+02:00Antoine FontaineAdd proper logging to gitlab-sync, and fix itThere is or was a cron job on morgarten to sync members to the gitlab group automatically that doesn't work. The idea would be to fix it and deploy it on petit-ruan.There is or was a cron job on morgarten to sync members to the gitlab group automatically that doesn't work. The idea would be to fix it and deploy it on petit-ruan.https://gitlab.gnugen.ch/gnugen/infrastructure/members-management/-/issues/21web-clean instance can't read the gitlab token from the config file2021-10-08T14:41:20+02:00Antoine Fontaineweb-clean instance can't read the gitlab token from the config fileOn for some reason, the web-clean instance of members-managements has a broken gitlab sync.
```
web-clean# /usr/bin/gnugen-members-gitlab-sync
gitlab_token missing in configuration file at /usr/bin/gnugen-members-gitlab-sync line 11, <D...On for some reason, the web-clean instance of members-managements has a broken gitlab sync.
```
web-clean# /usr/bin/gnugen-members-gitlab-sync
gitlab_token missing in configuration file at /usr/bin/gnugen-members-gitlab-sync line 11, <DATA> line 960.
```
The config file in /etc contains the token though.https://gitlab.gnugen.ch/gnugen/infrastructure/members-management/-/issues/17Login may break soon2021-05-04T22:21:32+02:00Antoine FontaineLogin may break soonOpening the [login page](https://members.gnugen.ch/login) with the Firefox console prints this message:
```
Cookie “dancer.session” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without ...Opening the [login page](https://members.gnugen.ch/login) with the Firefox console prints this message:
```
Cookie “dancer.session” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite
```
Chances are this will be fixed upstream and Debian would backport the patch, but it would be nice to check that.https://gitlab.gnugen.ch/gnugen/infrastructure/members-management/-/issues/7The app should reconnect automatically to the LDAP2018-09-14T17:06:31+02:00Florian VessazThe app should reconnect automatically to the LDAPCurrently if the connection to the LDAP servers dies, the app must be restarted to establish a new one.
It should automatically try to re-establish a connection to the LDAP server when the current has died.Currently if the connection to the LDAP servers dies, the app must be restarted to establish a new one.
It should automatically try to re-establish a connection to the LDAP server when the current has died.