Skip to content

fix(core): inconsistent analytics string across operating systems#16300

Merged
mergify[bot] merged 1 commit intomasterfrom
benisrae/analytics-os-byte
Aug 31, 2021
Merged

fix(core): inconsistent analytics string across operating systems#16300
mergify[bot] merged 1 commit intomasterfrom
benisrae/analytics-os-byte

Conversation

@eladb
Copy link
Copy Markdown
Contributor

@eladb eladb commented Aug 31, 2021

The gzip header includes an “OS” byte that indicates which operating system was used to perform the operation. This means that the CDK Metadata analytics string would be different for the same CDK app in two different operating systems.

To address this, we explicitly set the gzip OS flag to 255 (unknown).

Fixes #15322


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

The gzip header includes an “OS” byte that indicates which operating system was used to perform the operation. This means that the CDK Metadata analytics string would be different for the same CDK app in two different operating systems.

To address this, we explicitly set the �OS flag to 255 (unknown).

Fixes #15322
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Aug 31, 2021

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Aug 31, 2021
@eladb eladb requested a review from njlynch August 31, 2021 17:56
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 5bace06
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Copy Markdown
Contributor

@njlynch njlynch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful exposition of my simplistic patch into something self-documenting. :)

@mergify mergify bot merged commit ff6082c into master Aug 31, 2021
@mergify mergify bot deleted the benisrae/analytics-os-byte branch August 31, 2021 21:36
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 31, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@eladb
Copy link
Copy Markdown
Contributor Author

eladb commented Sep 1, 2021

Beautiful exposition of my simplistic patch into something self-documenting. :)

LOL, royal hacking!

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Sep 6, 2021
…s#16300)

The gzip header includes an “OS” byte that indicates which operating system was used to perform the operation. This means that the CDK Metadata analytics string would be different for the same CDK app in two different operating systems.

To address this, we explicitly set the [gzip OS flag] to 255 (unknown).

Fixes aws#15322

[gzip OS flag]: https://datatracker.ietf.org/doc/html/rfc1952


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
david-doyle-as24 pushed a commit to david-doyle-as24/aws-cdk that referenced this pull request Sep 7, 2021
…s#16300)

The gzip header includes an “OS” byte that indicates which operating system was used to perform the operation. This means that the CDK Metadata analytics string would be different for the same CDK app in two different operating systems.

To address this, we explicitly set the [gzip OS flag] to 255 (unknown).

Fixes aws#15322

[gzip OS flag]: https://datatracker.ietf.org/doc/html/rfc1952


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(@aws/cx-api): metadata deployed when no Stack differences

3 participants