You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use an HTTP API where the server returns a JSON object that contains a timestamp of the request in the first 32 bytes. However, the rest of the JSON content only changes every 30 minutes.
To check for changes of the content we ignore the timestamp by droppping the first 32 bytes and calculate the hash of the resulting subdata. For the subsequent request we do the same and compare both hash values. Unfortunately, they are not the same although both subdata instances are equal.
See the attached sample project to reproduce the issue.
The issue only occurs on macOS and not on Linux. Tested on:
macOS 10.12.6, Apple Swift version 4.0.2 (swiftlang-900.0.69.2 clang-900.0.38)
Ubuntu 16.04, Swift version 4.0.2 (swift-4.0.2-RELEASE).
The text was updated successfully, but these errors were encountered:
Attachment: Download
Environment
macOS 10.12.6, Apple Swift version 4.0.2 (swiftlang-900.0.69.2 clang-900.0.38)
Additional Detail from JIRA
md5: 01df9c9631c4bb86d147b910ef309d79
is duplicated by:
Issue Description:
We use an HTTP API where the server returns a JSON object that contains a timestamp of the request in the first 32 bytes. However, the rest of the JSON content only changes every 30 minutes.
To check for changes of the content we ignore the timestamp by droppping the first 32 bytes and calculate the hash of the resulting subdata. For the subsequent request we do the same and compare both hash values. Unfortunately, they are not the same although both subdata instances are equal.
See the attached sample project to reproduce the issue.
The issue only occurs on macOS and not on Linux. Tested on:
macOS 10.12.6, Apple Swift version 4.0.2 (swiftlang-900.0.69.2 clang-900.0.38)
Ubuntu 16.04, Swift version 4.0.2 (swift-4.0.2-RELEASE).
The text was updated successfully, but these errors were encountered: