Bill Blough [Wed, 22 May 2019 10:45:39 +0000 (10:45 +0000)]
Fix assignment/equality typo in http http_client.c=
Thanks to kvarec for noticing it.
Bill Blough [Tue, 4 Dec 2018 05:15:39 +0000 (05:15 +0000)]
Fix memleak in clientapi options
Patch obtained from AXIS2C-1669.
Bill Blough [Tue, 4 Dec 2018 04:11:29 +0000 (04:11 +0000)]
Fix memory leak in ssl connection
The ssl stream is only freed if axis2_http_sender is used to initiate
the connection. Direct use of axis2_http_client causes a memory leak
since the SSL stream is never properly freed.
This commit frees the stream in http_client, and adds safeguards to
axis2_ssl_stream_free to prevent issues if called again (such as from
http_sender).
Bill Blough [Tue, 4 Dec 2018 03:50:49 +0000 (03:50 +0000)]
Add support for openssl 1.1.x
Add support for openssl 1.1.x, while maintaining compatibility with
openssl 1.0.x.
Bill Blough [Tue, 4 Dec 2018 03:50:40 +0000 (03:50 +0000)]
Fix memory leak in simple_reponse
Free stream if and only if created by response.
Bill Blough [Tue, 4 Dec 2018 03:50:34 +0000 (03:50 +0000)]
SSL connect fixes
Fix memory leak in axis2_http_client_connect_ssl_host.
Adjust header read routine to use buffer of size AXIS2_HTTP_HEADER_LENGTH
instead of AXIS2_HTTP_STATUS_LINE_LENGTH. Rename variables as
appropriate.
Bill Blough [Tue, 4 Dec 2018 02:54:53 +0000 (02:54 +0000)]
Fix client response status/header buffer issues
Fix buffer overflows in axis2_http_client_receive_header and
axis2_http_client_connect_ssl_host when reading response status and
headers.
Also, increase allowed header length to 4096, in accordance with
RFC2109.
Jira: AXISC-1415, AXISC-1511, AXISC-1661
Bill Blough [Mon, 3 Dec 2018 01:52:51 +0000 (01:52 +0000)]
More xpath memory fixes
Fix several memory leaks and free issues.
Includes additional fixes for AXISC-1602 and parts of AXISC-1669
Bill Blough [Sun, 2 Dec 2018 01:09:05 +0000 (01:09 +0000)]
Fix ssl connect through proxy
Fix logic error in axis2_http_client_connect_ssl_host where header
parsing would get stuck in a loop.
Fixes AXIS2C-1397 and AXIS2C-1665
Bill Blough [Sat, 1 Dec 2018 20:07:33 +0000 (20:07 +0000)]
Fix to support Apache HTTP Server 2.4
Bill Blough [Sat, 1 Dec 2018 20:06:48 +0000 (20:06 +0000)]
Fix typos in https client test
Bill Blough [Thu, 23 Aug 2018 00:35:11 +0000 (00:35 +0000)]
Memory and logging fixes from AXIS2C-1669
Applied patches-
xpath_internals_engine.c.patch
xpath_internals_parser.c.patch
xpath_streaming.c.patch
with some adjustments to compensate for previous changes.
Bill Blough [Tue, 21 Aug 2018 16:26:23 +0000 (16:26 +0000)]
Fix memleak
Bill Blough [Tue, 21 Aug 2018 16:26:21 +0000 (16:26 +0000)]
Fix memory leaks
Bill Blough [Tue, 21 Aug 2018 16:26:18 +0000 (16:26 +0000)]
Fix memleaks
Bill Blough [Tue, 21 Aug 2018 16:26:15 +0000 (16:26 +0000)]
Fix memleaks in tests
Bill Blough [Sat, 18 Aug 2018 16:12:19 +0000 (16:12 +0000)]
Fix memleaks in test_xpath_streaming
Bill Blough [Sat, 18 Aug 2018 16:12:16 +0000 (16:12 +0000)]
Fix memleaks and double-free issues with xpath
Bill Blough [Sat, 18 Aug 2018 01:35:45 +0000 (01:35 +0000)]
Fix memleaks in axiom/test_util
Bill Blough [Sat, 18 Aug 2018 01:35:43 +0000 (01:35 +0000)]
Improve handling of deeply-nested fault subcodes
soap12_builder_helper did not properly handle fault subcodes nested more
than 2 or 3 deep. This caused parsing issues and memory leaks. The new
implementation should handle an arbitrary number of nested subcodes.
Bill Blough [Sat, 18 Aug 2018 01:35:41 +0000 (01:35 +0000)]
Explicitly return NULL on get_sub_code failure
Bill Blough [Sat, 18 Aug 2018 01:35:40 +0000 (01:35 +0000)]
Rename axiom_soap_fault_sub_code_get_subcode
* Rename axiom_soap_fault_sub_code_get_subcode to match what is listed in
the header file (axiom_soap_fault_sub_code_get_sub_code).
* Add wrapper function named axiom_soap_fault_sub_code_get_subcode to
maintain API compatibility until it can be deprecated and safely removed.
Bill Blough [Sat, 18 Aug 2018 01:35:38 +0000 (01:35 +0000)]
Improve axiom/test_soap tests
Bill Blough [Sat, 18 Aug 2018 01:35:36 +0000 (01:35 +0000)]
Fix memleaks in axiom/test_om
Bill Blough [Sat, 18 Aug 2018 01:35:35 +0000 (01:35 +0000)]
Improve tests for axiom/om
Bill Blough [Sat, 18 Aug 2018 01:35:33 +0000 (01:35 +0000)]
Fix memleaks in test_attribute
Bill Blough [Sat, 18 Aug 2018 01:35:31 +0000 (01:35 +0000)]
Fix memleaks in test_guththila
Bill Blough [Tue, 31 Jul 2018 01:11:56 +0000 (01:11 +0000)]
Fix spelling errors in comments/docs
Github PR #4
Thanks to Jimmy Casey for the patch.
Bill Blough [Thu, 17 May 2018 03:20:14 +0000 (03:20 +0000)]
Improve test coverage for guththila_token
Bill Blough [Thu, 17 May 2018 03:20:12 +0000 (03:20 +0000)]
Improve test coverage for guththila_stack
Bill Blough [Thu, 17 May 2018 03:20:10 +0000 (03:20 +0000)]
Fix guththila stack issues
guththila_stack_push allocates memory is chunks of stack->max or
stack->max * 2, however guththila_stack_del_top tries to free individual data
elements, leading to memory errors. Changed del_top function to remove
value from stack but not attempt to free the memory (which will be freed
when stack_un_init or stack_free is called).
Also, in guththila_stack_un_init, set stack_data = NULL after freeing, to
avoid possible double free if stack_free is inadvertently called after
stack_un_init.
Bill Blough [Thu, 10 May 2018 02:52:22 +0000 (02:52 +0000)]
Fix memory leaks in util tests
Bill Blough [Thu, 10 May 2018 02:52:19 +0000 (02:52 +0000)]
Fixes memory leaks in linked_list and link_list_test
In cases where an entry was removed but only the entry's data was
returned, the removed entry would be orphaned and never freed.
Also, fixes several memory leaks in the tests for linked_list.
Bill Blough [Thu, 10 May 2018 02:52:15 +0000 (02:52 +0000)]
Add configure support for AddressSanitizer
Bill Blough [Sun, 6 May 2018 02:45:21 +0000 (02:45 +0000)]
Apply http_transport_utils fixes from AXISC-1669
Bill Blough [Sat, 5 May 2018 20:49:28 +0000 (20:49 +0000)]
Add null check in axis2_module_builder_populate_module
JIRA: AXIS2C-1571
Bill Blough [Sat, 5 May 2018 20:49:26 +0000 (20:49 +0000)]
Replace calloc with AXIS2_MALLOC in guththila tests
Bill Blough [Sat, 5 May 2018 20:49:24 +0000 (20:49 +0000)]
Rename some vars in axiom and neethi tests for consistency
Bill Blough [Sat, 5 May 2018 16:07:19 +0000 (16:07 +0000)]
Add additional tests in guththila for AXIS2C-1627
Bill Blough [Sat, 5 May 2018 05:57:17 +0000 (05:57 +0000)]
Fix circular dependency introduced by tests for AXISC-1627
The tests for AXISC-1627 created a circular link dependency between
axiom and guththila. Since the tests provided with the fix relied on
axiom calls, it made sense to move the tests to the axiom subproject.
This has the benefit of testing other parsers for this issue, instead of only
guththila.
Bill Blough [Wed, 2 May 2018 03:47:42 +0000 (03:47 +0000)]
Add deserialziation test for AXIS2C-1627
Bill Blough [Wed, 2 May 2018 03:39:14 +0000 (03:39 +0000)]
Fix guththila serialization of special chars in attr
JIRA: AXIS2C-1627
Bill Blough [Tue, 1 May 2018 06:00:45 +0000 (06:00 +0000)]
Fix shutdown hang on http_client test
Bill Blough [Tue, 1 May 2018 01:49:17 +0000 (01:49 +0000)]
Free log_impl on error to avoid memory leak
JIRA: AXIS2C-1655
Bill Blough [Tue, 1 May 2018 00:11:21 +0000 (00:11 +0000)]
Remove conflicting assertion
Jira: AXIS2C-1695
Bill Blough [Mon, 30 Apr 2018 23:56:03 +0000 (23:56 +0000)]
Use helper function to add to engaged modules
Use the existing helper function to add a module to the engaged modules list,
rather than modifying the list directly. This handles the case where the list
has not already been initialized.
Jira: AXIS2C-1697
Bill Blough [Sun, 29 Apr 2018 21:15:00 +0000 (21:15 +0000)]
Convert core tests to use gtest
Bill Blough [Sun, 29 Apr 2018 16:12:17 +0000 (16:12 +0000)]
Add missed Makefile for guththila
Bill Blough [Sun, 29 Apr 2018 16:12:14 +0000 (16:12 +0000)]
Convert all util tests to use gtest
Bill Blough [Sun, 29 Apr 2018 16:12:04 +0000 (16:12 +0000)]
Add gtest support for util
Bill Blough [Sun, 29 Apr 2018 16:12:01 +0000 (16:12 +0000)]
Add missing coverage-related compiler flags (util)
Bill Blough [Sun, 29 Apr 2018 01:57:13 +0000 (01:57 +0000)]
Fixes for code coverage related flags
Some compile/link flag changes for test coverage metrics (gcov/lcov)
didn't get checked in, so here they are.
Bill Blough [Sun, 29 Apr 2018 01:57:10 +0000 (01:57 +0000)]
Convert neethi test to use gtest
Bill Blough [Sat, 28 Apr 2018 23:31:17 +0000 (23:31 +0000)]
Add missing gtest makefile for neethi
Bill Blough [Sat, 28 Apr 2018 23:27:28 +0000 (23:27 +0000)]
Add gtest support to neethi build
Bill Blough [Sat, 28 Apr 2018 23:27:26 +0000 (23:27 +0000)]
Honor enable/disable-tests configure flag (neethi)
JIRA: AXIS2C-1690
Bill Blough [Mon, 5 Feb 2018 05:11:12 +0000 (05:11 +0000)]
Switch guththila tests to use gtest
Bill Blough [Mon, 5 Feb 2018 05:10:57 +0000 (05:10 +0000)]
Update function declaration to not conflict with C++ reserved words
Bill Blough [Sun, 7 Jan 2018 23:52:51 +0000 (23:52 +0000)]
Switch axiom test_xpath* to use gtest
Bill Blough [Sun, 7 Jan 2018 22:56:19 +0000 (22:56 +0000)]
Switch axiom test_util to use gtest
Bill Blough [Sun, 7 Jan 2018 19:43:31 +0000 (19:43 +0000)]
Switch test_soap to use gtest
Bill Blough [Sun, 7 Jan 2018 19:43:29 +0000 (19:43 +0000)]
Switch test_om to use gtest
Bill Blough [Sun, 7 Jan 2018 19:43:27 +0000 (19:43 +0000)]
Add gtest support for axiom
Bill Blough [Sun, 7 Jan 2018 02:07:26 +0000 (02:07 +0000)]
Add support for Google Test Framework
Add support for using out-of-tree copy of gtest by using the
--with-gtest=<path> configure flag, where <path> is the path to the
gtest source directory. The gtest libs will be compiled and copied into
the working tree.
JIRA: AXIS2C-1691
Bill Blough [Sun, 7 Jan 2018 01:48:17 +0000 (01:48 +0000)]
Fix WRAPPER_DIR contention between libxml2 and guththila
When configuring with --disable-libxml2 AND --enable-guththila, the WRAPPER_DIR
variable gets cleared by --disable-libxml2 even after --enable-guththila has
set it.
JIRA: AXIS2C-1684
Bill Blough [Sun, 7 Jan 2018 01:31:39 +0000 (01:31 +0000)]
Optionally enable code coverage statistics
Add configure/makefile support for enabling gcov-based test coverage statistics
JIRA: AXIS2C-1689
Bill Blough [Mon, 11 Dec 2017 03:13:23 +0000 (03:13 +0000)]
Fix comment typo
Fix comment typo as reported at https://github.com/apache/axis2-c/pull/3
Submitted-by: Bruno Kinoshita <kinow>
Bill Blough [Sun, 10 Dec 2017 18:03:37 +0000 (18:03 +0000)]
Replace C++-style comments with C-style comments
C90 does not recognize C++ style comments. Replace with C-style comments
for compatibility.
Jira: AXIS2C-1688
Rafael Bronzeri [Sun, 18 Sep 2016 17:54:38 +0000 (17:54 +0000)]
axiom_node_add_sibling function added. It can be used to generates a multipart envelop payload.
Jira: AXIS2C-1687
Rafael Bronzeri [Sun, 18 Sep 2016 17:54:09 +0000 (17:54 +0000)]
axiom_node_add_sibling function added. It can be used to generates a multipart envelop payload.
Jira: AXIS2C-1687
Rafael Bronzeri [Sun, 18 Sep 2016 15:46:53 +0000 (15:46 +0000)]
Get compatibility with anothers Web Services Frameworks, adjust payload with xmlns
Rafael Bronzeri [Wed, 6 Jul 2016 03:38:47 +0000 (03:38 +0000)]
Fixed Bug: AXIS2C-1674. Simple HttpServer crashes when reading directories in Windows 2012 Server
Rafael Bronzeri [Wed, 6 Jul 2016 03:38:30 +0000 (03:38 +0000)]
Fixed Bug: AXIS2C-1674. Simple HttpServer crashes when reading directories in Windows 2012 Server
Rafael Bronzeri [Wed, 6 Jul 2016 03:38:14 +0000 (03:38 +0000)]
Fixed Bug: AXIS2C-1674. Simple HttpServer crashes when reading directories in Windows 2012 Server
Rafael Bronzeri [Wed, 6 Jul 2016 03:37:54 +0000 (03:37 +0000)]
Fixed Bug: AXIS2C-1674. Simple HttpServer crashes when reading directories in Windows 2012 Server
Rafael Bronzeri [Wed, 6 Jul 2016 03:37:11 +0000 (03:37 +0000)]
Fixed Bug: AXIS2C-1677. Include the last two characters CRLF at the end of SOAP Env in Http Content-Length
Nadir K. Amra [Tue, 10 Nov 2015 17:44:03 +0000 (17:44 +0000)]
Simplify/cleanup code
Nadir K. Amra [Tue, 10 Nov 2015 17:34:54 +0000 (17:34 +0000)]
Simplify/cleanup code
Nadir K. Amra [Tue, 10 Nov 2015 17:30:28 +0000 (17:30 +0000)]
Simplify/cleanup code
Nadir K. Amra [Fri, 6 Nov 2015 22:51:32 +0000 (22:51 +0000)]
Simplify code
Nadir K. Amra [Fri, 6 Nov 2015 22:05:50 +0000 (22:05 +0000)]
check pointer before free'ing
Nadir K. Amra [Fri, 6 Nov 2015 21:46:01 +0000 (21:46 +0000)]
Simplify code
Alex Mantaut [Tue, 7 Jan 2014 23:44:38 +0000 (23:44 +0000)]
Fixes server Segfault with guththila parser. Fixes AXIS2C-1628. Thanks loentar for the patch.
Alex Mantaut [Fri, 3 Jan 2014 18:25:57 +0000 (18:25 +0000)]
Modified closure of logfile to avoid in some cases closing stderr. Fixes issue AXIS2C-1655.
Alex Mantaut [Mon, 18 Nov 2013 18:46:43 +0000 (18:46 +0000)]
Modified axiom_node_detach_without_namespaces() to keep a reference to the builder if the node is the owner.
Fixes AXIS2C-1650.
Alex Mantaut [Mon, 18 Nov 2013 15:44:32 +0000 (15:44 +0000)]
Fixed some mem leaks from test_xpath, in order to simplify finding mem leaks in xpath for issue AXIS2C-1650
Alex Mantaut [Fri, 13 Sep 2013 22:25:03 +0000 (22:25 +0000)]
Fix for issue AXIS2C-1628 + test.
Alex Mantaut [Thu, 5 Sep 2013 18:43:28 +0000 (18:43 +0000)]
Fix PKG_PROG_PKG_CONFIG() missing macro in earlier pkg-config versions (caused
configure failure on axiom)
Axiom now ships with it's own pkg.m4 file in order to guarantee the minimum
macros needed.
Fixes issue AXIS2C-1647.
commting AXIS2C-1645 patch
Alex Mantaut [Thu, 18 Jul 2013 17:45:05 +0000 (17:45 +0000)]
Replaced logs for sprintf, when log unavailable, fixes AXIS2C-1629
Readme file updated , Fixed broken links ,https://issues.apache.org/jira/browse/AXIS2C-1643
Weerapurage Dinesh Premalal [Fri, 12 Apr 2013 04:03:42 +0000 (04:03 +0000)]
applying patch Alex Mantaut provided for 1632 to fix a memory leak
Weerapurage Dinesh Premalal [Mon, 7 Jan 2013 17:52:35 +0000 (17:52 +0000)]
adding patch for Axis2C-1370 from Alex Mantaut
Applied patch AXIS2C-1526
Fixed memory leak
Fixed warnings with -Werror
Added missing setting of service group context id
Fix for issue AXIS2C-1553
Warnings fixed with -Werror
Warnings fixed with -Werror