Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package aws-crt-cpp for openSUSE:Factory checked in at 2024-09-01 19:21:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/aws-crt-cpp (Old) and /work/SRC/openSUSE:Factory/.aws-crt-cpp.new.2698 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "aws-crt-cpp" Sun Sep 1 19:21:45 2024 rev:14 rq:1197834 version:0.27.6 Changes: -------- --- /work/SRC/openSUSE:Factory/aws-crt-cpp/aws-crt-cpp.changes 2024-08-09 16:15:14.880394163 +0200 +++ /work/SRC/openSUSE:Factory/.aws-crt-cpp.new.2698/aws-crt-cpp.changes 2024-09-01 19:22:04.593611375 +0200 @@ -1,0 +2,11 @@ +Mon Aug 26 15:00:51 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- Update to version 0.27.6 + * Proxy fix by @bretambrose in (#647) + * Update submodules by @sfod in (#649) + * Add support for string array ep context + params by @DmitriyMusatkin in (#646) + * Fix websocket shutdown behavior + (submodule updates) by @graebm in (#650) + +------------------------------------------------------------------- Old: ---- v0.27.5.tar.gz New: ---- v0.27.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ aws-crt-cpp.spec ++++++ --- /var/tmp/diff_new_pack.YyKBW4/_old 2024-09-01 19:22:05.193635938 +0200 +++ /var/tmp/diff_new_pack.YyKBW4/_new 2024-09-01 19:22:05.193635938 +0200 @@ -20,7 +20,7 @@ %define library_soversion 1 Name: aws-crt-cpp -Version: 0.27.5 +Version: 0.27.6 Release: 0 Summary: AWS C++ wrapper for AWS SDK C libraries License: Apache-2.0 ++++++ v0.27.5.tar.gz -> v0.27.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-crt-cpp-0.27.5/VERSION new/aws-crt-cpp-0.27.6/VERSION --- old/aws-crt-cpp-0.27.5/VERSION 2024-08-04 18:57:26.000000000 +0200 +++ new/aws-crt-cpp-0.27.6/VERSION 2024-08-21 19:11:01.000000000 +0200 @@ -1 +1 @@ -0.27.5 +0.27.6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-crt-cpp-0.27.5/include/aws/crt/endpoints/RuleEngine.h new/aws-crt-cpp-0.27.6/include/aws/crt/endpoints/RuleEngine.h --- old/aws-crt-cpp-0.27.5/include/aws/crt/endpoints/RuleEngine.h 2024-08-04 18:57:26.000000000 +0200 +++ new/aws-crt-cpp-0.27.6/include/aws/crt/endpoints/RuleEngine.h 2024-08-21 19:11:01.000000000 +0200 @@ -53,6 +53,13 @@ */ bool AddBoolean(const ByteCursor &name, bool value); + /* + * Add string array parameter. + * True if added successfully and false if failed. + * Aws::Crt::LastError() can be used to retrieve failure error code. + */ + bool AddStringArray(const ByteCursor &name, const Vector<ByteCursor> &value); + /// @private aws_endpoints_request_context *GetNativeHandle() const noexcept { return m_requestContext; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-crt-cpp-0.27.5/source/endpoints/RuleEngine.cpp new/aws-crt-cpp-0.27.6/source/endpoints/RuleEngine.cpp --- old/aws-crt-cpp-0.27.5/source/endpoints/RuleEngine.cpp 2024-08-04 18:57:26.000000000 +0200 +++ new/aws-crt-cpp-0.27.6/source/endpoints/RuleEngine.cpp 2024-08-21 19:11:01.000000000 +0200 @@ -37,6 +37,12 @@ aws_endpoints_request_context_add_boolean(m_allocator, m_requestContext, name, value); } + bool RequestContext::AddStringArray(const ByteCursor &name, const Vector<ByteCursor> &value) + { + return AWS_OP_SUCCESS != aws_endpoints_request_context_add_string_array( + m_allocator, m_requestContext, name, value.data(), value.size()); + } + ResolutionOutcome::ResolutionOutcome(aws_endpoints_resolved_endpoint *impl) : m_resolvedEndpoint(impl) {} ResolutionOutcome::ResolutionOutcome(ResolutionOutcome &&toMove) noexcept diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-crt-cpp-0.27.5/source/iot/Mqtt5Client.cpp new/aws-crt-cpp-0.27.6/source/iot/Mqtt5Client.cpp --- old/aws-crt-cpp-0.27.5/source/iot/Mqtt5Client.cpp 2024-08-04 18:57:26.000000000 +0200 +++ new/aws-crt-cpp-0.27.6/source/iot/Mqtt5Client.cpp 2024-08-21 19:11:01.000000000 +0200 @@ -571,6 +571,8 @@ m_options->WithConnectOptions(m_connectOptions); } + bool proxyOptionsSet = false; + if (m_websocketConfig.has_value()) { auto websocketConfig = m_websocketConfig.value(); @@ -595,13 +597,20 @@ if (useWebsocketProxyOptions) { m_options->WithHttpProxyOptions(m_websocketConfig->ProxyOptions.value()); + proxyOptionsSet = true; } else if (m_proxyOptions.has_value()) { m_options->WithHttpProxyOptions(m_proxyOptions.value()); + proxyOptionsSet = true; } } + if (m_proxyOptions.has_value() && !proxyOptionsSet) + { + m_options->WithHttpProxyOptions(m_proxyOptions.value()); + } + return Crt::Mqtt5::Mqtt5Client::NewMqtt5Client(*m_options, m_allocator); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aws-crt-cpp-0.27.5/tests/RuleEngineTest.cpp new/aws-crt-cpp-0.27.6/tests/RuleEngineTest.cpp --- old/aws-crt-cpp-0.27.5/tests/RuleEngineTest.cpp 2024-08-04 18:57:26.000000000 +0200 +++ new/aws-crt-cpp-0.27.6/tests/RuleEngineTest.cpp 2024-08-21 19:11:01.000000000 +0200 @@ -173,3 +173,21 @@ } AWS_TEST_CASE(RuleEngine, s_TestRuleEngine) + +static int s_TestRuleEngineContextParams(struct aws_allocator *allocator, void *ctx) +{ + (void)ctx; + + Aws::Crt::ApiHandle apiHandle(allocator); + + Aws::Crt::Endpoints::RequestContext context(allocator); + context.AddString(ByteCursorFromCString("Region"), ByteCursorFromCString("us-west-2")); + context.AddBoolean(ByteCursorFromCString("AValidBoolParam"), false); + context.AddStringArray(ByteCursorFromCString("StringArray1"), {}); + context.AddStringArray( + ByteCursorFromCString("StringArray2"), {ByteCursorFromCString("a"), ByteCursorFromCString("b")}); + + return AWS_OP_SUCCESS; +} + +AWS_TEST_CASE(RuleEngineContextParams, s_TestRuleEngineContextParams) \ No newline at end of file