I set the access token expiration time to `12096001209600`
then,
`drush cr`
```
Exception: DateInterval::__construct(): Unknown or bad format (PT12096001209600S) in /var/www/html/modules/contrib/simple_oauth/src/Plugin/Oauth2GrantManager.php:92
Stack trace:
#0 /var/www/html/modules/contrib/simple_oauth/src/Plugin/Oauth2GrantManager.php(92): DateInterval->__construct('PT1209600120960...')
……
```
I reinstall simple_oauth module to fix this problem
`drush pmu simple_oauth`
`drush en simple_oauth`
Comments
Comment #2
e0ipsoComment #3
e0ipsoThe configuration shouldn't accept values that break the
DateIntervalcreation.Comment #4
dravenk@e0ipso
How can you sure user wouldn't break DateInterval creation?
The form element should tell people don't do that.
Comment #5
e0ipso@dravenk the is a number that is high enough to break the DateInterval creation. I don't know that number, I imagine that being a big part of this issue.
Comment #6
e0ipsonew DateInterval('PT999999999999S')worksnew DateInterval('PT1000000000000S')doesn't workComment #7
dravenkThe latest test results show that the bug is no longer repeated. I don't know if it's changed, it looks good.