Closed SvenC56 closed 1 week ago
Hey @SvenC56 thanks for the report. It seems like a valid issue, or at least I'm getting the same result as you do.
i have the same issue, a date as Jun 18, 2024, 09:00:00 PM works for me
i have the same issue, a date as Jun 18, 2024, 09:00:00 PM works for me
I cannot confirm this @fockarty. The error persists.
i ran it like this: requests.post(MANAGER_URL + '/system/scheduleApplyStates', cookies=cookies, json = data, verify=SSLVERIFY)
data = {} data['sids'] = system['id'] data['earliestOccurrence'] = "Sep 16, 2024, 01:00:00 PM" data['stateNames'] = 'up2date' data['test'] = True
and get response:
{'sids': 1000010004, 'earliestOccurrence': 'Sep 16, 2024, 01:00:00 PM', 'stateNames': 'up2date', 'test': True} {'success': True, 'result': 54}
which makes Uyuni incorrect because is8601 has different format: https://www.iso.org/iso-8601-date-and-time-format.html#:~:text=Therefore%2C%20the%20order%20of%20the,27%2018%3A00%3A00.000.
Hi all, thanks for the report. I can confirm that the issue is valid specifically for errata.setDetails
endpoint.
Most endpoints are quite forgiving in accepting different types of date formats, even though the docs specify ISO8601, so any unambiguous date format should work.
However, this specific endpoint uses a different legacy method to parse dates and fails (both in HTTP and XMLRPC).
I need to check if there are any other overlooked endpoints like this and fix them all at once.
Problem description
Hi all,
I'm trying to update an errata over the HTTP/JSON API (
/rhn/manager/api/errata/setDetails
) like this:which results in:
Any advice? I already tried different formats, as well as the format used internally in the db. Nothing gets accepted.
Edit: The API Doc states it requires: dateTime.iso8601 "issue_date"
Thank you!
Steps to reproduce
/auth/login
Method/errata/setDetails
with the provided payloadUyuni version
Uyuni proxy version (if used)
Useful logs
Additional information
No response