Bug 720493
Summary: | candlepin API call for pools fails to acknowledge TimeZone in the activeon parameter | ||
---|---|---|---|
Product: | [Community] Candlepin | Reporter: | John Sefler <jsefler> |
Component: | candlepin | Assignee: | Bryan Kearney <bkearney> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | John Sefler <jsefler> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 0.5 | CC: | spandey |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Solaris | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-05-30 13:15:36 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 682238 |
Description
John Sefler
2011-07-11 19:55:15 UTC
/candlepin/owners/$owner/pools?activeon=2011-06-10T00%3A00%3A00.000-0400 FAILS It is currently accepting xsd:date format. Lemme ask around. http://books.xmlschemata.org/relaxng/ch19-77049.html Looking a bit more, ISO 8601 requires a : in the timezone: curl -k -u admin:admin https://localhost:8443/candlepin/owners/admin/pools?activeon=2011-06-10T00%3A00%3A00.000%2B00:00 Thank you Bryan for figuring this out. Yes - as indicated in http://books.xmlschemata.org/relaxng/ch19-77049.html a colon appears to be required in the date format. The following url encoded calls are working against candlepin with and without a url encoding for the colon in the timezone... with the timezone colon urlencoded(":")=%3A ... [root@jsefler-onprem-62server tmp]# curl -k -u admin:admin https://jsefler-onprem-62candlepin.usersys.redhat.com:8443/candlepin/owners/admin/pools?activeon=2012-12-31T00%3A00%3A00.000%2B00%3A00 | python -mjson.tool | grep startDate "startDate": "2012-07-13T00:00:00.000+0000", "startDate": "2012-07-13T00:00:00.000+0000", "startDate": "2012-07-13T00:00:00.000+0000", without the timezone colon urlencoded ... [root@jsefler-onprem-62server tmp]# curl -k -u admin:admin https://jsefler-onprem-62candlepin.usersys.redhat.com:8443/candlepin/owners/admin/pools?activeon=2012-12-31T00%3A00%3A00.000%2B00:00 | python -mjson.tool | grep startDate "startDate": "2012-07-13T00:00:00.000+0000", "startDate": "2012-07-13T00:00:00.000+0000", "startDate": "2012-07-13T00:00:00.000+0000", Additional Note: Existing automated ExpirationTests have been updated to include a urlencoding of the colon in the activeon parameter when querying for pools on a specific date. |