Skip to content

Added Regex support for fractional seconds duration#589

Closed
gpinkham wants to merge 1 commit intoSAML-Toolkits:masterfrom
gpinkham:duration-regex
Closed

Added Regex support for fractional seconds duration#589
gpinkham wants to merge 1 commit intoSAML-Toolkits:masterfrom
gpinkham:duration-regex

Conversation

@gpinkham
Copy link
Copy Markdown

Status

READY

Migrations

NO

Description

Had a customer send in XML that had a valid duration with fractional seconds (0.000S) but the Regex parser did not support that. . Updated Regex expression to support fractional seconds. Backwards compatible to support integer seconds (0S)

Related PRs

None

Todos

  • [X ] Tests

Deploy Notes

None

Steps to Test or Reproduce

Duration that failed with current code: "P0Y0M30DT0H0M0.000S"

Impacted Areas in Application

  • Utils#parse_duration

@gpinkham
Copy link
Copy Markdown
Author

just realized someone else already has a PR for this fix.. only diff is the way we tested I'll leave this here just in case it's needed but feel free to close it if you want.. thanks!

@pitbulk pitbulk changed the base branch from master to idp_parser_warning May 26, 2021 14:20
@pitbulk pitbulk changed the base branch from idp_parser_warning to master May 26, 2021 14:20
@johnnyshields
Copy link
Copy Markdown
Collaborator

Think we should close this in favor of #586

@pitbulk pitbulk closed this Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants