Openbravo Issue Tracking System - Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0037914 | Modules | Zoho Reports Integration | public | 2018-02-14 13:53 | 2018-03-16 08:55 |
|
Reporter | caristu | |
Assigned To | caristu | |
Priority | high | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Regression date | |
Regression introduced by commit | |
Regression level | |
Review Assigned To | alostale |
Support ticket | |
OBNetwork customer | |
Regression introduced in release | |
|
Summary | 0037914: Fix deprecation warnings in Zoho Integration after HttpClient and HttpClient Mime libraries upgrade |
Description | With issue 0037912 both HttpClient and HttpClient Mime libraries have been upgraded to version 4.5.5.
With this change the ZohoIntegration class uses a deprecated API. It should be adapted to make use of the new API provided by these libraries. |
Steps To Reproduce | In description. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | feature request | 0037912 | | closed | caristu | Openbravo ERP | Upgrade Apache HttpComponents |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2018-02-14 13:53 | caristu | New Issue | |
2018-02-14 13:53 | caristu | Assigned To | => caristu |
2018-02-14 13:53 | caristu | Relationship added | related to 0037912 |
2018-02-14 16:01 | hgbot | Checkin | |
2018-02-14 16:01 | hgbot | Note Added: 0102406 | |
2018-02-14 16:17 | hgbot | Checkin | |
2018-02-14 16:17 | hgbot | Note Added: 0102407 | |
2018-02-14 16:42 | caristu | Summary | Fix deprecation warnings in Zoho Integration after HttpClient library upgrade => Fix deprecation warnings in Zoho Integration after HttpClient and HttpClient Mime libraries upgrade |
2018-02-14 16:42 | caristu | Description Updated | bug_revision_view_page.php?rev_id=16691#r16691 |
2018-02-14 16:55 | hgbot | Checkin | |
2018-02-14 16:55 | hgbot | Note Added: 0102409 | |
2018-02-14 16:55 | hgbot | Status | new => resolved |
2018-02-14 16:55 | hgbot | Resolution | open => fixed |
2018-02-14 16:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.utility.zoho/rev/d654c215605299ddd4fe1a4fbc59356797e348f6 [^] |
2018-02-23 13:21 | caristu | Note Added: 0102826 | |
2018-02-23 13:22 | caristu | Review Assigned To | => alostale |
2018-02-23 13:30 | caristu | Note Edited: 0102826 | bug_revision_view_page.php?bugnote_id=0102826#r16762 |
2018-03-16 08:55 | alostale | Note Added: 0103301 | |
2018-03-16 08:55 | alostale | Status | resolved => closed |
Notes |
|
(0102406)
|
hgbot
|
2018-02-14 16:01
|
|
Repository: erp/pmods/org.openbravo.utility.zoho
Changeset: 68c43a1e688b5b4866c7d94ae9e6a277e92c0bc8
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Feb 14 15:59:47 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.utility.zoho/rev/68c43a1e688b5b4866c7d94ae9e6a277e92c0bc8 [^]
related to issue 37914: initial code cleanup
- Use convention names for constants
- Removed commented out code
- Remove the declaration of thrown exception 'org.apache.http.client.ClientProtocolException' which is a subclass of the already thrown 'java.io.IOException'
- Use diamond operator
- Updated copyright year
---
M src/org/openbravo/utility/zoho/process/ZohoIntegration.java
---
|
|
|
(0102407)
|
hgbot
|
2018-02-14 16:17
|
|
|
|
(0102409)
|
hgbot
|
2018-02-14 16:55
|
|
Repository: erp/pmods/org.openbravo.utility.zoho
Changeset: d654c215605299ddd4fe1a4fbc59356797e348f6
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Feb 14 16:33:23 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.utility.zoho/rev/d654c215605299ddd4fe1a4fbc59356797e348f6 [^]
fixes bug 37914: Deprecation warns after HttpClient and HttpClient Mime upgrade
Both HttpClient and HttpClient Mime libraries used in core have been upgraded to version 4.5.5. See[1]. Due to this upgrade, the Zoho Integration was using a deprecated API. This has been fixed with the following changes:
- Replaced the usage of DefaultHttpClient with CloseableHttpClient. Besides, we now use a try-with-resources stament to auto close the client.
- Replaced the usage of MultipartEntity with MultipartEntityBuilder.
- Minor readability improvement: The variable 'r' in getAuthToken has been renamed to 'response'.
[1] https://code.openbravo.com/erp/devel/pi/rev/e549accfb295a054297a63c891bb17db81257877 [^]
---
M src/org/openbravo/utility/zoho/process/ZohoIntegration.java
---
|
|
|
(0102826)
|
caristu
|
2018-02-23 13:21
(edited on: 2018-02-23 13:30) |
|
|
|
|
|