-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception when attempting to add myself to list after Shibboleth authentication #641
Comments
Hi @dpc22, Could you please apply this patch and check if the problem will be solved? Thank you. |
No improvement I am afraid:
actually that error is subtly different. The Sympa::User::update_global_user line includes:
Which is a fairly obvious smoking gun which wasn't there previously. If I change the patch to test for "attributes" rather than "data":
then the exception disappears. Of course I don't know if that is an appropriate thing to do. The attributes_user column in user_table now has slightly odd behaviour. After the first login which creates a new row in the table:
After adding myself to a list
It doesn't look like Sympa is using this information to populate the gecos field when I add myself to a list. However I don't know if that is expected behaviour. |
Hi @dpc22, I think your fix is close to correct solution. Could you please check this patch? |
I needed to apply the first patch before that applied, but otherwise it seemed to work: After initial user creation:
after adding myself to list:
which appears to be the same thing with the two attributes reversed. |
@dpc22 thanks, that's what I expected. If you have no more problem with my two patches, I'll commit them. |
I'll commit the PR above which will be included in the next beta. If you have inconvenience by my fix, please reopen this issue to report it. Thanks for reporting bug and confirming fixes! |
Updating user crashes due to missing serialization of structured data. (#641)
Version
6.2.42
Installation method
Source package
Expected behavior
I should be able to add myself to a list as a list manager or global listmaster.
Actual behavior
wwsympa throws an exception (although I am still added to the list).
Additional information
I am attempting to configure Shibboleth logins on a test system. The
following page:
https://sympa-community.github.io/manual/customize/authentication-web.html
has a recipe if you need to generate an email challenge to verify the email address:
This works nicely to create a new account. However if I attempt to subscribe to a list after logging in using Shibboleth, I see an exception:
"Cannot quote a reference" appears to be a consequence of Sympa attempting to convert the following into a Perl hash:
This column appears to be populated each time that I log in using Shibboleth.
I don't see the exception if I clear that column immediately before I click the "Add" button on the Manage list members screen using a bit of SQL:
It also works if I just comment the http_header_list line from the generic_sso clause.
Sympa still uses the email address provided by the Shibboleth Identity Provider. However it doesn't record the displayName attribute.
The text was updated successfully, but these errors were encountered: