allow for json/ndjson content type with charset#32767
allow for json/ndjson content type with charset#32767paolafrancesca merged 6 commits intoelastic:mainfrom paolafrancesca:enhancements-16194
Conversation
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
|
||
| contentType := "" | ||
| if strings.HasSuffix(filename, "ndjson") || strings.HasSuffix(filename, "ndjson.gz") { | ||
| contentType = "let-CI-fail-" + contentTypeNDJSON + "; charset=UTF-8" |
There was a problem hiding this comment.
what is the reason for this let-CI-fail?
There was a problem hiding this comment.
I wanted to asses that the integration tests were run in CI, forcing a failure
they don't: CI is green anyway
(having let-CI-fail- as suffix https://github.com/elastic/beats/pull/32767/files#diff-f345fd6a1f5ea9523117d4ead2e5f1d13fb82eb1c65a089fd34fcdd514916a96R156 will be false)
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
Do we also need to backport it to 7.17? |
I didn't backport to 7.17 since it's a different code base now (aws sdk v2 upgrade) I will create a new PR for that, thanks for reminding me |
it seems the lines affected didn't change, so I will add the backport label here |
* allow for json/ndjson content type with charset * add '; charset=UTF-8' in integration tests * changelog * assessing CI * revert correct behaviour (cherry picked from commit b40349c) # Conflicts: # x-pack/filebeat/input/awss3/input_integration_test.go
* allow for json/ndjson content type with charset * add '; charset=UTF-8' in integration tests * changelog * assessing CI * revert correct behaviour (cherry picked from commit b40349c)
…et (#32834) * allow for json/ndjson content type with charset (#32767) * allow for json/ndjson content type with charset * add '; charset=UTF-8' in integration tests * changelog * assessing CI * revert correct behaviour (cherry picked from commit b40349c) # Conflicts: # x-pack/filebeat/input/awss3/input_integration_test.go * fix backport conflicts Co-authored-by: Andrea Spacca <andrea.spacca@elastic.co>
#32835) * allow for json/ndjson content type with charset (#32767) * allow for json/ndjson content type with charset * add '; charset=UTF-8' in integration tests * changelog * assessing CI * revert correct behaviour (cherry picked from commit b40349c) * fix backport conflicts Co-authored-by: Andrea Spacca <andrea.spacca@elastic.co>
…ackaging * upstream/main: (109 commits) Add cap_net_raw requirements to heartbeat docs (elastic#32816) apply a quick hotfix for having main working properly (elastic#32934) action: checks for x-pack/libbeat and libbeat (elastic#32754) Update to Go 1.18 in go.mod. (elastic#32940) [heartbeat] disable browser code on windows via build tags (elastic#32939) action: checks for heartbeat and x-pack/heartbeat (elastic#32749) Make event acknowledgment asynchronous in shipper output (elastic#32785) [Automation] Update elastic stack version to 8.5.0-fedc3e60 for testing (elastic#32930) Preallocate memory to reduce GC load (elastic#32905) [Automation] Update elastic stack version to 8.5.0-440e0896 for testing (elastic#32919) Skip broken ceph tests. (elastic#32912) Use non-deprecated docker image for testing jolokia (elastic#32885) update ironbank image product name (elastic#32867) ci: pre-commit stage within Jenkins (elastic#32839) Fix a couple of bugs in the logic for how AWS metric periods are calculated (elastic#32724) [Filebeat] [httpjson] Add support for single string containing multiple relation-types in getRFC5988Link (elastic#32811) [Heartbeat] Update HB k8s template to use <Mi> metric (elastic#32801) action: checks for metricbeat and x-pack/metricbeat (elastic#32748) action: checks for filebeat and x-pack/filebeat (elastic#32746) allow for json/ndjson content type with charset (elastic#32767) ...
* allow for json/ndjson content type with charset * add '; charset=UTF-8' in integration tests * changelog * assessing CI * revert correct behaviour
Enhancement
What does this PR do?
Why is it important?
see: https://github.com/elastic/enhancements/issues/16194
Checklist
- [ ] I have commented my code, particularly in hard-to-understand areas- [ ] I have made corresponding changes to the documentation- [ ] I have made corresponding change to the default configuration filesCHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Author's Checklist
How to test this PR locally
Related issues
Closes https://github.com/elastic/enhancements/issues/16194
Use cases
Screenshots
Logs