Skip to content

Enclose etag and IfNoneMatch header in double quotes.#2407

Merged
simitt merged 2 commits intoelastic:masterfrom
simitt:2404-double-quote-etag
Jul 9, 2019
Merged

Enclose etag and IfNoneMatch header in double quotes.#2407
simitt merged 2 commits intoelastic:masterfrom
simitt:2404-double-quote-etag

Conversation

@simitt
Copy link
Copy Markdown
Contributor

@simitt simitt commented Jul 9, 2019

fixes #2404

needs backport to 7.x and 7.3.

@simitt simitt self-assigned this Jul 9, 2019
@simitt simitt added this to the 7.3 milestone Jul 9, 2019
@simitt simitt requested a review from graphaelli July 9, 2019 10:42
@simitt
Copy link
Copy Markdown
Contributor Author

simitt commented Jul 9, 2019

Tests pass except for the Integration Tests, where failure is unrelated.

@simitt
Copy link
Copy Markdown
Contributor Author

simitt commented Jul 9, 2019

Jenkins, run the tests again please

@simitt simitt merged commit b54c8f1 into elastic:master Jul 9, 2019
simitt added a commit to simitt/apm-server that referenced this pull request Jul 9, 2019
* Enclose etag and IfNoneMatch header in double quotes.

fixes elastic#2404
simitt added a commit to simitt/apm-server that referenced this pull request Jul 9, 2019
* Enclose etag and IfNoneMatch header in double quotes.

fixes elastic#2404
@simitt
Copy link
Copy Markdown
Contributor Author

simitt commented Jul 9, 2019

@elastic/apm-agent-devs please be aware of this change.

@watson
Copy link
Copy Markdown
Contributor

watson commented Jul 9, 2019

Note for other agent devs who might be about to do the same as I was about to do: If you or your http framework doesn't strip the double quotes from Etag header value, they should remain in place, and so when you send the value back to the APM Server later using the If-None-Match header, it should be correctly encoded. So I didn't have to change anything to support this

watson added a commit to watson/apm-nodejs-http-client that referenced this pull request Jul 9, 2019
simitt added a commit that referenced this pull request Jul 10, 2019
* Enclose etag and IfNoneMatch header in double quotes.

fixes #2404
simitt added a commit that referenced this pull request Jul 10, 2019
* Enclose etag and IfNoneMatch header in double quotes.

fixes #2404
@jalvz jalvz mentioned this pull request Jul 16, 2019
7 tasks
@simitt simitt deleted the 2404-double-quote-etag branch July 23, 2019 06:24
Qard pushed a commit to watson/apm-nodejs-http-client that referenced this pull request Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Etag header should be double-quoted

3 participants