Page 1 of 1

Invalid date-time format on deploy app

Posted: December 6th, 2022, 8:56 am
by provogrammer2
Hi,

Just install csweb 7.7.0 on Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 with 5.5.60-MariaDB - MariaDB Server, but got following error during deploy:

[2022-12-06 15:00:45] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\HttpException: "JSON does not validate. Violations: [buildTime] Invalid date-time "2022-12-06T08.00.44Z", expected format YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss+hh:mm " at /var/www/html/csweb/src/AppBundle/CSPro/CSProJsonValidator.php line 69 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\HttpException(code: 0): JSON does not validate. Violations:\n[buildTime] Invalid date-time \"2022-12-06T08.00.44Z\", expected format YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss+hh:mm\n at /var/www/html/csweb/src/AppBundle/CSPro/CSProJsonValidator.php:69)"} []

For now I just follow this thread to comment RFC date checks /viewtopic.php?p=12850&hilit=invalid+date#p12850 (I can't post url since this is my new accout)
and works for now, are there better sollution for this error?

Thanks,

**I have 3 account here, but unable to restore the password..no email coming, on forgot password click.

Re: Invalid date-time format on deploy app

Posted: December 7th, 2022, 11:52 am
by aaronw
Can you attach the sync log? Also, the app package newly built and deployed after the new installation?

Re: Invalid date-time format on deploy app

Posted: December 8th, 2022, 2:36 am
by provogrammer2
Hi,

Here is the log and app uploaded to the apps folder.

[2022-12-06 15:00:45] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\HttpException: "JSON does not validate. Violations: [buildTime] Invalid date-time "2022-12-06T08.00.44Z", expected format YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss+hh:mm " at /var/www/html/csweb/src/AppBundle/CSPro/CSProJsonValidator.php line 69 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\HttpException(code: 0): JSON does not validate. Violations:\n[buildTime] Invalid date-time \"2022-12-06T08.00.44Z\", expected format YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss+hh:mm\n at /var/www/html/csweb/src/AppBundle/CSPro/CSProJsonValidator.php:69)"} []

aaronw wrote: December 7th, 2022, 11:52 am Can you attach the sync log? Also, the app package newly built and deployed after the new installation?
Thanks,

Re: Invalid date-time format on deploy app

Posted: December 8th, 2022, 12:44 pm
by aaronw
When I tried to open the CSDS I couldn't. It complained about the datetime, so I the made the following edit to the csds (swapped periods for colons):

Code: Select all

 "buildTime": "2022-12-06T08.00.44Z",
to

Code: Select all

 "buildTime": "2022-12-06T08:00:44Z",
and I was able to open the file.

Try making this edit and see if you're able to deploy. If so, then it's just a matter of looking into why this datetime isn't handled.

Re: Invalid date-time format on deploy app

Posted: December 24th, 2022, 12:34 pm
by provogrammer2
Yes, it work by manually editing the csds file using your suggestions.

Thanks,
aaronw wrote: December 8th, 2022, 12:44 pm When I tried to open the CSDS I couldn't. It complained about the datetime, so I the made the following edit to the csds (swapped periods for colons):

Code: Select all

 "buildTime": "2022-12-06T08.00.44Z",
to

Code: Select all

 "buildTime": "2022-12-06T08:00:44Z",
and I was able to open the file.

Try making this edit and see if you're able to deploy. If so, then it's just a matter of looking into why this datetime isn't handled.