Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(storage): disable XML via environment variable #5100

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Sep 19, 2020

When using emulators that do not support XML, application developers may
need to switch off the automatic XML switching in the client library. We
use an environment variable over a ClientOptions setting because (a)
this is an implementation detail that we want to change if needed, a
setting would require API changes, and (b) this appears to be needed
only for development / testing, presumably the application developers
don't want to change their code to test against an emulator vs.
production.

Fixes #5072


This change is Reviewable

When using emulators that do not support XML, application developers may
need to switch off the automatic XML switching in the client library. We
use an environment variable over a `ClientOptions` setting because (a)
this is an implementation detail that we want to change if needed, a
setting would require API changes, and (b) this appears to be needed
only for development / testing, presumably the application developers
don't want to change their code to test against an emulator vs.
production.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 19, 2020
@codecov
Copy link

codecov bot commented Sep 19, 2020

Codecov Report

Merging #5100 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5100      +/-   ##
==========================================
- Coverage   95.82%   95.82%   -0.01%     
==========================================
  Files         986      986              
  Lines       90350    90355       +5     
==========================================
+ Hits        86580    86582       +2     
- Misses       3770     3773       +3     
Impacted Files Coverage Δ
google/cloud/storage/internal/curl_client.h 100.00% <ø> (ø)
google/cloud/storage/internal/curl_client.cc 97.28% <100.00%> (+0.01%) ⬆️
...ogle/cloud/storage/internal/curl_handle_factory.cc 91.56% <0.00%> (-3.62%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa38c8c...62270c1. Read the comment docs.

@coryan coryan marked this pull request as ready for review September 19, 2020 16:42
@coryan coryan requested a review from a team as a code owner September 19, 2020 16:42
google/cloud/storage/doc/storage-main.dox Outdated Show resolved Hide resolved
google/cloud/storage/doc/storage-main.dox Outdated Show resolved Hide resolved
@coryan coryan merged commit f45d506 into googleapis:master Sep 19, 2020
@coryan coryan deleted the feat-storage-disable-xml-via-environment-variable branch September 19, 2020 20:57
@megaserg
Copy link

Nice, thank you for doing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[storage] Confusing behavior when using a custom endpoint
4 participants