webapp: can`t edit users/clients parameters #59

Closed
opened 2019-07-10 11:00:16 +02:00 by yandoogle · 6 comments
yandoogle commented 2019-07-10 11:00:16 +02:00 (Migrated from github.com)

Hello, Nicolas!

Apparently in the webapp there is a problem with editing properties in the specific data format section. Error occurs when adding new property - "Error while updating module".

Also, I did`t see the new custom properties in the user/client properties db tables.
Checked by default admin user with g_admin/g_profile scope enabled.

What can be wrong?

Hello, Nicolas! Apparently in the webapp there is a problem with editing properties in the specific data format section. Error occurs when adding new property - "Error while updating module". Also, I did`t see the new custom properties in the user/client properties db tables. Checked by default admin user with g_admin/g_profile scope enabled. What can be wrong?
babelouest commented 2019-07-10 14:56:10 +02:00 (Migrated from github.com)

The documentation about new parameters isn't written yet.
You need to add the parameter in the module settings.
Then you must edit the file config.json, there are 2 sections user and client. There, you need to add your new parameters with the correct settings.

Concerning the error message at the beginning, if you know how to use the JavaScript console, check if you have error messages, otherwise I'll try to see that later today.

Thanks for reporting!

The documentation about new parameters isn't written yet. You need to add the parameter in the module settings. Then you must edit the file `config.json`, there are 2 sections `user` and `client`. There, you need to add your new parameters with the correct settings. Concerning the error message at the beginning, if you know how to use the JavaScript console, check if you have error messages, otherwise I'll try to see that later today. Thanks for reporting!
babelouest commented 2019-07-10 16:11:04 +02:00 (Migrated from github.com)

I answer my own answer, I see the problem with adding new properties in the data format section. I'm gonna look into it.

I answer my own answer, I see the problem with adding new properties in the data format section. I'm gonna look into it.
babelouest commented 2019-07-10 22:02:16 +02:00 (Migrated from github.com)

That's a nasty bug!
When you update the user backend module, it disables the module, then enables it again to update the new configuration.
Except that after disabling the module, the connected user isn't available anymore because the backend module where the admin user is stored is disabled...
You need to restart glewlwyd to enable again the module...
I need a better way to update module settings then!

That's a nasty bug! When you update the user backend module, it disables the module, then enables it again to update the new configuration. Except that after disabling the module, the connected user isn't available anymore because the backend module where the admin user is stored is disabled... You need to restart glewlwyd to enable again the module... I need a better way to update module settings then!
yandoogle commented 2019-07-11 11:57:31 +02:00 (Migrated from github.com)

Seems the same kind of problem exists at "Authentication schemes modules" dialog.
Than we change something at existing schemes and trying to save we will get the same error popup. On server log an error occurs: Glewlwyd ERROR: callback_glewlwyd_user_auth - Error user_session_update (4).
The following authentication attempts fail until server restart.

Seems the same kind of problem exists at "Authentication schemes modules" dialog. Than we change something at existing schemes and trying to save we will get the same error popup. On server log an error occurs: Glewlwyd ERROR: callback_glewlwyd_user_auth - Error user_session_update (4). The following authentication attempts fail until server restart.
babelouest commented 2019-07-11 13:26:31 +02:00 (Migrated from github.com)

I applied the fix to all modules updates so it should be fixed for schemes too.

I applied the fix to all modules updates so it should be fixed for schemes too.
yandoogle commented 2019-07-11 13:35:33 +02:00 (Migrated from github.com)

Sorry, I forgot to copy the new webapp directory. Now it works as it should!
Thanks.

Sorry, I forgot to copy the new webapp directory. Now it works as it should! Thanks.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
KittenSquad/glewlwyd#59
No description provided.