Bug ID 1292685: The date-time RegExp pattern through swagger would not cover all valid options

Last Modified: May 29, 2024

Affected Product(s):
BIG-IP ASM(all modules)

Fixed In:
17.1.1, 15.1.10

Opened: Apr 25, 2023

Severity: 3-Major


Some valid hours option would not match the Regular Expression (RegExp).


Valid hours options 10 and 19 would not match the RegExp.


Creating a policy using swagger file and uploading a swagger file which contains parameter in date time format.


Manually fix the regular expression in the parameter from: '^([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))T(0\d|2[0-3]):([0-5]\d):([0-5]\d)(\.\d+)?(Z|((\+|-)(0\d|2[0-3]):([0-5]\d)))$' to: '^([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))T(0\d|1\d|2[0-3]):([0-5]\d):([0-5]\d)(\.\d+)?(Z|((\+|-)(0\d|1\d|2[0-3]):([0-5]\d)))$'

Fix Information

The date-time regular expression for swagger is fixed and now suppose to cover all valid options.

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips