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

[BUG] Make apache-httpclient generated ApiClient thread-safe. #11852

Open
JigarJoshi opened this issue Mar 11, 2022 · 0 comments · May be fixed by #19054
Open

[BUG] Make apache-httpclient generated ApiClient thread-safe. #11852

JigarJoshi opened this issue Mar 11, 2022 · 0 comments · May be fixed by #19054

Comments

@JigarJoshi
Copy link
Contributor

ApiClient.java file generated while using Apache's HTTP client library has these fields

  private int statusCode;
  private Map<String, List<String>> responseHeaders;

This leads to thread-unsafe implementation. Especially when it is being read in processResponse(...) method - it may lead to bugs in application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant