Closed Bug 986227 Opened 12 years ago Closed 12 years ago

Truncate "expires" stamp in TS to integer seconds

Categories

(Cloud Services Graveyard :: Server: Token, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rfkelly, Assigned: rfkelly)

Details

Attachments

(1 file)

Currently tokens come back like this: '{"node": "https://sync-1-us-east-1.stage.mozaws.net", "expires": 1395176617.3756411, "salt": "9ad9e2", "uid": 1813963}\xe1\x04+A\x86\x07\x0c\xf6\xc8\n#\xbb\xfc\xd1\xe1 x\x1aF\x1a\x1d\x8d\xa2q\xb4\x9el\xce\xb6\x90\xb3\x8f' The float "expires" stamp is variable-length which makes for confusing nginx logs, and the extra precision there is not really useful. We should truncate to integer seconds.
Trivial patch to make token expiry be integer seconds.
Attachment #8398336 - Flags: review?(telliott)
Attachment #8398336 - Flags: review?(telliott) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: