CDash icon indicating copy to clipboard operation
CDash copied to clipboard

Authentication tokens without expiry date do not work in CDash v2.6

Open dinkelacker opened this issue 5 years ago • 1 comments

As soon as a valid submission token without expiry date ($CDASH_TOKEN_DURATION = 0) is presented, it is deleted from the database. This is because in app/Model/AuthToken.php:51 the special value 9999-12-31 23:59:59 is inserted for tokens without expiry date. As the maximum value of MySQL's TIMESTAMP type is 2038-01-19 03:14:07 however, it is implicitly inserted as 0000-00-00 00:00:00 and as soon as it is compared to the current date, it is deleted by mistake.

dinkelacker avatar Sep 29 '20 09:09 dinkelacker

Thanks for letting us know!

zackgalbreath avatar Sep 29 '20 12:09 zackgalbreath