Metadata validity is handled wrong

Created on 4 June 2025, about 1 month ago

Problem/Motivation

The "Metadata validity" config value is handled wrong: enter "2 weeks" and save the form, "2" gets stored so the form will display "2 secs" again.

Steps to reproduce

  1. Visit /admin/config/people/saml/saml.
  2. Type "2 weeks" into the "Metadata validity" field.
  3. Click "Save configuration".

Expected result: 1209600 gets stored, therefore "2 weeks" gets displayed when the form loads again.

Actual result: 2 gets stored, therefore "2 secs" gets displayed when the form loads again.

Proposed resolution

Fix the code in \Drupal\samlauth\Form\SamlauthSamlConfigureForm::submitForm() that's responsible for this.

🐛 Bug report
Status

Active

Version

3.11

Component

Code

Created by

🇭🇺Hungary boobaa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024