Commit Graph

1726 Commits

Author SHA1 Message Date
Leonid Stryzhevskyi
81d4efef50 move oatpp/core/parser/* --> oatpp/utils/parser* 2024-04-23 04:28:23 +03:00
Leonid Stryzhevskyi
31fb1412d3 move oatpp/core/data/* --> oatpp/data/* 2024-04-23 04:12:46 +03:00
Leonid Stryzhevskyi
477b5b1af9 move oatpp/core/provider/* --> oatpp/provider/* 2024-04-23 03:40:49 +03:00
Leonid Stryzhevskyi
36f298c8d4 move oatpp/core/concurrency/* to the root folder 2024-04-23 03:19:49 +03:00
Leonid Stryzhevskyi
acf598433d move oatpp/core/base/* --> oatpp/base/* 2024-04-23 02:56:25 +03:00
Leonid Stryzhevskyi
0f99dc37fb Do not use 'test' namespace in tests 2024-04-23 02:46:59 +03:00
Leonid Stryzhevskyi
4bfa3db6f5 move Environment.hpp to root folder 2024-04-23 02:41:04 +03:00
Leonid Stryzhevskyi
b263808a74 move Types.hpp and IODefinitions.hpp to root folder 2024-04-23 02:26:09 +03:00
Leonid Stryzhevskyi
52e3dd0ae6 move 'oatpp/core/async/*' --> 'oatpp/async/*' 2024-04-23 02:19:04 +03:00
Leonid Stryzhevskyi
f0ae36e086 move 'oatpp/core/macro/*' --> 'oatpp/macro/*' 2024-04-23 02:01:31 +03:00
Leonid Stryzhevskyi
ec1b0523ef move oatpp/core/utils --> oatpp/utils. move oatpp/algorithm/CRC --> oatpp/utils/CRC32 2024-04-23 01:45:17 +03:00
Leonid Stryzhevskyi
06232810f7 refactor json namespaces 2024-04-23 01:20:20 +03:00
Leonid Stryzhevskyi
60d879473a
Update README.md 2024-04-21 23:18:43 +03:00
Leonid Stryzhevskyi
17ef2a7f6c
Merge pull request #916 from oatpp/monitor_invalidate_all
network::monitor::ConnectionMonitor: invalidateAll() method
2024-02-05 05:51:38 +02:00
Leonid Stryzhevskyi
d95e763da1 network::monitor::ConnectionMonitor: invalidateAll() method 2024-02-05 05:43:04 +02:00
Leonid Stryzhevskyi
a85ee40b36
Merge pull request #915 from fhuberts/bugfix/894
Fix a potential crash, indicated by a compiler warning (#894)
2024-02-05 04:28:34 +02:00
Ferry Huberts
b338db70ee Fix a potential crash, indicated by a compiler warning (#894)
At this point in the code it == m_statCollectors.end() and therefore
it->first has no meaning and can not be used.

Building CXX object lib/oatpp/src/CMakeFiles/oatpp.dir/oatpp/web/protocol/CommunicationError.cpp.o In file included from /usr/include/c++/13/bits/shared_ptr.h:53,
                 from /usr/include/c++/13/memory:80,
                 from oatpp/src/oatpp/core/base/Countable.hpp:28,
                 from oatpp/src/oatpp/core/data/mapping/type/./Type.hpp:28,
                 from oatpp/src/oatpp/core/data/mapping/type/Object.hpp:28,
                 from oatpp/src/oatpp/core/Types.hpp:28,
                 from oatpp/src/oatpp/network/monitor/StatCollector.hpp:28,
                 from oatpp/src/oatpp/network/monitor/MetricsChecker.hpp:28,
                 from oatpp/src/oatpp/network/monitor/ConnectionMonitor.hpp:28,
                 from oatpp/src/oatpp/network/monitor/ConnectionMonitor.cpp:25:
In member function ‘std::__shared_ptr<_Tp, _Lp>::element_type* std::__shared_ptr<_Tp, _Lp>::get() const [with _Tp = std::__cxx11::basic_string<char>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’,
    inlined from ‘std::__shared_ptr_access<_Tp, _Lp, <anonymous>, <anonymous> >::element_type* std::__shared_ptr_access<_Tp, _Lp, <anonymous>, <anonymous> >::_M_get() const [with _Tp = std::__cxx11::basic_string<char>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic; bool <anonymous> = false; bool <anonymous> = false]’ at /usr/include/c++/13/bits/shared_ptr_base.h:1363:69,
    inlined from ‘std::__shared_ptr_access<_Tp, _Lp, <anonymous>, <anonymous> >::element_type* std::__shared_ptr_access<_Tp, _Lp, <anonymous>, <anonymous> >::operator->() const [with _Tp = std::__cxx11::basic_string<char>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic; bool <anonymous> = false; bool <anonymous> = false]’ at /usr/include/c++/13/bits/shared_ptr_base.h:1357:15,
    inlined from ‘T* oatpp::data::mapping::type::ObjectWrapper<T, Clazz>::operator->() const [with T = std::__cxx11::basic_string<char>; Clazz = oatpp::data::mapping::type::__class::String]’ at oatpp/src/oatpp/core/data/mapping/type/./Type.hpp:223:28,
    inlined from ‘void oatpp::network::monitor::ConnectionMonitor::Monitor::freeConnectionStats(oatpp::network::monitor::ConnectionStats&)’ at oatpp/src/oatpp/network/monitor/ConnectionMonitor.cpp:189:7:
/usr/include/c++/13/bits/shared_ptr_base.h:1666:16: warning: array subscript 0 is outside array bounds of ‘std::aligned_storage<40, 8>::type [0]’ [-Warray-bounds=]
 1666 |       { return _M_ptr; }
      |                ^~~~~~
In member function ‘void oatpp::network::monitor::ConnectionMonitor::Monitor::freeConnectionStats(oatpp::network::monitor::ConnectionStats&)’:
cc1plus: note: source object is likely at address zero

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2024-02-04 22:25:59 +01:00
Leonid Stryzhevskyi
bc24a9c090
Merge pull request #909 from oatpp/fix_url_enconding_method_params
encoding::Url: fix method params
2024-01-15 04:28:18 +02:00
Leonid Stryzhevskyi
d22dfca9e8 encoding::Url: fix method params 2024-01-15 04:26:59 +02:00
Leonid Stryzhevskyi
a5fe65becc
Merge pull request #904 from linhaojun857/fix_902
Fix the bug of send "null" in request body causes seg-fault
2024-01-11 06:38:22 +02:00
linhaojun857
02a21de839 Add test 2023-12-16 15:34:08 +08:00
linhaojun857
df9ddc0313 fix the bug of send "null" in request body causes seg-fault on any endpoint w/ BODY_DTO 2023-12-16 10:35:15 +08:00
Leonid Stryzhevskyi
57e6a714d7
Merge pull request #896 from linhaojun857/add_test_sample
Add test sample for HttpRouter
2023-12-05 06:22:39 +02:00
linhaojun857
1137678bba Add test sample for HttpRouter 2023-11-26 23:49:20 +08:00
Leonid Stryzhevskyi
1d11558e2c
Merge pull request #895 from ffontaine/master
src/oatpp/core/base/Environment.hpp: include cstdarg
2023-11-25 08:44:46 +02:00
Leonid Stryzhevskyi
679b6e95f2
Merge pull request #893 from sodevel/fix/gcc46
Fix compilation on GCC 4.6
2023-11-25 08:42:06 +02:00
Fabrice Fontaine
b3e8930ccb src/oatpp/core/base/Environment.hpp: include cstdarg
Include cstdarg to fix the following build failure with uclibc-ng:

In file included from /home/autobuild/autobuild/instance-4/output-1/build/oatpp-1.3.0/src/oatpp/algorithm/CRC.hpp:28,
                 from /home/autobuild/autobuild/instance-4/output-1/build/oatpp-1.3.0/src/oatpp/algorithm/CRC.cpp:25:
/home/autobuild/autobuild/instance-4/output-1/build/oatpp-1.3.0/src/oatpp/core/base/Environment.hpp:359:93: error: 'va_list' has not been declared
  359 |   static void vlogFormatted(v_uint32 priority, const std::string& tag, const char* message, va_list args);
      |                                                                                             ^~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/bcdf7548ff752f936defd111d13c63245ea70cbe

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2023-11-23 22:45:56 +01:00
Steffen Olszewski
315d5ae498 Fix compilation on GCC 4.6
The compiler flag `-fcf-protection` is only available since GCC 8.1.

Closes #892
2023-11-21 19:57:37 +01:00
Leonid Stryzhevskyi
c1d37c189e
Merge pull request #887 from Yadoms/fixCrossCompileForPi
Try to fix cross-compile for Raspberry Pi with GCC version < 8.1
2023-11-15 22:34:06 +02:00
Leonid Stryzhevskyi
2435f4a3fb
Merge pull request #889 from mwohlert/branch/feature/allow_overriding_DI_variables_in_ClientServerTestRunner
Allow overriding DI injected variables in ClientServerTestRunner
2023-11-15 22:33:07 +02:00
Michel Wohlert
d427e200e9
Allow overriding DI injected variables in ClientServerTestRunner
Move OATPP_COMPONENT calls to constructor to allow supplying variables without using DI
2023-11-14 13:37:04 -08:00
Sébastien Gallou
5ccad57d78 Try to fix cross-compile for Raspberry Pi with GCC version < 8.1 2023-11-08 15:26:31 +01:00
Leonid Stryzhevskyi
1e5b0c4917
Merge pull request #883 from alex-lt-kong/master
New fix to issue 872
2023-11-01 23:54:16 +02:00
Alex Kong
5d552e9625 new fix 2023-10-29 11:27:06 +08:00
Leonid Stryzhevskyi
33c076d4b5
Merge pull request #877 from sodevel/fix/cmake-variable-removal
Prevent unintended removal of local CMake variables
2023-10-21 02:59:04 +03:00
Leonid Stryzhevskyi
1714ce58ec
Merge pull request #878 from sodevel/feature/extend-ignores
Ignore more build directory patterns
2023-10-20 23:31:41 +03:00
Steffen Olszewski
0b73f01703 Prevent unintended removal of local CMake variables
Without quotes list expansion happens inside the set-call, if the list is empty,
this actually unsets the variable. This is not intended and could lead to
unwanted side effects. List expansion is not required there, quoting the
variable results in setting the variable to empty for empty lists.
2023-10-20 19:13:54 +02:00
Steffen Olszewski
bbffb93307 Remove unneeded build directory ignores 2023-10-20 18:56:08 +02:00
Steffen Olszewski
67fa47af99 Ignore more build directory patterns 2023-10-20 18:55:03 +02:00
Leonid Stryzhevskyi
b85a565351
Merge pull request #873 from alex-lt-kong/ak_issue872
comment out fcf-protection
2023-10-15 00:23:01 +03:00
Alex Kong
ad6a6906bc comment out fcf-protection 2023-10-14 17:14:15 +08:00
Alex Kong
dec7490f79 comment out fcf-protection 2023-10-14 17:13:12 +08:00
mamsds
3d0081ab34 comment out fcf-protection 2023-10-14 17:08:41 +08:00
Leonid Stryzhevskyi
d2c06b65af
Merge pull request #861 from linhaojun857/issue_676
Fix serialize object and deserialize json when not include required field
2023-10-08 04:43:31 +03:00
Leonid Stryzhevskyi
1a69c72c67
Update README.md 2023-10-06 01:27:23 +03:00
linhaojun857
7b92550523 throw exception when deserialize json which not include required field 2023-09-21 15:04:59 +08:00
linhaojun857
c7e1c2375b throw exception when serialize object which not include required field 2023-09-21 14:13:27 +08:00
Leonid Stryzhevskyi
432464285a
Merge pull request #860 from linhaojun857/fix_741
Fix default value with QUERY macro
2023-09-21 02:05:38 +03:00
linhaojun857
0202d08725 fix default value with QUERY macro 2023-09-21 00:20:27 +08:00
Leonid Stryzhevskyi
3f37fa7008
Merge pull request #855 from linhaojun857/issue_775
Add Interface ConnectionConfigurer
2023-09-18 15:34:08 +03:00