Commit Graph

970 Commits

Author SHA1 Message Date
Leonid Stryzhevskyi
b9d78cce64 Tree: better mapping to/from object 2024-05-06 00:23:48 +03:00
Leonid Stryzhevskyi
a29c664581 mapping::Tree: introduce TreeChildrenOperator 2024-05-05 09:42:24 +03:00
Leonid Stryzhevskyi
0ee2e3325d add Tree object-wrapper 2024-05-05 02:46:48 +03:00
Leonid Stryzhevskyi
5460bd404d introduce oatpp::Tree - mapping-enabled wrapper over data::mapping::Tree. 2024-05-04 05:33:01 +03:00
Leonid Stryzhevskyi
8ae59cdba1 refactor: move oatpp/data/mapping/type/* --> oatpp/data/type/* 2024-05-04 04:09:07 +03:00
Leonid Stryzhevskyi
bdcad18ddb data::mapping::ObjectMapper: introduce MappingError 2024-05-03 06:25:47 +03:00
Leonid Stryzhevskyi
b890a15840 json::ObjectMapper: use mapping::Tree 2024-05-01 03:56:03 +03:00
Leonid Stryzhevskyi
77ca525d2c Tree: TreeMap - fix assignment operators 2024-05-01 02:44:48 +03:00
Leonid Stryzhevskyi
8137eba15e json::ObjectMapper: use mapping::Tree for Deserialization 2024-04-30 02:35:40 +03:00
Leonid Stryzhevskyi
87af860824 Fix incomplete type 2024-04-30 00:35:23 +03:00
Leonid Stryzhevskyi
249fc4f137 mapping::Tree: introduce attributes. Add PAIRS type 2024-04-29 02:48:51 +03:00
Leonid Stryzhevskyi
ad3136480a Refactor: move data::Tree to data::mapping::Tree 2024-04-29 00:56:29 +03:00
Leonid Stryzhevskyi
1d64355eef Tree: introduce ObjectToTreeMapper and TreeToObjectMapper. WIP 2024-04-28 06:11:20 +03:00
Leonid Stryzhevskyi
4a7795c221 data::Tree: map both ordered and random-accessed. dynamic casting 2024-04-26 06:33:14 +03:00
Leonid Stryzhevskyi
5461fb2f08 Introduce data::Tree::Node 2024-04-24 04:24:37 +03:00
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
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
d95e763da1 network::monitor::ConnectionMonitor: invalidateAll() method 2024-02-05 05:43:04 +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
d22dfca9e8 encoding::Url: fix method params 2024-01-15 04:26:59 +02: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
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
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
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
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
Leonid Stryzhevskyi
a309413ae0
Merge pull request #856 from linhaojun857/fix_677
Fix ConnectionMonitor
2023-09-18 15:30:29 +03:00
linhaojun857
32b2b2eb78 fix ConnectionMonitor 2023-09-18 13:44:53 +08:00
linhaojun857
455aa12b54 fix 2023-09-16 13:45:33 +08:00
linhaojun857
55971cf099 add ConnectionConfigurer 2023-09-16 13:37:21 +08:00
Leonid Stryzhevskyi
7e14e48a98
Merge pull request #853 from linhaojun857/fix_client_retry
Fix client retry bug
2023-09-16 02:19:43 +03:00
linhaojun857
0a5900bd8f fix client retry bug 2023-09-15 13:02:43 +08:00
linhaojun857
62257a94b7 fix url parse bug 2023-09-15 08:56:17 +08:00
Ferry Huberts
81e05099ad Process review comments
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-07 08:07:33 +02:00
Ferry Huberts
6d9f9bb5e2 Merge branch 'master' into clang
* master:
  Fix v_sock_size definition
  Use auto for 2 locals
  Convert uses of socklen_t to v_sock_size
  Introduce v_sock_size for socklen_t
2023-09-07 08:03:04 +02:00
Ferry Huberts
11852eb3b5 Fix v_sock_size definition
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-06 09:11:20 +02:00
Ferry Huberts
defda0ff16 Use auto for 2 locals
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-06 08:44:53 +02:00
Ferry Huberts
02936f7087 Convert uses of socklen_t to v_sock_size 2023-09-06 08:44:53 +02:00
Ferry Huberts
fd29f31a5c Introduce v_sock_size for socklen_t
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-06 08:44:53 +02:00
Ferry Huberts
44c37df002 Fix a few Clang compiler warnings (-Wsuggest-destructor-override)
A few are left

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2023-09-02 23:12:26 +02:00