-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date-Time Format Issue on Save #99
Comments
The first format should be a valid dateTime-with-timezone, and this seems to be working for me. Are there specific date-time fields you're noticing that aren't working, and can you point to an example? |
A few more questions to help narrow down the cause:
|
@kylelaker, I tested it out and got the error. Here are my results. How the application was run: Docker Here is the spring logs of the error. The top line is the first entry after the PATCH request was made. |
@mikeisen1, can you also give info on:
|
@mikeisen1 Thanks for that report! So while there is an issue there, I think it's actually more related to #98 (because this is an |
|
Upon further investigation, this is my bad. I was using an older version of my Docker image which hadn't been updated to liboscal-java 1.0.2. I haven't been able to reproduce this after updating so I'm assuming the issue was a discrepancy in going between the two versions. |
@hreineck I am going to go ahead and close this issue then (the error around date-time format); if we do find that this can be reproduced then we'll reopen it. @mikeisen1 if you continue to experience your crash, we likely want to track that in a separate issue that includes the additional information you provided as well as the permissions of files in your environment. |
When saving any changes via the REST Service, any date-time fields are filled with a format like:
2021-02-25T00:00:00.00-04:00
This causes a 500 error when trying to view in the OSCAL Viewer, presumably because that format is incorrect.
Setting the date manually to the format:
2021-02-25T00:00
instead seems to be the proper format.The text was updated successfully, but these errors were encountered: