Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

deliveryservice_requests in TO API uses non-RFC3339 date/time strings #7571

@jagan-parthiban

Description

@jagan-parthiban

Parent Issue: #5911

Breaking down the parent issue #5911 in smaller issues to raise separate, reviewable PRs for each of the services.

Traffic Control components affected:

  • Traffic Ops
  • Documentation

Expected behavior:

deliveryservice_requests to Use RFC3339 Format

GET /api/5.0/deliveryservice_requests?status=draft HTTP/1.1
Host: https://localhost:8443
Content-Length: 0
Accept: application/json
Cookie: mojolicious=...


HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked

{
	"response": [
		{
			"assignee": null,
			"author": "admin",
			"changeType": "update",
			"createdAt": "2023-06-09T10:55:00.918782+05:30",
			"id": 5,
			"lastEditedBy": "admin",
			"lastUpdated": "2023-06-09T10:55:00.918782+05:30",
			"requested": {
				"active": "INACTIVE",
				"anonymousBlockingEnabled": false,
				"ccrDnsTtl": null,
				"cdnId": 2,
				"cdnName": "cdn1",
				"checkPath": null,
				"consistentHashQueryParams": [
					"abc",
					"pdq",
					"xxx",
					"zyx"
				],
				"consistentHashRegex": null,
				"deepCachingType": "NEVER",
				"displayName": "dsempty",
				"dnsBypassCname": null,
				"dnsBypassIp": null,
				"dnsBypassIp6": null,
				"dnsBypassTtl": null,
				"dscp": 0,
				"ecsEnabled": false,
				"edgeHeaderRewrite": null,
				"exampleURLs": [
					"http://video.demo1.mycdn.ciab.test",
					"https://video.demo1.mycdn.ciab.test"
				],
				"firstHeaderRewrite": null,
				"fqPacingRate": null,
				"geoLimit": 0,
				"geoLimitCountries": null,
				"geoLimitRedirectURL": null,
				"geoProvider": 0,
				"globalMaxMbps": null,
				"globalMaxTps": null,
				"httpBypassFqdn": null,
				"id": 1,
				"infoUrl": null,
				"initialDispersion": 1,
				"innerHeaderRewrite": null,
				"ipv6RoutingEnabled": true,
				"lastHeaderRewrite": null,
				"lastUpdated": "2023-06-09T10:51:00+05:30",
				"logsEnabled": true,
				"longDesc": "Apachecon North America 2018",
				"matchList": [
					{
						"type": "HOST_REGEXP",
						"setNumber": 0,
						"pattern": ".*\\.demo1\\..*"
					}
				],
				"maxDnsAnswers": null,
				"maxOriginConnections": 0,
				"maxRequestHeaderBytes": 0,
				"midHeaderRewrite": null,
				"missLat": 42,
				"missLong": -88,
				"multiSiteOrigin": false,
				"originShield": null,
				"orgServerFqdn": "http://origin.infra.ciab.test",
				"profileDescription": null,
				"profileId": null,
				"profileName": null,
				"protocol": 2,
				"qstringIgnore": 0,
				"rangeRequestHandling": 0,
				"rangeSliceBlockSize": null,
				"regexRemap": null,
				"regional": false,
				"regionalGeoBlocking": false,
				"remapText": null,
				"requiredCapabilities": null,
				"routingName": "video",
				"serviceCategory": null,
				"signed": false,
				"signingAlgorithm": null,
				"sslKeyVersion": 1,
				"tenant": "root",
				"tenantId": 1,
				"tlsVersions": null,
				"topology": null,
				"trResponseHeaders": null,
				"trRequestHeaders": null,
				"type": "HTTP",
				"typeId": 1,
				"xmlId": "dsempty"
			},
			"status": "draft"
		}
	]
}

Steps to reproduce:

Make the above api call to version 5.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Opsrelated to Traffic Opslow difficultythe estimated level of effort to resolve this issue is lowlow impactaffects only a small portion of a CDN, and cannot itself break onetech debtrework due to choosing easy/limited solution

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions