instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apache__mesos__371 | apache/mesos | 371 | defect | 2fbdb30a355caeeb1b9e038d9de7f66693180c8a | 777188433ff4f814eb9163b0731bc5b1e50f4938 | [MESOS-10199] Fix Host field in client headers | This PR replaces empty host with actual IP/Port of the message recipient in Host field. IP+Port has been used as per RFC guidelines.
An earlier PR made host field empty https://reviews.apache.org/r/27865 | diff --git a/3rdparty/libprocess/src/encoder.hpp b/3rdparty/libprocess/src/encoder.hpp
index 629b94f65c5..23c80974c38 100644
--- a/3rdparty/libprocess/src/encoder.hpp
+++ b/3rdparty/libprocess/src/encoder.hpp
@@ -122,7 +122,7 @@ class MessageEncoder : public DataEncoder
<< "User-Agent: libprocess/" << message.... | 4 | 2 | 1 | [{"id": "G0", "claim": "The encoder should construct the Host header by following the existing logic used by the http client (which sets it from the IP and appends the port for non-standard ports) instead of the new inline construction.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduce... | null |
apache__mesos__380 | apache/mesos | 380 | defect | e5a78a78c1b706e1dfbe3166fcd1c1882770f6c2 | 19c09a66c1062c9fa9f689b3e2313b24271a60c0 | Fixed a bug preventing agent recovery when executor GC is interrupted. | If the agent is interrupted after garbage collecting the executor's
latest run meta directory but before garbage collecting the top-level
executor meta directory, the "latest" symlink will dangle, which would
cause the agent executor recovery to fail.
Instead, we can simply ignore if the "latest" symlink dangles, s... | diff --git a/src/slave/state.cpp b/src/slave/state.cpp
index 96f22b3bf87..6d065d03979 100644
--- a/src/slave/state.cpp
+++ b/src/slave/state.cpp
@@ -417,13 +417,17 @@ Try<ExecutorState> ExecutorState::recover(
foreach (const string& path, runs.get()) {
if (Path(path).basename() == paths::LATEST_SYMLINK) {
... | 2 | 2 | 1 | [{"id": "G0", "claim": "Detecting agent re-registration via ReregisterSlaveMessage should be sufficient for the purpose of the test, so the added resource-reoffer check is unnecessary and should be removed or, if kept, explained with a comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", ... | null |
apache__mesos__408 | apache/mesos | 408 | defect | af6922288f0dd9f530305641a4f88c3bc9b48dab | 630d7bc2e47cd6b878ac59fbb875c032b3a6ac18 | Fixed an agent crash in case of duplicate task ID. | When using the command executor, if a task is started with the same ID
as a previous task for which the agent still has the executor, reject
the task instead of crashing.
Closes MESOS-9657.
Test before:
```
[==========] Running 1 test from 1 test case. ... | diff --git a/src/slave/slave.cpp b/src/slave/slave.cpp
index a2d6eb74605..2cc8b20025c 100644
--- a/src/slave/slave.cpp
+++ b/src/slave/slave.cpp
@@ -3191,7 +3191,17 @@ void Slave::__run(
if (taskGroup.isNone() && task->has_command()) {
// We are dealing with command task; a new command executor will be
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The drop-update message \"Master wants to launch executor, but one already exists with this ID\" attributes the error to the master although in some/many cases the framework is responsible for creating the duplicate, so a message not attributing it to the master, such as \"Cannot reuse an alread... | null |
apache__mesos__462 | apache/mesos | 462 | defect | 5109b9069b62510ab6d0cc0c78a9ed8327d3986a | f733a97ae4da38b2addcdddf85438ba9e5404581 | Expose new metrics for memory usage in the cgroup. | The metric "mem_kmem_usage_bytes" is the total kernel memory usage by
processes in the cgroup in bytes.
The metric "mem_kmem_tcp_usage_bytes" is the total memory usage for TCP
buffers in bytes. | diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index f153de41566..41d2f99622e 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -1819,6 +1819,12 @@ message ResourceStatistics {
// Total memory + swap usage. This is set if swap is enabled.
optional uint64 mem_total_memsw... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new proto comments should end with a period like the other comments do.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new field numbers in include/mesos/mesos.proto (53/54) do not match those in include/mesos/v1/me... | null |
apache__mesos__463 | apache/mesos | 463 | defect | 5109b9069b62510ab6d0cc0c78a9ed8327d3986a | 04332635ed67c3cf14a90b4d2563b1fcc4f02995 | Added old containers upgrade support in the XFS disk isolator. | Currently containers that were created prior to enabling the XFS disk
isolator were simply ignored by it. With this change the isolator
assigns XFS project IDs to sandboxes of the old containers upon recovery
and manages them. | diff --git a/src/slave/containerizer/mesos/isolators/xfs/disk.cpp b/src/slave/containerizer/mesos/isolators/xfs/disk.cpp
index e1bbb31801d..c2b5ab077e7 100644
--- a/src/slave/containerizer/mesos/isolators/xfs/disk.cpp
+++ b/src/slave/containerizer/mesos/isolators/xfs/disk.cpp
@@ -274,6 +274,8 @@ Future<Nothing> XfsDisk... | 3 | 3 | 0 | [{"id": "G0", "claim": "The wait loop in waitForFileCreation can be simplified to a single while condition (while (!os::exists(path) && timer.elapsed() < duration) { os::sleep(Milliseconds(50)); }).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
apache__mesos__468 | apache/mesos | 468 | defect | 5109b9069b62510ab6d0cc0c78a9ed8327d3986a | 581dc22514a80084dc792dae7e28b3f3ac2a2acb | Fixed sorting in MountInfoTable::read. | Current implementation of MountInfoTable sorting crashes when some parts of the mount tree are not visible in /proc/{pid}/mountinfo, which can happen, for example, in a chrooted environment. The sorter assumes that the / mount is always present and uses it as the starting node for the DFS traversal.
Additionally, th... | diff --git a/src/linux/fs.cpp b/src/linux/fs.cpp
index 27536aab3dd..9c373f29a99 100644
--- a/src/linux/fs.cpp
+++ b/src/linux/fs.cpp
@@ -193,54 +193,43 @@ Try<MountInfoTable> MountInfoTable::read(
// them according to the invariant that all parent entries
// appear before their child entries.
if (hierarchicalS... | 2 | 2 | 0 | [{"id": "G0", "claim": "Use a vector instead of a list for the sorted entries (s/list/vector/) and consider reserve()ing its capacity since the end size is known.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Avoid copying the sorted entries back i... | null |
apache__mesos__474 | apache/mesos | 474 | defect | 246aea6c0a6f4ff146edab607d63651afd4771e5 | 20873b215131972f3829ecd202254ca12e86c06f | Added rates collector to network/port_mapping isolator. | Added rates collector to network/port_mapping isolator.
Introduces RatesCollector class to network/port_mapping to (new)
RatePercentiles statistics on a variety of rates.
Statistics are derived from:
- https://docs.kernel.org/networking/statistics.html#c.rtnl_link_stats64
Queried through `rtnl_link_get_stat` i... | diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index dd3ada79c04..a5d447d46a8 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -1888,6 +1888,33 @@ message ResourceStatistics {
optional uint64 net_tx_burst_rate_limit = 47;
optional uint64 net_tx_burst_size = 48;
+ me... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new protobuf messages should be copied into v1/mesos.proto to maintain compatibility.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment should say 'reverse RX and TX', not 'reverse RX and RX'.", "category": "documenta... | null |
apache__mesos__483 | apache/mesos | 483 | defect | f4087b81c3d19af447fde003decf5590dfb7cdae | 9cc3b68ee87cf793af4f90ad0ed483760ba6412b | Added auto calculation of egress_rate_per_cpu. | Currently egress rate limit scaling requires manual configuration of per CPU rate limit. While it is more predictable and gives rounder values, in a heterogeneous environment where hosts with one NIC type have different CPUs it may be cumbersome to configure.
This commit allows you to pass an "auto" value to the --e... | diff --git a/src/slave/containerizer/mesos/isolators/network/port_mapping.cpp b/src/slave/containerizer/mesos/isolators/network/port_mapping.cpp
index c316b7dba0d..bc3a3459585 100644
--- a/src/slave/containerizer/mesos/isolators/network/port_mapping.cpp
+++ b/src/slave/containerizer/mesos/isolators/network/port_mapping... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `--network_link_speed` flag help text should be updated to mention that it is also used when `--egress_rate_per_cpu='auto'`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__mesos__486 | apache/mesos | 486 | defect | 2ef09fa64928b13d02958991526da14332009077 | 735af4496334a13f8220a4fc10c1eca7de318d4c | [FIX] Rate overflow in port_mapping isolator. | Commits:
- Fix 32-bit overflow in the port mapping isolator.
- [Compile time] Enforce use of libnl3 >= 3.5.
- [Run time] Enforce use of libnl3 >= 3.5.
- Make use of new libnl3 64 bit API to eliminate potential overflows.
The port mapping isolator currently uses uint32_t to store container rate limits as B/s. The... | diff --git a/m4/libnl3.m4 b/m4/libnl3.m4
index e64ba492554..21d386c58a5 100644
--- a/m4/libnl3.m4
+++ b/m4/libnl3.m4
@@ -23,7 +23,7 @@ AC_DEFUN([MESOS_MSG_LIBNL3_ERROR], [
AC_MSG_ERROR([$1
-------------------------------------------------------------------
-Please install libnl3 (version 3.2.26 or higher):
+Please ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The static cast is no longer needed on the ceil line when ceil has been bumped up to 64 bits.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The static cast is no longer needed on the rate line when rate has been bumped u... | null |
apache__mesos__558 | apache/mesos | 558 | defect | aed4041fda2d605f1714f8a49ef34608356bab55 | f675be572eefda3c41d1090fc5efc23d3657957e | Mitigate a case where the agent gets stuck sending TASK_DROPPED. | Per MESOS-7187, there is a case where the master holds a stale resource
UUID for the agent's resources, and all subsequent task launches result
in the agent sending TASK_DROPPED due to "Task assumes outdated resource
state".
While this patch doesn't fix the general issue of MESOS-7187, it does
mitigate a known p... | diff --git a/src/master/master.cpp b/src/master/master.cpp
index 4a601c97e52..97feb00734a 100644
--- a/src/master/master.cpp
+++ b/src/master/master.cpp
@@ -7746,6 +7746,22 @@ void Master::updateSlave(UpdateSlaveMessage&& message)
// providers as well.
}
+ // We don't expect the agent's resource version to c... | 1 | 1 | 0 | [{"id": "G0", "claim": "The added comment likely contains a typo: \"difference resource uuid\" should read \"different resource uuid\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__mesos__559 | apache/mesos | 559 | defect | aed4041fda2d605f1714f8a49ef34608356bab55 | 76b29c4a936509a224643152ea39bd8e806aa803 | [cgroups2] Introduce API to set a soft memory limit. | The "memory.high" control contains the soft memory limit for a cgroup and its descendants. Exceeding the limit will cause the cgroup's processes to get throttled and will put the cgroup under memory pressure.
We introduce `cgroups2::memory::set_high` and `cgroups2::memory::high` to set and get this soft memory limit... | diff --git a/src/linux/cgroups2.cpp b/src/linux/cgroups2.cpp
index f9912564b3..76666283bc 100644
--- a/src/linux/cgroups2.cpp
+++ b/src/linux/cgroups2.cpp
@@ -795,6 +795,7 @@ Result<Bytes> parse_bytelimit(const string& value)
namespace control {
const string CURRENT = "memory.current";
+const string HIGH = "memory.... | 3 | 2 | 0 | [{"id": "G0", "claim": "The pull request adds memory.high control support, but per the referenced documentation it looks like only memory.low and memory.max would be used, so the added memory.high support may be unnecessary.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id"... | null |
apache__mesos__571 | apache/mesos | 571 | defect | 14d7013319eca952cdf09e6029ba5a4d4278a85a | 0c6858a1cbfab37d301aac8ea2a6c14aa3e7043c | [cgroups2] Update destroy to be async more robust. | We were running into an inconsistent issue with `cgroups2::destroy`.
`cgroups2::destroy` would fail with EBUSY when removing cgroups with `rmdir`.
The error was being caused because some processes had not been killed
when `rmdir` was called on their cgroup; a cgroup with processes
cannot be destroyed.
After sign... | diff --git a/src/linux/cgroups2.cpp b/src/linux/cgroups2.cpp
index f309d604da..ed5e0d8788 100644
--- a/src/linux/cgroups2.cpp
+++ b/src/linux/cgroups2.cpp
@@ -381,41 +381,66 @@ Try<Nothing> kill(const std::string& cgroup)
}
-Try<Nothing> destroy(const string& cgroup)
+Future<Nothing> destroy(const string& cgroup)
... | 6 | 5 | 2 | [{"id": "G0", "claim": "Reduce the polling interval in the destroy wait loop from 10 milliseconds to 1 millisecond.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use `pids->empty()` instead of `pids->size() == 0` in the destroy wait loop.", "category": ... | null |
apache__myfaces-tobago__7198 | apache/myfaces-tobago | 7,198 | defect | f141c5ede3f24b07961f18a3ab744e9df7f1ab0a | 7baf4e9a2b4c65cd64c5f9e93eb2af652eb7e20d | refactor: set outdated HTTP headers to "deprecated" | set @deprecated for
* Internet Explorer user agents
* "Pragma" HTTP header and data headers "Expired/max-age" (replaced by HTTP/1.1 Cache-Control)
* X-Frame-Options HTTP header (covered by the CSP "frame-ancestors" directive)
Use standard CSP headers for webkit browsers
Issue: TOBAGO-2498 | diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java
index 24a489511e6..8385d3217fd 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/context/UserAgent.java
+++ b/tobago-core/src/main/java/org/... | 1 | 1 | 0 | [{"id": "G0", "claim": "JavaDoc `@deprecated` tags are still needed in addition to the `@Deprecated` annotations.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__mynewt-core__1294 | apache/mynewt-core | 1,294 | defect | 6d4709994c7247775435aef6785142d331455363 | 8fd763f3137a0a8caeda48fc446f6a98177e0203 | Encrypted flash | This is done with a pseudo flash device, which provides hal_flash interface.
Device is split into common part, and architecture specific part. Only nrf51/nrf52 implementation is within this PR. So the current split might need adjusting when/if other platforms are added. Split is done so that you can take advantage of ... | diff --git a/fs/fcb/src/fcb.c b/fs/fcb/src/fcb.c
index d0917abcff5..b70f5f50ac8 100644
--- a/fs/fcb/src/fcb.c
+++ b/fs/fcb/src/fcb.c
@@ -150,9 +150,6 @@ fcb_get_len(uint8_t *buf, uint16_t *len)
int rc;
if (buf[0] & 0x80) {
- if (buf[0] == 0xff && buf[1] == 0xff) {
- return FCB_ERR_NOVAR;
-... | 4 | 3 | 2 | [{"id": "G0", "claim": "The new driver/package should have been named `crypt_flash` instead of `enc_flash`.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The preprocessor directive in ef_nrf5x.c is misspelled as `#errof` and should read `#error`.", "cat... | null |
apache__mynewt-core__1369 | apache/mynewt-core | 1,369 | defect | cf99fe6f46acb922047976f6528bfc5b50501cf7 | 427fe7e297dfb0eabdb48aa8ea93fbdd9b196838 | kernel/os; add hal watchdog monitor | ...which tries to dump system state before HAL watchdog fires. | diff --git a/kernel/os/src/os.c b/kernel/os/src/os.c
index 684de3a0f9..f34c4d627f 100644
--- a/kernel/os/src/os.c
+++ b/kernel/os/src/os.c
@@ -47,6 +47,17 @@ uint32_t g_os_idle_ctr;
static struct os_task os_main_task;
OS_TASK_STACK_DEFINE(os_main_stack, OS_MAIN_STACK_SIZE);
+#if MYNEWT_VAL(OS_WATCHDOG_MONITOR)
+
+/... | 1 | 1 | 1 | [{"id": "G0", "claim": "There should be a check that, when the watchdog monitor is enabled, the watchdog interval has some minimum value, since a very short setting (e.g. two seconds) may leave the monitor no time to run.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__mynewt-core__1432 | apache/mynewt-core | 1,432 | defect | 0077ecf0dcabc739fa4a96abaf5f70939d6a85e4 | 5b605a8d5129b95d740c6b859b8ce5722b2a4afb | Add enable/disable SAADC channel to nordic SDK | The current nordic SDK does not allow the enabling/disabling of a SAADC channel with calling nrfx_channel_init() and nrfx_channel_uninit(). This means that to enable/disable a channel you need to reconfigure the channel each time. These helper functions allow one to configure a SAADC channel and leave it with the confi... | diff --git a/hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_saadc.c b/hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_saadc.c
index 1f6989980c..7e1ea3f7ca 100644
--- a/hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_saadc.c
+++ b/hw/mcu/nordic/src/ext/nrfx/drivers/src/nrfx_saadc.c
@@ -1,21 +1,21 @@
/**
* Copyright (c) 2015 - 2... | 2 | 1 | 0 | [{"id": "G0", "claim": "nrfx_enable_adc_chan should verify that the specified channel is disabled before incrementing m_cb.active_channels, and nrfx_disable_adc_chan similarly before decrementing it, as the upstream nrfx code does.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introdu... | null |
apache__mynewt-core__1490 | apache/mynewt-core | 1,490 | defect | ce71fe462314f41543b237c3c28ea3a011fd70a6 | ea02b124a9b686c61beef18e7ba33c920428df56 | Hal flash write protection | In certain cases (i.e. low voltage) it may be wise to prevent
writes to flash since it may result in flash corruption.
New function hal_flash_write_protect() allows to block/unblock writes
to flash.
@InternetofAwesome please take a look if that is what you had in mind | diff --git a/hw/drivers/flash/enc_flash/test/src/testcases/enc_flash_hal.c b/hw/drivers/flash/enc_flash/test/src/testcases/enc_flash_hal.c
index fce211afe82..c478da15be0 100644
--- a/hw/drivers/flash/enc_flash/test/src/testcases/enc_flash_hal.c
+++ b/hw/drivers/flash/enc_flash/test/src/testcases/enc_flash_hal.c
@@ -17,... | 2 | 2 | 1 | [{"id": "G0", "claim": "The write/erase protection checks should test the bit with & instead of &=, since &= modifies the protected_flash array on every check (clearing other devices' protection bits), and the same mistake is repeated at the other uses of &= in the file.", "category": "correctness", "verdict": "support... | null |
apache__mynewt-core__1613 | apache/mynewt-core | 1,613 | defect | 5e81682d594b134619632d642bd1aaeb8b156d4f | 69784e235f74e4f1310b2f3967de6d443f5a3384 | Fix disconnect during OTA by spacing out erases | * Erasing the entire flash image size at once can take significant time, causing a bluetooth disconnect or significant battery sag. Instead, we erase immediately prior to crossing a sector while writing the image.
* We could check for empty to increase efficiency. However, for simplicity and consistency we will al... | diff --git a/mgmt/imgmgr/src/imgmgr.c b/mgmt/imgmgr/src/imgmgr.c
index 44943caefc..1cf8aff0cb 100644
--- a/mgmt/imgmgr/src/imgmgr.c
+++ b/mgmt/imgmgr/src/imgmgr.c
@@ -127,6 +127,11 @@ static struct {
/** Hash of image data; used for resumption of a partial upload. */
uint8_t data_sha_len;
uint8_t data_sh... | 3 | 3 | 1 | [{"id": "G0", "claim": "The `bool empty;` variable should be declared at the beginning of the function, either guarded by #ifdef there or accompanied by a `(void)empty;` so the compiler does not complain when it is unused.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}... | null |
apache__mynewt-core__1638 | apache/mynewt-core | 1,638 | defect | 489b115361559814a68bf7beaf3e36f869817a38 | a9bdbf7d38945a81ab24632446c979445c603d2a | [TRNG] Add K64F driver | Improvements to trng_test app and driver for K64F. | diff --git a/apps/trng_test/pkg.yml b/apps/trng_test/pkg.yml
index 1dbbafb4b3e..04a9c1dfe72 100644
--- a/apps/trng_test/pkg.yml
+++ b/apps/trng_test/pkg.yml
@@ -22,6 +22,9 @@ pkg.author: "Apache Mynewt <dev@mynewt.apache.org>"
pkg.homepage: "http://mynewt.apache.org/"
pkg.keywords:
+pkg.lflags:
+ - "-lm"
+
pkg.... | 8 | 6 | 3 | [{"id": "G0", "claim": "RNGA_GetRandomData's return value should probably be checked against kStatus_Success rather than 0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "There is a window between rng_cache_in being incremented and being checked aga... | null |
apache__mynewt-core__1670 | apache/mynewt-core | 1,670 | defect | 285d4140e38314a2adcf9abab62d10a60598a109 | e7ad0e254df4cb20a3665c952a4ca6e46558f749 | Implement low-power support in the LoRa stack | Use of timers in the LoRa stack has been split into critical and non-critial timers. Non-critical timers (such as retry delays) are now implemented using the os_cputime functions. The
os_cputime needs to be configured to use a lower power time in the BSP (such as is done by the BLE stack via the BLE_LP_CLOCK syscfg). ... | diff --git a/hw/drivers/lora/include/lora/utilities.h b/hw/drivers/lora/include/lora/utilities.h
index fa0b81f184..181dcbebdd 100644
--- a/hw/drivers/lora/include/lora/utilities.h
+++ b/hw/drivers/lora/include/lora/utilities.h
@@ -40,12 +40,4 @@ uint32_t timer_get_current_time(void);
*/
uint32_t timer_get_elapsed_ti... | 9 | 7 | 4 | [{"id": "G0", "claim": "timer_get_current_time() should return the raw os_cputime tick value via os_cputime_get32() directly, and the added ticks-to-usecs conversion should be removed.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out l... | null |
apache__mynewt-core__1680 | apache/mynewt-core | 1,680 | defect | 64d9c8b7aed68da2f3463a28ebe15ad3e1caffef | 1b252c064b291490fbb59456e00e0957be8c6fff | app/pwm_test improvements and pwm_nrf52 fixes | This PR brings pwm_shell and couple of fixes to pwm_nrf52 | diff --git a/hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c b/hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c
index 197cd727987..8c23d6a9e49 100644
--- a/hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c
+++ b/hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c
@@ -66,10 +66,9 @@ static struct nrf52_pwm_dev_global instances[] =
[0].cycle_handler ... | 3 | 1 | 1 | [{"id": "G0", "claim": "When the selected PWM instance is already in use, nrf52_pwm_open should return OS_EBUSY instead of OS_EINVAL.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The commit that fixes the easing library has an invalid commit-messa... | null |
apache__mynewt-core__1708 | apache/mynewt-core | 1,708 | defect | 2c15a47054f55c8ef04b6612ab3bba0dfbc2e959 | 3c07994dee04a349e909fbc794ddb1e78f8b955c | imgrmgr: dfu callback fixes | Added check for NULL imgmgr_dfu_callbacks_fn pointer
Added/renamed imgmgr callouts | diff --git a/mgmt/imgmgr/include/imgmgr/imgmgr.h b/mgmt/imgmgr/include/imgmgr/imgmgr.h
index d1cbb2f306..ff6c1f42b2 100644
--- a/mgmt/imgmgr/include/imgmgr/imgmgr.h
+++ b/mgmt/imgmgr/include/imgmgr/imgmgr.h
@@ -52,7 +52,8 @@ typedef struct
{
imgrmgr_dfu_cb dfu_started_cb;
imgrmgr_dfu_cb dfu_stopped_cb;
- ... | 3 | 2 | 0 | [{"id": "G0", "claim": "The added condition mixes two NULL-check styles in one statement (`!= NULL` for the callback and truthiness for the structure); a single style should be used.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since the if li... | null |
apache__mynewt-core__1715 | apache/mynewt-core | 1,715 | defect | 4d28fdb3cb54f05aaf7a8974ae28527864ad1664 | 56afaeab79a4066556f584d087f064f5250b3d31 | time/timepersist; allow user to persist device time. | This is to help platforms which don't have RTC retaining time over resets.
Offer 2 options initially, sys/config (works for all, remembers time from long time back) or nvreg (will work for some architectures).
| diff --git a/mgmt/newtmgr/nmgr_os/pkg.yml b/mgmt/newtmgr/nmgr_os/pkg.yml
index 074345c9f60..2fce7b0eaf9 100644
--- a/mgmt/newtmgr/nmgr_os/pkg.yml
+++ b/mgmt/newtmgr/nmgr_os/pkg.yml
@@ -34,5 +34,8 @@ pkg.deps:
pkg.deps.LOG_SOFT_RESET:
- "@apache-mynewt-core/sys/reboot"
+pkg.deps.TIMEPERSIST:
+ - "@apache-myne... | 2 | 1 | 0 | [{"id": "G0", "claim": "The #error guard against both persistence methods being enabled may be redundant now that the syscfg restriction already prevents that combination.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two mutually exclusive... | null |
apache__mynewt-core__1809 | apache/mynewt-core | 1,809 | defect | 5cbab54a14c9d5d9ebfa811b971f9b194d4db2f0 | 799bfcf01049dfc7132716b1d7c075df5e75458a | Shell newtmgr bridge | Implement a new newtmgr command: `shell exec`. This command allows shell commands to be executed via newtmgr.
This PR requires a sibling change to the newtmgr tool: https://github.com/apache/mynewt-newtmgr/pull/126 | diff --git a/encoding/tinycbor/include/tinycbor/cbor.h b/encoding/tinycbor/include/tinycbor/cbor.h
index ce45d5b22d3..9ef16c0046f 100644
--- a/encoding/tinycbor/include/tinycbor/cbor.h
+++ b/encoding/tinycbor/include/tinycbor/cbor.h
@@ -215,6 +215,7 @@ CBOR_INLINE_API CborError cbor_encode_double(CborEncoder *encoder, ... | 2 | 2 | 2 | [{"id": "G0", "claim": "streamer_mbuf_write() loses the specific error code returned by os_mbuf_append() (e.g. EINVAL for a NULL om) because it converts every failure to SYS_ENOMEM; the reviewer asks whether the code should just return the error code returned by os_mbuf_append().", "category": "correctness", "verdict":... | null |
apache__mynewt-core__1864 | apache/mynewt-core | 1,864 | defect | 6ccd2f07958a893fff83f521b450133c2c9fdb83 | 0a95da7702288544f1ab788792a6369f59c62628 | mgmt/imgmgr: Log image management events | This PR adds logging for four image management events.
It will be a nuisance to change the format of these log entries in the future, so we should try to get them right the first time. Please don't hold back in critiquing the log entry formats!
All events are CBOR-encoded:
```
upstart:
When: upon receivin... | diff --git a/mgmt/imgmgr/pkg.yml b/mgmt/imgmgr/pkg.yml
index a535fd59f0d..c3b8b40735c 100644
--- a/mgmt/imgmgr/pkg.yml
+++ b/mgmt/imgmgr/pkg.yml
@@ -28,6 +28,7 @@ pkg.deps:
- "@apache-mynewt-core/encoding/base64"
- "@apache-mynewt-core/mgmt/mgmt"
- "@apache-mynewt-core/sys/flash_map"
+ - "@apache-myne... | 2 | 2 | 1 | [{"id": "G0", "claim": "Replace the \"status\" key with \"rc\" (return code) in the logged image-management events, preferring shorter key names if possible.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "Move the imgr_read_info() call behind the is_last/st... | null |
apache__mynewt-core__1868 | apache/mynewt-core | 1,868 | defect | e4c46a7eaee5cc55ae786ed8b94d670b392c8211 | 7ffe5ea7c6d75d0d1cf4cbfd0dfd5a5edef63046 | hw/mcu/dialog: SNC | Sensor node controller API. This commit allows users to create
SNC programs using the macros in da1469x_snc.h and run them
either under software control or use the PDC to start them. Note
that PDC control of the SNC is not contained here; the PDC api
already contain all that is needed to have th... | diff --git a/hw/mcu/dialog/da1469x/hosttest/include/da1469x_test/da1469x_test.h b/hw/mcu/dialog/da1469x/hosttest/include/da1469x_test/da1469x_test.h
new file mode 100644
index 00000000000..60aff9666d1
--- /dev/null
+++ b/hw/mcu/dialog/da1469x/hosttest/include/da1469x_test/da1469x_test.h
@@ -0,0 +1,41 @@
+/*
+ * License... | 11 | 11 | 4 | [{"id": "G0", "claim": "SNC_RAM_BASE_ADDR hardcodes the RAM start address; it should use the existing RAM-start symbol from the linker file / the MCU_MEM_* definitions in mcu/mcu.h instead (reviewer notes it is not a big concern).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "intr... | null |
apache__mynewt-core__1943 | apache/mynewt-core | 1,943 | defect | d100f0703a1d5c9ae861053cedf765dc758b8dd1 | 5cddc1c442a53a30fab3834a3c23bdb24366fb47 | Add image hash optionally as part of log entry | - Add image hash optionally as part of log entry
- It is optional and only honored if the syscfg is set which would
in-turn set the flag
- Rename LOG_ENTRY_HDR_SIZE to LOG_BASE_ENTRY_HDR_SIZE
- Add settings for logging image hash
- Add some code in log_nmgr to return image hash
if LOG_FLAGS_IMAGE_HASH is enab... | diff --git a/boot/stub/include/bootutil/bootutil.h b/boot/stub/include/bootutil/bootutil.h
new file mode 100644
index 00000000000..4777e12a3f7
--- /dev/null
+++ b/boot/stub/include/bootutil/bootutil.h
@@ -0,0 +1,63 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agr... | 21 | 17 | 3 | [{"id": "G0", "claim": "Fix the typo 'bootlloader' in the boot/stub package description.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The boot stub functions boot_set_pending(), boot_set_confirmed() and split_go() should return SYS_ENOTSUP inste... | null |
apache__mynewt-core__1974 | apache/mynewt-core | 1,974 | defect | cded41d041afd2d04b336849eca2d7c5ed313f56 | b60b720ba6abe235baa0b4bb9dfdc594fddae322 | Logging to FCB2 | log_fcb_storage_info() nor watermarks yet working. | diff --git a/fs/fcb2/include/fcb/fcb.h b/fs/fcb2/include/fcb/fcb.h
index d48129768f..83b99fdbc7 100644
--- a/fs/fcb2/include/fcb/fcb.h
+++ b/fs/fcb2/include/fcb/fcb.h
@@ -124,7 +124,8 @@ struct fcb_log {
* loc as argument.
*/
int fcb_append(struct fcb *fcb, uint16_t len, struct fcb_entry *loc);
-int fcb_write(stru... | 8 | 7 | 4 | [{"id": "G0", "claim": "log_fcb2_start_append() assigns fcb->f_oldest, a field of FCB1's struct fcb that is not present in FCB2, so the FCB2 watermark build breaks.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "log_fcb2_registered() computes the wa... | null |
apache__mynewt-core__2073 | apache/mynewt-core | 2,073 | defect | d304399230e442cc4b820b3750784208ee49877b | 5339774d31a8c12c59ebc5b27acd1d41d4e46933 | sys/flash_map: Keep non-overlapping default areas | Prior to this PR, a device with a flash map in its manufacturing meta region (MMR) would completely ignore the default flash map hardcoded in a firmware image. The rationale was that changes to the default flash map should not cause devices in the field to lose data present in the affected flash areas.
This is reas... | diff --git a/sys/flash_map/include/flash_map/flash_map.h b/sys/flash_map/include/flash_map/flash_map.h
index 217cf5349a7..131bc3028ff 100644
--- a/sys/flash_map/include/flash_map/flash_map.h
+++ b/sys/flash_map/include/flash_map/flash_map.h
@@ -44,6 +44,8 @@ extern "C" {
#include <stdbool.h>
#include <inttypes.h>
+... | 2 | 2 | 2 | [{"id": "G0", "claim": "The first condition in flash_map_area_overlaps should use `>` instead of `>=`: since `end` is one past the area's last byte, two areas where one's end equals the other's offset are adjacent but not overlapping, so the check wrongly reports an overlap.", "category": "correctness", "verdict": "sup... | null |
apache__mynewt-core__2075 | apache/mynewt-core | 2,075 | defect | 75c151e17d2df0b740f95926f2d6a729b272b7ae | deb7e3ffba7b9463e3fb475b0b12e0fd8bba5586 | kernel/os: Add os_mbuf_pack_chains | This commit adds a new API for mbuf handling called os_mbuf_pack_chains.
This API, given two mbuf chains, will concatenate them and copy data
as needed so that each mbuf fully utilizes the data buffer in each mbuf.
Unused mbufs are discarded. This API sacrifices speed for memory and
may cause a lot of copying to oc... | diff --git a/kernel/os/include/os/os_mbuf.h b/kernel/os/include/os/os_mbuf.h
index 40dc16aad4..53a16c5d27 100644
--- a/kernel/os/include/os/os_mbuf.h
+++ b/kernel/os/include/os/os_mbuf.h
@@ -644,6 +644,26 @@ struct os_mbuf *os_mbuf_trim_front(struct os_mbuf *om);
*/
int os_mbuf_widen(struct os_mbuf *om, uint16_t off... | 4 | 1 | 0 | [{"id": "G0", "claim": "The naming of length variables is inconsistent: rem_len uses a snake_case separator while copylen does not.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The loop condition mixes styles compared to other cases, which com... | null |
apache__mynewt-core__2300 | apache/mynewt-core | 2,300 | defect | 869c322312ed4a1f12dc808a074c031c09244bcb | 55991d5d306c2b5df7125a706a5478cab549d673 | TCP/IPv4 adaptor for CoAP | This transport uses mn_sockets.
Unlike other transports, this one does not listen for new connections on its own. Instead, the application needs to populate the transport with connections to be managed using oc_tcp4_add_conn(). There are a few too many parameters that need to be specified when listening for TCP co... | diff --git a/net/oic/include/oic/oc_api.h b/net/oic/include/oic/oc_api.h
index 12a20eb3969..6e5898119a2 100644
--- a/net/oic/include/oic/oc_api.h
+++ b/net/oic/include/oic/oc_api.h
@@ -127,12 +127,24 @@ int oc_notify_observers(oc_resource_t *resource);
bool oc_do_ip_discovery(const char *rt, oc_discovery_cb_t handler)... | 5 | 4 | 1 | [{"id": "G0", "claim": "The CI failure is most probably caused by a style-check issue, which should be fixed.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The response-handling block added in coap_receive indents the OC_SERVER code with more s... | null |
apache__mynewt-core__2359 | apache/mynewt-core | 2,359 | defect | b23f5393fc06c08748a65daf630aea2f50bdd3b2 | 49c93d408154ae3fb5161fba78a429caffae397d | hw/mcu/dialog: Add all reset reason checks | Adding all checks for reboot reasons per da1469x ds. | diff --git a/hw/hal/include/hal/hal_system.h b/hw/hal/include/hal/hal_system.h
index fa0255a68c3..994ded88110 100644
--- a/hw/hal/include/hal/hal_system.h
+++ b/hw/hal/include/hal/hal_system.h
@@ -72,6 +72,10 @@ enum hal_reset_reason {
HAL_RESET_SYS_OFF_INT = 7,
/** Restart due to DFU */
HAL_RESET_DFU = ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The common HAL system header should not grow MCU-specific reset-reason symbols; MCU-specific reasons (e.g. the CMAC watchdog) should be mapped onto an existing value or represented via a generic HAL_RESET_OTHER-style mechanism instead.", "category": "design", "verdict": "supported", "priority": ... | null |
apache__mynewt-core__2433 | apache/mynewt-core | 2,433 | defect | f2eb3d33dd789b91c056333daac27fd82f6b670a | 0316f442ac31c83afa6d84d671bce0833ab15344 | remove OS_TICKS_PER_SEC from syscfg when not needed | Button and native sockets had some time values that measured in ticks
but value used indicated that normal time values could be applied.
syscfg values were updated to be more natural for human the machine. | diff --git a/hw/util/button/src/button.c b/hw/util/button/src/button.c
index 2744b1cb850..70ef467fd0f 100644
--- a/hw/util/button/src/button.c
+++ b/hw/util/button/src/button.c
@@ -370,14 +370,14 @@ button_exec_fsm(button_t *button, int action)
do_pressed:
#if MYNEWT_VAL(BUTTON_USE_LONG)
if (button->mode & BUTT... | 1 | 1 | 1 | [{"id": "G0", "claim": "Use `os_time_ms_to_ticks32` instead of the manual `MYNEWT_VAL(BUTTON_LONGHOLD_TIME_MS) * OS_TICKS_PER_SEC / 1000` conversion when resetting the callout.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__mynewt-core__2436 | apache/mynewt-core | 2,436 | defect | e6bc2c39b2069815dba9d5fbfd6ea44d955f9fff | de69a574c1618d329f686906088eb03e28cf8bfe | Add da1469x uart driver | Driver that shuts down UART when RX line goes down.
Uses de-bouncing to wait for RX line to be stable high again before
re-enabling UART.
| diff --git a/hw/drivers/uart/uart_da1469x/include/uart_da1469x/uart_da1469x.h b/hw/drivers/uart/uart_da1469x/include/uart_da1469x/uart_da1469x.h
new file mode 100644
index 00000000000..73602075c62
--- /dev/null
+++ b/hw/drivers/uart/uart_da1469x/include/uart_da1469x/uart_da1469x.h
@@ -0,0 +1,70 @@
+/*
+ * Licensed to t... | 4 | 2 | 0 | [{"id": "G0", "claim": "The definitions of the da1469x_uartX_hw structures and the da1469x_devX pointers should be wrapped in MYNEWT_VAL(UART_X) conditionals.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The baudrate calculation should perhaps use the sy... | null |
apache__mynewt-core__2494 | apache/mynewt-core | 2,494 | defect | 804035c8f6a1856d5f99c051058c353cb45afdba | ac96ed1b87f8b697c84b657145cf640f7cb1cfa9 | Fix STM32 HASH stream support | apps: hash_test: add single byte multi-write test - Expand string stream test to also run on SHA-224 (when available). Add new single byte multi-write test, where a single "a" is written 257 (because odd numbers are good!) times, running on both SHA-224 and SHA-256 (where available).
hw: drivers: hash_stm32: fix str... | diff --git a/apps/hash_test/src/main.c b/apps/hash_test/src/main.c
index 9366c4061c7..86cb6e09e61 100755
--- a/apps/hash_test/src/main.c
+++ b/apps/hash_test/src/main.c
@@ -210,19 +210,21 @@ run_stream_test(struct hash_dev *hash)
uint8_t outbuf[HASH_MAX_DIGEST_LEN];
struct hash_generic_context ctx;
struc... | 1 | 1 | 0 | [{"id": "G0", "claim": "In the bytewrite test loop, add a space around '/' (i.e. \"sizeof bytewrites / sizeof bytewrites[0]\", expected to be caught by the style check) and use the ARRAY_SIZE macro from os/kernel/util.h instead of the manual sizeof division.", "category": "maintainability", "verdict": "supported", "pri... | null |
apache__mynewt-core__2501 | apache/mynewt-core | 2,501 | defect | a1f8dfcfd1b731b1eeed500ec560e2585bc794c7 | 5004aa56d6d458d3820fa740ecedc9791528f17d | hw: handle hal_spi_enable/disable errors | hal_spi_enable/disable errors were handled, but not everywhere. This
unifies handling manner. | diff --git a/hw/drivers/flash/at45db/src/at45db.c b/hw/drivers/flash/at45db/src/at45db.c
index 14e1d73e33..bba09ba2b4 100644
--- a/hw/drivers/flash/at45db/src/at45db.c
+++ b/hw/drivers/flash/at45db/src/at45db.c
@@ -446,7 +446,10 @@ at45db_init(const struct hal_flash *hal_flash_dev)
}
hal_spi_set_txrx_cb(dev... | 1 | 1 | 0 | [{"id": "G0", "claim": "at45db_init should return rc from hal_spi_enable directly instead of wrapping it in an if (rc) block, since there is nothing to do after the check.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__mynewt-core__2511 | apache/mynewt-core | 2,511 | defect | 719760c745e2dc1edaba8bd8f448a4903d5fadb9 | fecd66f6556a0f27dddda8f209349c1725c43ea1 | Replace strtok with strtok_r | strtok is not thread safe.
Fixes #2510 | diff --git a/apps/pwm_test/src/pwm_shell.c b/apps/pwm_test/src/pwm_shell.c
index e0e859fb363..d273a9da1c9 100644
--- a/apps/pwm_test/src/pwm_shell.c
+++ b/apps/pwm_test/src/pwm_shell.c
@@ -102,14 +102,15 @@ cmd_test_suite(int argc, char **argv)
int pin = -1;
int i;
struct pwm_dev *pwm_dev;
+ char *tok... | 1 | 1 | 0 | [{"id": "G0", "claim": "In bno055_shell.c's sensor-offset parsing, pass NULL instead of 0 as the strtok_r continue argument.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
apache__mynewt-core__2627 | apache/mynewt-core | 2,627 | defect | 8c153b11290b752fdb95959b8eed48c2ce44b3e4 | c6967d828851b0574bd5c831c016500938ab210d | ipc nrf5340 flash | This adds driver to read and write flash across core domains.
APP core can for example read net core crash dump flash area.
To use this setup bsp.yml file have to have flash area from flash device 2.
This changes priority of syscfg init for flash_map to be executed after IPC.
IPC flash driver uses 2 IPC channel... | diff --git a/hw/bsp/nordic_pca10095/pkg.yml b/hw/bsp/nordic_pca10095/pkg.yml
index aae84025a6..7d73ca45cf 100644
--- a/hw/bsp/nordic_pca10095/pkg.yml
+++ b/hw/bsp/nordic_pca10095/pkg.yml
@@ -38,5 +38,8 @@ pkg.deps:
- "@apache-mynewt-core/libc/baselibc"
- "@apache-mynewt-core/sys/flash_map"
+pkg.deps.BSP_NRF... | 3 | 1 | 1 | [{"id": "G0", "claim": "The CI build fails: hw/drivers/flash/ipc_nrf5340_flash/src/ipc_nrf5340_flash.c cannot find ipc_nrf5340/ipc_nrf5340.h, so the new driver package is missing the include path for the ipc_nrf5340 package.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, ... | null |
apache__mynewt-core__2638 | apache/mynewt-core | 2,638 | defect | 52d57cc41e8ee9114a3917800c8e18c1f83fffc8 | dafbdd6dedb3d8c8651ef553474b0d45efce8f22 | i2c scan for bus driver usage | This introduces additional i2c bus driver function to probe bus for
specific address.
nrf5x, da1469x and hal drivers were updated to allow this functionality.
i2c_scan package can now be used with bus driver. | diff --git a/hw/bus/drivers/i2c_common/include/bus/drivers/i2c_common.h b/hw/bus/drivers/i2c_common/include/bus/drivers/i2c_common.h
index 9f70123be6b..e7fa161d4c4 100644
--- a/hw/bus/drivers/i2c_common/include/bus/drivers/i2c_common.h
+++ b/hw/bus/drivers/i2c_common/include/bus/drivers/i2c_common.h
@@ -90,6 +90,11 @@ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "i2c_da1469x_probe returns a mix of OS_ errors (straight from os_mutex_pend) and SYS_ errors (SYS_ENOENT), and this mixing seems to appear in more functions too, though the reviewer is not sure it really matters.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int... | null |
apache__mynewt-core__2711 | apache/mynewt-core | 2,711 | defect | a5f994ce192ef11c8cec877bcb44fa8b0498cb27 | 47aba2a9f4cd4096b570e4341d1cbb69d8c9a145 | mcu/nrf5340: Add RAM location check to calls using easyDMA | Add checks to confirm that the buffer points to a location in RAM given that easyDMA can only access RAM locations | diff --git a/hw/bus/drivers/i2c_nrf5340/src/i2c_nrf5340.c b/hw/bus/drivers/i2c_nrf5340/src/i2c_nrf5340.c
index a3b9c45a8e..78e2e10460 100644
--- a/hw/bus/drivers/i2c_nrf5340/src/i2c_nrf5340.c
+++ b/hw/bus/drivers/i2c_nrf5340/src/i2c_nrf5340.c
@@ -254,6 +254,10 @@ bus_i2c_nrf5340_read(struct bus_dev *bdev, struct bus_no... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new ram-check branch returns SYS_EINVAL while the branch right above it returns EINVAL for a similar reason, and the error codes should be unified.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__mynewt-core__2718 | apache/mynewt-core | 2,718 | defect | f826e7e7cc0cb891067c0864292dc08bfa18ca85 | f0abf450c45f0542141fe1601a092fee00d9fa55 | Fix nrf534 ipc with old boot | IPC and virtual flash configuration was changed to be TrustZone non-secure friendly.
Those modification broke compatibility with existing net core bootloader.
This restores compatibility with old bootloader.
To enable old bootloader compatibility app core application have to be compiled with
`IPC_NRF5340_PRE_TRUS... | diff --git a/hw/bsp/nordic_pca10095/syscfg.yml b/hw/bsp/nordic_pca10095/syscfg.yml
index 5b95116cf92..834a75615e0 100644
--- a/hw/bsp/nordic_pca10095/syscfg.yml
+++ b/hw/bsp/nordic_pca10095/syscfg.yml
@@ -107,6 +107,8 @@ syscfg.vals.BSP_NRF5340_NET_ENABLE:
syscfg.vals.BSP_NRF5340_NET_FLASH_ENABLE:
IPC_NRF5340_CHA... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new '!IPC_NRF5340_PRE_TRUSTZONE_NETCORE_BOOT || MCU_APP_SECURE' restriction would be hit whenever IPC_NRF5340_PRE_TRUSTZONE_NETCORE_BOOT is set to 1, because MCU_APP_SECURE is undefined on the net core side.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int... | null |
apache__mynewt-core__3391 | apache/mynewt-core | 3,391 | defect | 165790ffc6fe2545fa168e23966183cebfd5b318 | 7143cafd91615a452297312b383fec08de6ab3a5 | crypto/mbedtls: Add unit test for mynewt GCM | This adds unit test for additional mynewt GCM related APIs | diff --git a/crypto/mbedtls/selftest/src/mbedtls_test.c b/crypto/mbedtls/selftest/src/mbedtls_test.c
index f746cc86621..6928c5cee85 100644
--- a/crypto/mbedtls/selftest/src/mbedtls_test.c
+++ b/crypto/mbedtls/selftest/src/mbedtls_test.c
@@ -85,6 +85,7 @@ TEST_CASE_DECL(sha512_test)
TEST_CASE_DECL(timing_test)
TEST_CA... | 2 | 1 | 0 | [{"id": "G0", "claim": "The `out:` label in gcm_mynewt_test.c should be at top level (no indentation) for visibility.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should cover apache/mynewt-core issue 2836, which tracks unit tests for ... | null |
apache__mynewt-core__3400 | apache/mynewt-core | 3,400 | defect | 89ba023f86d9f2b104da7c24c05c71f7ebff2ad9 | b594e7f741c0d52bc5334fc3cc3ffd1cd972e78e | sys/log, fs/fcb: Add support for trailers per entry in logs for fcb | - Trailer callbacks can be enabled using
LOG_FLAGS_TRAILER_SUPPORT.
- This is needed since we cannot update the log header
without breaking backwards compatibility
- Adding a trailer keeps the log header in place and the entry
intact. On an upgrade or downgrade, log entries are still
readable.
- Trailer ... | diff --git a/fs/fcb2/include/fcb/fcb2.h b/fs/fcb2/include/fcb/fcb2.h
index e089fccbce5..2f0c7209028 100644
--- a/fs/fcb2/include/fcb/fcb2.h
+++ b/fs/fcb2/include/fcb/fcb2.h
@@ -304,6 +304,15 @@ int fcb2_clear(struct fcb2 *fcb);
*/
int fcb2_area_info(struct fcb2 *fcb, int sector, int *elemsp, int *bytesp);
+/**
+ *... | 12 | 11 | 7 | [{"id": "G0", "claim": "The new trailer callback API is unusable as written: nothing explains how to use the callbacks (trailer_len vs trailer_data_len, the purpose of trailer_reset_data, how append callbacks should be handled), and log_trailer_data_len does not seem to be used anywhere.", "category": "design", "verdic... | null |
apache__mynewt-core__3530 | apache/mynewt-core | 3,530 | defect | a52f35795c5a51bc0ae5ca1395510e34e9e57cc7 | acedf5a0daf9c9b28333a2857ab792c5c30d03ee | sys/log: add format attribute to modlog_printf prototype | Add format(printf) attribute to modlog_printf to enable compile-time checking that format strings match arguments.
Note that this will cause incorrect modlog_printf usage which previously compiled successfully, to no longer compile. | diff --git a/net/oic/src/port/mynewt/ip_adaptor.c b/net/oic/src/port/mynewt/ip_adaptor.c
index 847ca746d55..d436ac65d3e 100644
--- a/net/oic/src/port/mynewt/ip_adaptor.c
+++ b/net/oic/src/port/mynewt/ip_adaptor.c
@@ -20,6 +20,7 @@
#include <assert.h>
#include <string.h>
#include <stdint.h>
+#include <inttypes.h>
... | 3 | 2 | 1 | [{"id": "G0", "claim": "The PRI macro syntax leads to inconsistent print formatting (e.g. no PRIu16 used for omp_len), so use %u with an explicit (unsigned int) cast of msin6_scope_id instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since modlog.h... | null |
apache__mynewt-core__3568 | apache/mynewt-core | 3,568 | defect | 64af870f2c5b07669afc86031644c78687db9669 | c022974113c57f5ae19c1bf844822e608382198d | test/automated: PWM duty cycle verification test using GPIO loopback | Add test that verifies PWM duty cycle accuracy by sampling the
output pin via GPIO reads. The test uses a timer to sample GPIO state
and calculates measured duty cycle from high versus total samples.
Each test configures PWM duty, collects samples via timer callback,
and validates measured duty falls within t... | diff --git a/test/mtest/mtest/include/mtest/mtest.h b/test/mtest/mtest/include/mtest/mtest.h
new file mode 100644
index 00000000000..04a476f152c
--- /dev/null
+++ b/test/mtest/mtest/include/mtest/mtest.h
@@ -0,0 +1,124 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor licens... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new function definitions should declare an explicit parameter list: pwm_init(void) instead of pwm_init(), and likewise timer_cb should take an explicit parameter list instead of an empty one.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
apache__mynewt-core__3585 | apache/mynewt-core | 3,585 | defect | 9db149feadda24d0e51036793be6d88b4432dc64 | 5cd119f25cca2981ea745b0f44eea61498e44b75 | test/automated: Add cputime_timer vs callout timing accuracy test | This test measures the timing drift between the hardware cputime timer and the OS callout mechanism | diff --git a/test/automated/cputimer_test/include/cputimer_test/cputimer_test.h b/test/automated/cputimer_test/include/cputimer_test/cputimer_test.h
new file mode 100644
index 00000000000..6a653544a9a
--- /dev/null
+++ b/test/automated/cputimer_test/include/cputimer_test/cputimer_test.h
@@ -0,0 +1,56 @@
+/**
+ * Licens... | 2 | 1 | 0 | [{"id": "G0", "claim": "Functions such as mtest_suite_complete() (and the following ones) should take an explicit empty parameter list, i.e. be written as mtest_suite_complete(void).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The mtest_priv.... | null |
apache__mynewt-core__3589 | apache/mynewt-core | 3,589 | defect | 9db149feadda24d0e51036793be6d88b4432dc64 | 8fb124204d35081755e528cdda7e35b5fe883ea0 | test/automated: Add LED GPIO loopback test application | This test verifies GPIO functionality by writing to LED_BLINK_PIN and checking the state on LED_READ_PIN.
Test requires a physical loopback connection between LED_BLINK_PIN and LED_READ_PIN. | diff --git a/test/automated/blinky_test/include/blinky_test/blinky_test.h b/test/automated/blinky_test/include/blinky_test/blinky_test.h
new file mode 100644
index 00000000000..4c6cd54ff01
--- /dev/null
+++ b/test/automated/blinky_test/include/blinky_test/blinky_test.h
@@ -0,0 +1,36 @@
+/**
+ * Licensed to the Apache S... | 4 | 4 | 0 | [{"id": "G0", "claim": "In the blinky test cases, variables should be declared at the top of the function rather than mid-function.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Functions with no parameters shall be declared with (void) instead... | null |
apache__mynewt-nimble__1001 | apache/mynewt-nimble | 1,001 | defect | d0f0cad655d2568400d524f371f8073cc5549340 | f5b1628e9cb965efc0f56e60b8e99473611d2035 | host/l2cap: send command reject in L2CAP disc req for invalid CID | If ble_hs_conn_chan_find_by_scid fails to find channel, it means
that destination CID in L2CAP Disconnection Request is invalid.
Send L2CAP_COMMAND_REJECT_RSP with BLE_L2CAP_SIG_ERR_INVALID_CID
reason.
This is affecting L2CAP/LE/CFC/BV-23-C | diff --git a/nimble/host/src/ble_l2cap_sig.c b/nimble/host/src/ble_l2cap_sig.c
index aaf9c642a4..375713daab 100644
--- a/nimble/host/src/ble_l2cap_sig.c
+++ b/nimble/host/src/ble_l2cap_sig.c
@@ -1543,6 +1543,7 @@ ble_l2cap_sig_disc_req_rx(uint16_t conn_handle, struct ble_l2cap_sig_hdr *hdr,
if (!chan || (le16toh(r... | 2 | 2 | 2 | [{"id": "G0", "claim": "Per the Bluetooth spec, the L2CAP disconnect request handler should send L2CAP_COMMAND_REJECT_RSP with 'invalid CID' only when the DCID is not recognized, and silently discard the request when the DCID matches but the SCID does not, whereas the added code sends the reject in both cases.", "categ... | null |
apache__mynewt-nimble__1012 | apache/mynewt-nimble | 1,012 | defect | 14acdf165829126f4af2007db37980ffa2fe4750 | f667f0aec2c03ad7bc1de485c4bf4e03c2022a90 | nimble/host: Sync sending Host Number of Completed Packets command | Host Number of Completed Packets command is special as it doesn't
generate status event and thus is not send with ble_hs_hci_cmd_tx.
We should stil sync sending it with ble_hs_hci_cmd_tx() though to
avoid requesting more than one command buffer from HCI transport
(which may not be able to provide more). | diff --git a/nimble/host/src/ble_hs_flow.c b/nimble/host/src/ble_hs_flow.c
index 2520c85415..8ce9c10295 100644
--- a/nimble/host/src/ble_hs_flow.c
+++ b/nimble/host/src/ble_hs_flow.c
@@ -91,11 +91,17 @@ ble_hs_flow_tx_num_comp_pkts(void)
/* The host-number-of-completed-packets command does not elicit a
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a ble_hs_hci_cmd_tx_no_rsp() helper so that ble_hs_hci_lock/ble_hs_hci_unlock can remain static inside ble_hs_hci.c instead of being exported for use by ble_hs_flow.c.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__mynewt-nimble__1013 | apache/mynewt-nimble | 1,013 | defect | 7c581b0734406fd1ed698a11e54c69940b01ed5e | 323d3f5d4ce55b56918ed092d9ad8e89d753f0a4 | Change GATT notify/indicate from gattc to gatts | GATT notify/indicate are functions of GATTS, so we should change `ble_gattc_notify`/`ble_gattc_indicate` to `ble_gatts_notify`/`ble_gatts_indicate` | diff --git a/apps/blecsc/src/gatt_svr.c b/apps/blecsc/src/gatt_svr.c
index e66aa9a8b0..0c178c0ca7 100644
--- a/apps/blecsc/src/gatt_svr.c
+++ b/apps/blecsc/src/gatt_svr.c
@@ -264,7 +264,7 @@ gatt_svr_chr_access_sc_control_point(uint16_t conn_handle,
}
#endif
- rc = ble_gattc_indicate_custom(conn_handle, csc_... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR should keep the API compatible by adding deprecated wrapper functions for all the public API it renamed in gatt.h (e.g. ble_gattc_notify_custom delegating to ble_gatts_notify_custom), which were dropped in the latest rebase, causing a build failure.", "category": "design", "verdict": "sup... | null |
apache__mynewt-nimble__1033 | apache/mynewt-nimble | 1,033 | defect | 5b93f6945a7761c39a1cab3bc0fad727a9635332 | 99d0b7fa2b043d6b318236bdc111182e00ca2074 | apps/bttester: implement NRPA rotation | As per CORE v5.3, Vol 3, Part C 10.7.1 NRPA should also rotate, same
as RPA is doing right now. For time beeing let's implement this in
tester application, before it's implemented in host.
This affects GAP/BROB/BCST/BV-04-C | diff --git a/apps/bttester/src/gap.c b/apps/bttester/src/gap.c
index acac9989f0..b14052dbe3 100644
--- a/apps/bttester/src/gap.c
+++ b/apps/bttester/src/gap.c
@@ -63,6 +63,10 @@ static struct os_callout connected_ev_co;
static struct gap_device_connected_ev connected_ev;
#define CONNECTED_EV_DELAY_MS(itvl) 8 * BLE_HC... | 2 | 2 | 1 | [{"id": "G0", "claim": "bttester does not use npl, so the new code should not use npl time APIs (ble_npl_time_t / ble_npl_time_get).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The assert(ev != NULL) at the top of rotate_nrpa_cb is not needed and shou... | null |
apache__mynewt-nimble__1120 | apache/mynewt-nimble | 1,120 | defect | bc142016bdef082ba7997aea09aec1c1e4db0104 | 097a21bda675a9b4905e5acfed13f9a53936b817 | host/mesh: fix clients array indexing in proxy_srv | find_client() should return client from clients[conn_handle - 1],
as connection handles are counted from 1, but arrays are indexed from 0.
This will make sure we use all possible connections, and not leave first
element of clients[] as NULL. | diff --git a/nimble/host/mesh/src/proxy_srv.c b/nimble/host/mesh/src/proxy_srv.c
index dcbabfa296..8550623e6c 100644
--- a/nimble/host/mesh/src/proxy_srv.c
+++ b/nimble/host/mesh/src/proxy_srv.c
@@ -62,7 +62,7 @@ static int conn_count;
struct bt_mesh_proxy_client *find_client(uint16_t conn_handle)
{
- return &clien... | 1 | 1 | 1 | [{"id": "G0", "claim": "The conn_handle-1 clients array mapping makes assumptions about valid connection handle values, and the right way is to keep the handle in struct bt_mesh_proxy_client and make no assumptions on its value.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
apache__mynewt-nimble__115 | apache/mynewt-nimble | 115 | defect | 86452a4d4fe7adfdf4bad69e2c53d33cbc123bd2 | 43a14e76b82c6d890431e71cedc94e41398eb10a | debug: Add missing debug logs for LE Meta Events | This adds debug logs for LE Meta Events.
Those are not too heavy to limit the console output.
@sjanc @rymanluk | diff --git a/nimble/host/src/ble_hs_dbg.c b/nimble/host/src/ble_hs_dbg.c
index a71d8bdde4..cd691942de 100644
--- a/nimble/host/src/ble_hs_dbg.c
+++ b/nimble/host/src/ble_hs_dbg.c
@@ -149,6 +149,184 @@ ble_hs_dbg_le_event_disp(uint8_t subev, uint8_t len, uint8_t *evdata)
get_le16(evdata + 1), evd... | 1 | 1 | 1 | [{"id": "G0", "claim": "In the LE Extended Advertising Report case, the loop advances params by 1 instead of adjusting with adv_data_len, so params += 1 is not correct here.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__mynewt-nimble__1160 | apache/mynewt-nimble | 1,160 | defect | 23f22953c859a5c1dc594e506060a657cf3c1e3d | 65e747c9e011c3dcac0682d25e304f8d25fa09e5 | nimble/transport/cmac: Flush UART on CMAC error | When CMAC is used with HCI bridge over UART we should wait for all
data to be flushed from UART before asserting on error, otherwise we
will lose debug events. | diff --git a/nimble/transport/dialog_cmac/cmac_driver/src/cmac_host.c b/nimble/transport/dialog_cmac/cmac_driver/src/cmac_host.c
index df81c582bb..637fa5e971 100644
--- a/nimble/transport/dialog_cmac/cmac_driver/src/cmac_host.c
+++ b/nimble/transport/dialog_cmac/cmac_driver/src/cmac_host.c
@@ -65,6 +65,13 @@ static str... | 2 | 2 | 0 | [{"id": "G0", "claim": "In the regs array declaration, the const qualifier should be placed before the name (making the elements const pointers), i.e. `static UART_Type * const regs[]` instead of `static const UART_Type *regs[]`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "intro... | null |
apache__mynewt-nimble__1200 | apache/mynewt-nimble | 1,200 | defect | a59d9a4416d2471330936d31cb92fb8cf3ea6982 | 9cc3001b63979ccf19b735bd90d4fa783c85c35b | nimble/transport: Refactor HCI transport | This is a huge refactor of HCI transport ot make it - hopefully - easier to maintain and configure.
There's now common code that manages cmd/evt/ACL pools, no need to do this is each transport separately.
HS and LL no longer use callbacks to register to transport, instead there are dedicated APIs which they use and... | diff --git a/nimble/transport/common/hci_h4/include/nimble/transport/hci_h4.h b/nimble/transport/common/hci_h4/include/nimble/transport/hci_h4.h
new file mode 100644
index 0000000000..139160a545
--- /dev/null
+++ b/nimble/transport/common/hci_h4/include/nimble/transport/hci_h4.h
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the... | 3 | 3 | 0 | [{"id": "G0", "claim": "Use the existing min() from os/os.h instead of defining a local MIN macro in hci_h4.c.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A stray debug variable (`int andk;`) is left in the new hci_h4.c and should be removed.... | null |
apache__mynewt-nimble__1224 | apache/mynewt-nimble | 1,224 | defect | 30ba351a6ed6ab800f4d2dbc9be99795b0be107e | d6d1586d89a3bdd10efd611b1fdf39acee167cf6 | nimble/host: Add HCI commands / events for LE Power control | LE Power control is BT 5.2 feature. Added support for HCI commands / events for host to controller communication | diff --git a/nimble/host/include/host/ble_gap.h b/nimble/host/include/host/ble_gap.h
index 63ae900da5..cd42d0f811 100644
--- a/nimble/host/include/host/ble_gap.h
+++ b/nimble/host/include/host/ble_gap.h
@@ -135,6 +135,8 @@ struct hci_conn_update;
#define BLE_GAP_EVENT_PERIODIC_SYNC_LOST 22
#define BLE_GAP_EVENT_SC... | 4 | 3 | 1 | [{"id": "G0", "claim": "The new GAP event structs should be documented like the other events, including a description of what the event is about and which event type uses which union member.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new p... | null |
apache__mynewt-nimble__137 | apache/mynewt-nimble | 137 | defect | ab1029a1c13d85b11f7555bb79aeb6f771c8db1e | ff78a6557773f8571427d64a3a4d5341068674c3 | porting: Use real function pointer types for ISR functions | It appears the only reason `uint32_t` was used, was because of the CMSIS `NVIC_SetVector` function which takes an address as an `uint32_t`. Clean this up for the porting layer.
To be honest, casting to `uint32_t` seems very non-portable to me so using function pointers directly should be better for the future.
No... | diff --git a/nimble/drivers/nrf52/src/ble_hw.c b/nimble/drivers/nrf52/src/ble_hw.c
index ea0c912ca4..a32e665d5c 100644
--- a/nimble/drivers/nrf52/src/ble_hw.c
+++ b/nimble/drivers/nrf52/src/ble_hw.c
@@ -334,7 +334,7 @@ ble_hw_rng_init(ble_rng_isr_cb_t cb, int bias)
#if MYNEWT
NVIC_SetVector(RNG_IRQn, (uint32_... | 1 | 1 | 1 | [{"id": "G0", "claim": "The function-pointer declarators introduced by this pull request use empty parameter lists `()` instead of `(void)` (the `ble_npl_hw_set_isr` prototype and definition, and the static `radio_isr_addr`/`rng_isr_addr`/`rtc0_isr_addr` variables), which triggers `[-Werror=strict-prototypes]` when bui... | null |
apache__mynewt-nimble__1396 | apache/mynewt-nimble | 1,396 | defect | bcd55dde825e61e0957876de82a2ec131fea55a2 | ee511b2b6a1e920e1feb85fd597451b393f9fc53 | nimble/host: Add host callback to provide security keys | Application can use new callback to generate keys for new pairing prior to keys distribution. This allows keys to be derived from some other source (e.g. as in Vol 3, Part H, appendix B) instead of just being randomized. | diff --git a/nimble/host/include/host/ble_hs.h b/nimble/host/include/host/ble_hs.h
index e1dff5e006..18a2b64bbe 100644
--- a/nimble/host/include/host/ble_hs.h
+++ b/nimble/host/include/host/ble_hs.h
@@ -276,6 +276,9 @@ struct ble_hs_cfg {
*/
ble_hs_sync_fn *sync_cb;
+ /** Callback to handle generation o... | 3 | 3 | 0 | [{"id": "G0", "claim": "Make ble_store_keys hold its key fields (ltk_periph/irk/csrk) in a union instead of as separate struct members.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The key-generation callback should take a single key instead of a keys_... | null |
apache__mynewt-nimble__1469 | apache/mynewt-nimble | 1,469 | defect | d7eb050cfe32c25b76441a15886b3e02a2d2c779 | 5c8218fe7decbd550ebea3d26eb311eecb9ee2b6 | nimble/host: Add connection handle related GAP APIs | This adds two new GAP APIs:
void ble_gap_conn_foreach_handle(ble_gap_conn_foreach_handle_fn *cb, void *arg)
API can be used to call function declared by the user for every connection that is currently established. As arguments, it takes a pointer to the function, that will be called and a void pointer, whic... | diff --git a/nimble/host/include/host/ble_gap.h b/nimble/host/include/host/ble_gap.h
index 47a1d5647d..5ee7e6a81e 100644
--- a/nimble/host/include/host/ble_gap.h
+++ b/nimble/host/include/host/ble_gap.h
@@ -1090,6 +1090,7 @@ struct ble_gap_event {
};
typedef int ble_gap_event_fn(struct ble_gap_event *event, void *a... | 1 | 1 | 1 | [{"id": "G0", "claim": "ble_gap_conn_find_handle_by_addr must check that conn is not NULL before dereferencing conn->bhc_handle, since ble_hs_conn_find_by_addr can return NULL.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
apache__mynewt-nimble__1635 | apache/mynewt-nimble | 1,635 | defect | 861877636c77ba215e7de0abbb4c4c7ae4961fab | 292cc257ffc3c4c2ff098a43c760f0db7399ddad | host/sm: Add CSIS SIRK encryption | This adds functions and algorithms to encrypt and decrypt SIRK from Coordinated Set Identification Service.
This also adds API to resolve RSI. Application can use it to find devices that are part of Coordinated Set. | diff --git a/nimble/host/include/host/ble_sm.h b/nimble/host/include/host/ble_sm.h
index ff381cf25b..1905d6d764 100644
--- a/nimble/host/include/host/ble_sm.h
+++ b/nimble/host/include/host/ble_sm.h
@@ -22,6 +22,8 @@
#include <inttypes.h>
#include "syscfg/syscfg.h"
+#include <stdbool.h>
+#include "nimble/ble.h"
... | 8 | 8 | 3 | [{"id": "G0", "claim": "Move the CSIS SIRK code out of ble_sm.c into a new ble_sm_csis.c file and gate it behind a new dedicated BLE_SM_CSIS_SIRK setting instead of BLE_SM_SC, also marking the syscfg setting as experimental since it may be renamed or relocated later with the addition of LE audio code.", "category": "de... | null |
apache__mynewt-nimble__1660 | apache/mynewt-nimble | 1,660 | defect | cfe8b1be5dcca3e2a956534e862c1455d6745c86 | bb877555eee9cffd86878305747f8ea9539cc422 | nimble/gatts: Add check for RFU bits | Add Reserved For Future use bits check(needed for PTS) | diff --git a/nimble/host/include/host/ble_att.h b/nimble/host/include/host/ble_att.h
index 5a3a2a1ff0..bfd7adf10f 100644
--- a/nimble/host/include/host/ble_att.h
+++ b/nimble/host/include/host/ble_att.h
@@ -110,6 +110,9 @@ struct os_mbuf;
/**Insufficient Resources to complete the request. */
#define BLE_ATT_ERR_INSUF... | 3 | 2 | 1 | [{"id": "G0", "claim": "The hard-coded rfu_mask = 7 in ble_gatts_peer_cl_sup_feat_update should be a #define, preferably placed after the BLE_SVC_GATT_CLI_SUP_FEAT_* defines.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The function now return... | null |
apache__mynewt-nimble__1661 | apache/mynewt-nimble | 1,661 | defect | cfe8b1be5dcca3e2a956534e862c1455d6745c86 | 0a009b13df88752be49d1398af931807f1e94158 | nimble/gatts: Modify client supported features READ | 1. Fix read on client-supported features.
2. Read cannot return the local client-supported features, it should return the client-supported features for the reading connection. (This change is needed for PTS). | diff --git a/nimble/host/include/host/ble_gatt.h b/nimble/host/include/host/ble_gatt.h
index cd17cc26c0..7b961169e7 100644
--- a/nimble/host/include/host/ble_gatt.h
+++ b/nimble/host/include/host/ble_gatt.h
@@ -1096,6 +1096,25 @@ int ble_gatts_start(void);
int ble_gatts_peer_cl_sup_feat_update(uint16_t conn_handle,
... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new getter should be named ble_gatts_peer_cl_sup_feat_get().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The function should take a len parameter saying how many bytes are available in out_supported_feat and copy n... | null |
apache__mynewt-nimble__1749 | apache/mynewt-nimble | 1,749 | defect | e56389af216450721aaab7731f18679db0042a2f | 2466b50ed3117ad5599dc1b12e05e09238f68fd9 | nimble/bttester: Make adv parameters global & small fixes | MYNEWT_VAL is corrected in multiple places for an up-to-date name.
Missing semicolon and invalid function name are fixed in btp_bap.c
Change codec configuration to be set on BIS level.
Add necessary syscfg options for BAP tests. | diff --git a/apps/bttester/src/btp/bttester.h b/apps/bttester/src/btp/bttester.h
index 5d7e1219d2..7cb82b5c92 100644
--- a/apps/bttester/src/btp/bttester.h
+++ b/apps/bttester/src/btp/bttester.h
@@ -142,12 +142,12 @@ gatt_svr_register_cb(struct ble_gatt_register_ctxt *ctxt, void *arg);
int
gatt_svr_init(void);
-#if... | 1 | 1 | 1 | [{"id": "G0", "claim": "The newly added BLE_EXT_ADV_MAX_SIZE value of 261 is unjustifiably large and the reviewer questions why such a big value is needed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__mynewt-nimble__1770 | apache/mynewt-nimble | 1,770 | defect | 4ebbbf287b85f019e988a66d45c6d6f7f72a83e7 | b840460ed39b92dc6301e41f7e3de41a15d759dd | nimble: iso: Move Rx callback param to Setup ISO Data Path command | This moves the ISO Rx callback to be provided by application as Setup ISO Data Path function parameter, as the callback will be used only for HCI data path, thus there is no point to require the callback when the broadcast sync is created. | diff --git a/apps/btshell/src/cmd_iso.c b/apps/btshell/src/cmd_iso.c
index 27a9bc9d44..82a4223807 100644
--- a/apps/btshell/src/cmd_iso.c
+++ b/apps/btshell/src/cmd_iso.c
@@ -17,6 +17,7 @@
* under the License.
*/
+#include "host/ble_hs.h"
#include "host/ble_iso.h"
#include "cmd_iso.h"
@@ -27,6 +28,7 @@
#if (... | 1 | 1 | 0 | [{"id": "G0", "claim": "The declaration added mid-function in ble_iso_event_handler (uint8_t num_bis = ...) should be placed at the top of the function instead.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
apache__mynewt-nimble__178 | apache/mynewt-nimble | 178 | defect | 46e80d7f4c693e680068bd7d6200c3feea786d27 | dcf2658c52277498ef5922d7f68bd28cc6b37111 | host: Add API to unpair a peer device | This API allows to unpair a device with the specified address. The keys
related to that peer device are removed from storage and peer address
is removed from the resolve list from the controller. If a peer
is connected, the connection is terminated.
This function is used in policy for SM key overflow. Instead of ... | diff --git a/nimble/host/include/host/ble_gap.h b/nimble/host/include/host/ble_gap.h
index c485028be6..03b1730f36 100644
--- a/nimble/host/include/host/ble_gap.h
+++ b/nimble/host/include/host/ble_gap.h
@@ -1181,6 +1181,21 @@ int ble_gap_encryption_initiate(uint16_t conn_handle, const uint8_t *ltk,
*/
int ble_gap_co... | 2 | 2 | 1 | [{"id": "G0", "claim": "Keep the old name and behaviour of ble_store_util_unpair_oldest_peer - store APIs should only take care of storage and not use GAP - and introduce a GAP API to unpair the oldest device instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",... | null |
apache__mynewt-nimble__1836 | apache/mynewt-nimble | 1,836 | defect | f8994e1406f9a9e243f0a17518ca73bc40d04691 | 2fcc6426bc2d4bc5b4df8c46d8a096919df71353 | nimble/audio/bass: BASS modify source update | Update modify source to work with
new mbuf-style data input.
Also a handling for proper receive state fields is added.
Fix a never-ending goto statement returning to goto itself. | diff --git a/nimble/host/audio/services/bass/include/services/bass/ble_audio_svc_bass.h b/nimble/host/audio/services/bass/include/services/bass/ble_audio_svc_bass.h
index 431ecb968c..4955822ae6 100644
--- a/nimble/host/audio/services/bass/include/services/bass/ble_audio_svc_bass.h
+++ b/nimble/host/audio/services/bass/... | 3 | 2 | 1 | [{"id": "G0", "claim": "The stray placeholder line 'M' added inside the modify_source struct in ble_audio_svc_bass.h looks like trash and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The offset handling after reading num_sub... | null |
apache__mynewt-nimble__1843 | apache/mynewt-nimble | 1,843 | defect | f8994e1406f9a9e243f0a17518ca73bc40d04691 | ab2f671fcf905aa22638fc6b2d8f2daa4f114458 | nimble/audio/bass: Modify add source operation in BASS | Modify add source with new mbuf data style format. Add BIS sync information to receive state.
Fix memcpy wrong field format from address.
Move check_bis_sync up, so add source can use it.
Add checks for address type.
Add checks for advertising sid.
Add pa_sync_state and num of subgroups to receive state. | diff --git a/nimble/host/audio/services/bass/include/services/bass/ble_audio_svc_bass.h b/nimble/host/audio/services/bass/include/services/bass/ble_audio_svc_bass.h
index 431ecb968c..5b5e1026ff 100644
--- a/nimble/host/audio/services/bass/include/services/bass/ble_audio_svc_bass.h
+++ b/nimble/host/audio/services/bass/... | 5 | 5 | 3 | [{"id": "G0", "claim": "The new bis_sync array added to the add-source operation struct is not needed because the BIS sync value is already passed in each subgroup's bis_sync_state, leaving &data[offset] parsed into two variables.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
apache__mynewt-nimble__1846 | apache/mynewt-nimble | 1,846 | defect | a908b5e8db3868d197daa14c83ace137090caefe | 46bdca9ca6b278f121f8ab0b6e663f562413b954 | Offset field in struct ble_gatt_access_ctxt as an indication of long attribute read | To obtain an attribute value when the attribute size is greater than configured MTU long attribute read procedure could be used.
A client sends consecutive `ATT_READ_BLOB_REQ` requests (passing along an offset) to consume the attribute value. The offset is used internally in the nimble stack but is not passed to a use... | diff --git a/nimble/host/include/host/ble_gatt.h b/nimble/host/include/host/ble_gatt.h
index 5a268c0c9c..229d99dda3 100644
--- a/nimble/host/include/host/ble_gatt.h
+++ b/nimble/host/include/host/ble_gatt.h
@@ -960,6 +960,12 @@ struct ble_gatt_access_ctxt {
*/
const struct ble_gatt_dsc_def *dsc;
... | 6 | 3 | 0 | [{"id": "G0", "claim": "When the mbuf size is greater than the length being removed, os_mbuf_adj should not iterate over the whole chain to count the overall length.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be nice to allow the applic... | null |
apache__mynewt-nimble__185 | apache/mynewt-nimble | 185 | defect | 04cd24da0da844feec6235d06f456992f50c58a7 | b514684e3a1ee294cd6a5e4b91a62558433114ee | nimble/host: Add listeners for GAP events | This allow any package to registere listener which will receive GAP
events. The events applicable for listener are any "notifications",
i.e. events which are informational only. This means that e.g. events
like connection state changes are notified while pairing request is
not. | diff --git a/nimble/host/include/host/ble_gap.h b/nimble/host/include/host/ble_gap.h
index c485028be6..5c3f06ca48 100644
--- a/nimble/host/include/host/ble_gap.h
+++ b/nimble/host/include/host/ble_gap.h
@@ -1203,6 +1203,45 @@ int ble_gap_set_prefered_default_le_phy(uint8_t tx_phys_mask,
int ble_gap_set_prefered_le_phy... | 2 | 2 | 0 | [{"id": "G0", "claim": "The newly added function name ble_gap_event_listener_unregiter misspells 'unregister' — it is missing an 's'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mesh code should be updated to use the new GAP event listene... | null |
apache__mynewt-nimble__1851 | apache/mynewt-nimble | 1,851 | defect | 49db78462cf6267496a5d1efd81e9d522716243b | a24f87f7c16cad979291459f2853a457bd0fa0af | nimble/host: Add support for ext adv param v2 HCI command | BLE spec version 5.4 introduced support for host to pass primary and secondary phy options in set extended advertising parameters. For this a new HCI command "HCI_LE_Set_Extended_Advertising_Parameters v[2] " with OCF 0x007F got introduced.
This patch adds support in host for this HCI command. | diff --git a/nimble/host/include/host/ble_gap.h b/nimble/host/include/host/ble_gap.h
index e842ae29a7..152ec5ddf2 100644
--- a/nimble/host/include/host/ble_gap.h
+++ b/nimble/host/include/host/ble_gap.h
@@ -1582,6 +1582,14 @@ struct ble_gap_ext_adv_params {
/** Advertising Set ID */
uint8_t sid;
+
+#if MYNE... | 3 | 3 | 2 | [{"id": "G0", "claim": "Skip the BLE_EXT_ADV_V2 compile-time gate on the new phy-option fields and instead let the host choose to use V2 or V1 based on the Read Supported Commands result.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The host should sta... | null |
apache__mynewt-nimble__1860 | apache/mynewt-nimble | 1,860 | defect | dd1d28b07a159a65fc82e9be6321565475a97b7a | 531f07f27871a4300cc0832f5bab8ffc9b9fcafe | nimble/host: Fix ble_gap_ext_adv_params_tx and rename variables | - ble_gap_ext_adv_params_tx should check if PHY options != 0
- rename variables for consistency. | diff --git a/nimble/host/include/host/ble_gap.h b/nimble/host/include/host/ble_gap.h
index 33c56d76db..9a1ead0049 100644
--- a/nimble/host/include/host/ble_gap.h
+++ b/nimble/host/include/host/ble_gap.h
@@ -1583,11 +1583,11 @@ struct ble_gap_ext_adv_params {
/** Advertising Set ID */
uint8_t sid;
- /** P... | 1 | 1 | 0 | [{"id": "G0", "claim": "The internal HCI struct members should be left as pri_phy_opt/sec_phy_opt instead of being renamed to primary_phy_opt/secondary_phy_opt, since HCI already uses pri_phy/sec_phy naming and the struct is internal anyway.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc... | null |
apache__mynewt-nimble__1869 | apache/mynewt-nimble | 1,869 | defect | caecb2c6283cc612551ef6a980ff1b5b9e51beb6 | 392b0b599226dd15828001a0916dea8bfaf21319 | nimble/host: add eatt opcode check in ble_eatt_l2cap_event_fn | Att opcode check caused l2cap disconnection when opcode included in received data was write command which is supported and can be used on eatt. Also, the comment seemed irrelevant. Fixes GATT/SR/GAW/BV-01-C
| diff --git a/nimble/host/src/ble_eatt.c b/nimble/host/src/ble_eatt.c
index c15f545b6d..405cccef96 100644
--- a/nimble/host/src/ble_eatt.c
+++ b/nimble/host/src/ble_eatt.c
@@ -268,16 +268,6 @@ ble_eatt_l2cap_event_fn(struct ble_l2cap_event *event, void *arg)
opcode = event->receive.sdu_rx->om_data[0];
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Instead of the removed check's wording, the EATT opcode filtering should be implemented by extending the opcode classification with EATT-specific helpers (ble_eatt_supported_req/ble_eatt_supported_rsp) that satisfy Vol 3, Part G, 4.2 — only Exchange MTU and Signed Write Without Response are excl... | null |
apache__mynewt-nimble__1873 | apache/mynewt-nimble | 1,873 | defect | a6331691e855ed5c5de66fcba3ba1133929e45ad | ac44ef4d71e42251a06b61902f0ead9b06856860 | nimble/audio: Add subgroups information for modify operation | Add subgroups info for modify source operation. Now metadata field can be handled in scan delegator during modify procedure. | diff --git a/nimble/host/audio/services/bass/include/services/bass/ble_audio_svc_bass.h b/nimble/host/audio/services/bass/include/services/bass/ble_audio_svc_bass.h
index 431ecb968c..8a027c8419 100644
--- a/nimble/host/audio/services/bass/include/services/bass/ble_audio_svc_bass.h
+++ b/nimble/host/audio/services/bass/... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `bis_sync` array field in the modify_source operation should not be needed, since BIS sync can be passed in subgroups[i].bis_sync instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__mynewt-nimble__1884 | apache/mynewt-nimble | 1,884 | defect | 5effa1d3a1fb924c0440c8474e8edbc3586ef4e5 | b41fb6c243ee01cccebefc8c664d807648224a38 | nimble/ll: Add set ext adv params v2 command | This adds second version of Set Extended
Advertising Parameters command (7.8.53)
Introduced in Core Specification v5.4. | diff --git a/nimble/controller/include/controller/ble_ll_adv.h b/nimble/controller/include/controller/ble_ll_adv.h
index db35209dc1..cd05e9177f 100644
--- a/nimble/controller/include/controller/ble_ll_adv.h
+++ b/nimble/controller/include/controller/ble_ll_adv.h
@@ -216,6 +216,11 @@ int ble_ll_adv_sync_big_remove(struc... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new macro names misspell PHY as PH: BLE_HCI_ADVERTISING_PH_OPT_* should be BLE_HCI_ADVERTISING_PHY_OPT_*.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The supported-commands entry for HCI LE Set Extended Advertising Par... | null |
apache__mynewt-nimble__194 | apache/mynewt-nimble | 194 | defect | 5b57923e26f56ae8c9f1b1395b503da69f3f5dae | 32a1e15499e524e9b3c2cfc0ff40d777e6ff1ff7 | nimble/host: Convert BLE_GAP_MAX_UPDATE_ENTRIES from define to syscfg. | Previously, BLE_GAP_MAX_UPDATE_ENTRIES was a define in ble_gap.c. Now it's a syscfg in nimble/host/syscfg.yml. We have run into cases where this value needs to be increased to support multiple simultaneous connections. See [this thread](http://mail-archives.apache.org/mod_mbox/mynewt-dev/201802.mbox/%3CCAPf6Fy-dH8uvpS5... | diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c
index 9e71a5d55f..121c5c759b 100644
--- a/nimble/host/src/ble_gap.c
+++ b/nimble/host/src/ble_gap.c
@@ -87,8 +87,6 @@
#define BLE_GAP_UPDATE_TIMEOUT_MS 30000 /* ms */
-#define BLE_GAP_MAX_UPDATE_ENTRIES 1
-
static const struct b... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new BLE_GAP_MAX_UPDATE_ENTRIES setting needs a better name and a better description, because \"GAP update entry\" refers to an internal name that means nothing on the app side, and the meaning of the appended \"(0/1)\" is unclear.", "category": "maintainability", "verdict": "supported", "pri... | null |
apache__mynewt-nimble__1964 | apache/mynewt-nimble | 1,964 | defect | 0f09bcfb99b6aa6fe91b6e11122fe4d3833d24d7 | 153b89868b7b189e0a601c98de5c4793238455a3 | apps: bttester: Implement notify / Remove set_mult | Add functionality to utilize BTP notify multiple command.
Previous notify handling via set_mult parses non-existent data. | diff --git a/apps/bttester/src/btp/btp_gatt.h b/apps/bttester/src/btp/btp_gatt.h
index 8da6f43df8..c817b26ca2 100644
--- a/apps/bttester/src/btp/btp_gatt.h
+++ b/apps/bttester/src/btp/btp_gatt.h
@@ -314,10 +314,11 @@ struct btp_gatt_change_database_cmd {
uint8_t visibility;
} __packed;
-#define BTP_GATT_SET_MUL... | 3 | 3 | 2 | [{"id": "G0", "claim": "The flexible-array member of struct btp_gatt_notify_mult_val_cmd should be named handles[0] instead of data[0].", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Size validation for the variable-length (BTP_HANDLER_LENGTH_VA... | null |
apache__mynewt-nimble__2017 | apache/mynewt-nimble | 2,017 | defect | 5ab995f8f262a9827f4ead69fb8934e8244c6825 | 4b0182aa768a84e9c59816067b7939fb28571b2e | nimble/bttester: Add manual EATT connection control to BTP tester | Added new BTP command `BTP_GATT_EATT_CONNECT` (opcode 0x1f) to trigger
EATT connections with configurable L2CAP channels.
Implemented handler `eatt_conn()` that:
* Calls `ble_eatt_connect()` with the requested channel count and proper address
Updated `supported_commands` response to advertise the new capabi... | diff --git a/apps/bttester/src/btp/btp_gatt.h b/apps/bttester/src/btp/btp_gatt.h
index 8da6f43df8..b5171531a0 100644
--- a/apps/bttester/src/btp/btp_gatt.h
+++ b/apps/bttester/src/btp/btp_gatt.h
@@ -320,6 +320,12 @@ struct btp_gatt_set_mult_val_cmd {
uint8_t data[0];
} __packed;
+#define BTP_GATT_EATT_CONNECT ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The success check in eatt_conn is not valid: it should return BTP_STATUS_SUCCESS when ble_eatt_connect returns 0 as well as BLE_HS_EALREADY, and BTP_STATUS_FAILED otherwise.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__mynewt-nimble__202 | apache/mynewt-nimble | 202 | defect | 34577f20224ec4ecd7015b6b18dbc795f4fbb40e | f7efcd332ae7be50812a188320f57aa69414d8f9 | Beacon's Measured Power as an argument | Took Measured Power as an argument from the user instead of generating automatically. Also checked whether the value is as per BLE specifications.
Modified btshell app to use the new argument while setting eddystone beacon. | diff --git a/apps/btshell/src/cmd.c b/apps/btshell/src/cmd.c
index 9ca66713de..7265c6bd25 100644
--- a/apps/btshell/src/cmd.c
+++ b/apps/btshell/src/cmd.c
@@ -1511,6 +1511,7 @@ cmd_set_adv_data_or_scan_rsp(int argc, char **argv, bool scan_rsp)
uint8_t eddystone_url_body_len;
uint8_t eddystone_url_suffix;
... | 3 | 3 | 1 | [{"id": "G0", "claim": "The btshell option name 'measured_power' should be renamed to 'eddystone_measured_power' since it applies to eddystone only.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The eddystone 'measured_power' doc comment should... | null |
apache__mynewt-nimble__2088 | apache/mynewt-nimble | 2,088 | defect | f14e458938d8296cc2f578f42ec3100c73b85890 | 8b48638937d89176bc79e2c9a404533e134a20e3 | nimble/host: add support for Characteristic Extended Properties descriptor | Add support for Characteristic Extended Properties descriptor. For each characteristic that has reliable/auxiliary flags set an instance of Extended Properties descriptor will be registred.
Note: this is needed for host qualification test case GATT/SR/GAS/BV-02-C and can be tested with https://github.com/apache/mynewt... | diff --git a/nimble/host/include/host/ble_gatt.h b/nimble/host/include/host/ble_gatt.h
index 229d99dda3..b2663d0275 100644
--- a/nimble/host/include/host/ble_gatt.h
+++ b/nimble/host/include/host/ble_gatt.h
@@ -65,6 +65,9 @@ struct ble_hs_cfg;
/** GATT Client Characteristic Configuration descriptor 16-bit UUID. */
#d... | 2 | 2 | 1 | [{"id": "G0", "claim": "ble_gatts_cep_access need not call ble_gatts_val_access; the descriptor access can be handled in place, using put_le16 to write the 16-bit property value so the endianness is correct.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
apache__mynewt-nimble__230 | apache/mynewt-nimble | 230 | defect | 0ab82f78671464c5ccf36e8d16b7332ba73b8e57 | 8407117c3663ce46fc6a5eedff8ecc5b0d425d86 | [porting][linux] Add support for BLE Mesh app on linux platform | Following commits includes:
1. Fixes for build errors which I encountered while building BLE Mesh app on Linux platform
2. Fixes for functionality failure while running the BLE Mesh app on Linux platform | diff --git a/nimble/host/mesh/src/testing.c b/nimble/host/mesh/src/testing.c
index 096cff638b..0db5fb68be 100644
--- a/nimble/host/mesh/src/testing.c
+++ b/nimble/host/mesh/src/testing.c
@@ -97,7 +97,7 @@ void bt_test_print_credentials(void)
struct bt_mesh_subnet *sub;
struct bt_mesh_app_key *app_key;
- console_p... | 3 | 3 | 1 | [{"id": "G0", "claim": "The (long) cast of bt_mesh.iv_index added in testing.c seems unrelated to this PR's BLE Mesh Shell disable work and should be made as a separate patch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The lines added to bt_... | null |
apache__mynewt-nimble__236 | apache/mynewt-nimble | 236 | defect | 525af73e7d6f9f65d8ce746fb6c1f6ce609967ae | af7fa0d0a6a7db86716a94c488eaab10a133f6ca | nimble/host: Allow auto-start to be disabled | #### Before PR:
The host always starts during system initialization.
#### After PR:
A Mynewt syscfg setting (`BLE_HS_AUTO_START`) was added. When this setting is disabled, the host does not start automatically. Instead, the application starts the host using the new
`ble_hs_sched_start()` function.
`BLE_HS_AUT... | diff --git a/nimble/host/include/host/ble_hs.h b/nimble/host/include/host/ble_hs.h
index 896d1d00cd..192fdefdad 100644
--- a/nimble/host/include/host/ble_hs.h
+++ b/nimble/host/include/host/ble_hs.h
@@ -311,6 +311,18 @@ int ble_hs_synced(void);
*/
int ble_hs_start(void);
+/**
+ * Enqueues a host start event to the... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new `#if MYNEWT_VAL(BLE_HS_AUTO_START)` in ble_hs_init should wrap the complete `#if/#else` block (both the MYNEWT and the porting branches), not only the MYNEWT-specific part, since the ports were also updated to work with this new setting.", "category": "correctness", "verdict": "supported... | null |
apache__mynewt-nimble__277 | apache/mynewt-nimble | 277 | defect | 34bb0af41d3d234f43418eeda6b64cd480398a04 | 0803de80800ad7b641d214181b79e6245351f4eb | nimble/ll: Fix updating adv and scan response data while advertising | This PR make sure advertising is stopped while data are updating. | diff --git a/nimble/controller/src/ble_ll_adv.c b/nimble/controller/src/ble_ll_adv.c
index bae72cc366..10fbb531a5 100644
--- a/nimble/controller/src/ble_ll_adv.c
+++ b/nimble/controller/src/ble_ll_adv.c
@@ -105,6 +105,7 @@ struct ble_ll_adv_sm
uint8_t initiator_addr[BLE_DEV_ADDR_LEN];
struct os_mbuf *adv_data... | 5 | 4 | 2 | [{"id": "G0", "claim": "The `if (advsm->updated_data)` guard in ble_ll_adv_update_adv_scan_rsp_data looks unnecessary because the NEW_ADV_DATA flag should be enough, and it is inconsistent with the scan-rsp branch below.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id":... | null |
apache__mynewt-nimble__305 | apache/mynewt-nimble | 305 | defect | 6a93c415c2f58988d16fb08c35af471693add381 | 0d0aa54725ef4e1de8714e8e736d243f1ba0694a | l2cap: Fix channel creation | Previously the channel was added to the channels list after sending
COC Accept event to the application. The application called
ble_l2cap_coc_recv_ready which was trying to find channel on a list,
but failed. With this patch the channel is added on a list before sending
Accept event, and if the application returns ... | diff --git a/nimble/host/src/ble_l2cap_sig.c b/nimble/host/src/ble_l2cap_sig.c
index a7507e3480..541585ff53 100644
--- a/nimble/host/src/ble_l2cap_sig.c
+++ b/nimble/host/src/ble_l2cap_sig.c
@@ -691,6 +691,7 @@ ble_l2cap_sig_coc_req_rx(uint16_t conn_handle, struct ble_l2cap_sig_hdr *hdr,
chan->coc_tx.credits = le1... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new ble_hs_conn_delete_chan(conn, chan) call in the coc_err path is made without taking the host lock (missing ble_hs_lock()).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__mynewt-nimble__390 | apache/mynewt-nimble | 390 | defect | 0d70bda4d7bef4db100cbd6b96f9a4c2524fbc7a | 7bd9d9765b1db97097a015dee11eefafe864aadc | nimble/host: Register a 1-elem mbuf pool for ACL; prevents possible deadlock | Register a one-element mbuf pool dedicated to holding outgoing ACL data packets. This dedicated pool prevents a deadlock caused by mbuf exhaustion. Without this pool, all msys mbufs could be permanently allocated, preventing us from fragmenting outgoing packets and sending them (and ultimately freeing them).
When ... | diff --git a/nimble/host/src/ble_hs_hci.c b/nimble/host/src/ble_hs_hci.c
index 0a48aa6e1c..7bdfccae79 100644
--- a/nimble/host/src/ble_hs_hci.c
+++ b/nimble/host/src/ble_hs_hci.c
@@ -39,6 +39,28 @@ static uint8_t ble_hs_hci_max_pkts;
static uint32_t ble_hs_hci_sup_feat;
static uint8_t ble_hs_hci_version;
+#define B... | 1 | 1 | 1 | [{"id": "G0", "claim": "The dedicated one-element fragment pool should not be registered with msys, since registering it would let anyone grab the dedicated buffer.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__mynewt-nimble__412 | apache/mynewt-nimble | 412 | defect | 3b5236fcd18a9ab670bd99157aad81ae0d982a9e | b78c5be1e59848453ab7e4a868287350cde72008 | nimble/host: Couple of improvements around periodic adv | This PR moves terminating all periodic sync on Host shutdown (bl_hs_stop()) to better place. | diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c
index 64b65c6677..cf17f7dd6e 100644
--- a/nimble/host/src/ble_gap.c
+++ b/nimble/host/src/ble_gap.c
@@ -3423,10 +3423,8 @@ ble_gap_periodic_adv_terminate_sync(uint16_t sync_handle)
* the app wants to terminate that sync handle */
psync = ble_... | 2 | 2 | 2 | [{"id": "G0", "claim": "In ble_hs_stop_terminate_all_periodic_sync the added check `if (!rc)` treats a zero (success) return from ble_gap_periodic_adv_terminate_sync as an error, logging an error and aborting the stop.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":... | null |
apache__mynewt-nimble__435 | apache/mynewt-nimble | 435 | defect | 976bb8f84bf9547efdea444ae79a62d5a355a613 | f032a2f61b3c7f25f0ee8636d6207afa673f2032 | ble_hs: `ble_hs_id_set_rnd` should check if all bits are 0s or 1s | `ble_hs_id_set_rnd` should make sure that all bits are not 0s or 1s.
Useful for host only implementation. | diff --git a/nimble/host/src/ble_hs_id.c b/nimble/host/src/ble_hs_id.c
index 14641535b4..bfd4a34dfe 100644
--- a/nimble/host/src/ble_hs_id.c
+++ b/nimble/host/src/ble_hs_id.c
@@ -58,9 +58,21 @@ ble_hs_id_set_rnd(const uint8_t *rnd_addr)
{
uint8_t addr_type_byte;
int rc;
+ uint16_t sum;
ble_hs_lock(... | 2 | 2 | 1 | [{"id": "G0", "claim": "The sum-based all-bits check added to ble_hs_id_set_rnd is counter-intuitive; it should instead check, in the loop, whether any byte is other than 0x00 or 0xff.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "With this PR'... | null |
apache__mynewt-nimble__555 | apache/mynewt-nimble | 555 | defect | e0f88eb0fffe962d656175ea2fa070a4922d84ea | ce38902a6d7cda23765b8c26ac8c37ca45c24f69 | nimble/mesh: configurable segment retransmist attempts | Current SEG_RETRANSMIT_ATTEMPTS value is defined as 4. And hence, while sending non-ack segmented messages, each segment is being re-transmitted 4 times. When it comes, to the timing I observed that a message with three segments takes at least 8-15 seconds between successive re-transmissions. For reliability, if the wh... | diff --git a/nimble/host/mesh/src/transport.c b/nimble/host/mesh/src/transport.c
index f85cbc8634..949c29cf5f 100644
--- a/nimble/host/mesh/src/transport.c
+++ b/nimble/host/mesh/src/transport.c
@@ -52,7 +52,7 @@ BUILD_ASSERT(CONFIG_BT_MESH_ADV_BUF_COUNT >= (CONFIG_BT_MESH_TX_SEG_MAX + 3));
#define SEQ_AUTH(iv_index, ... | 3 | 2 | 1 | [{"id": "G0", "claim": "Add the specification reference to the BLE_MESH_SEG_RETRANSMIT_ATTEMPTS description in nimble/host/mesh/syscfg.yml so it is clear where the restriction comes from.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "linux_blemes... | null |
apache__mynewt-nimble__688 | apache/mynewt-nimble | 688 | defect | 6e84712247df498e8544501856940ffc5815838f | 9411875ac0ad0a32033094dc38c3196da31e4802 | nimble/host: Add support for OOB Secure Connections | Previously we supported only Legacy OOB pairing procedure.
Secure connections version uses a very different Authentication stage
which required some changes to the SM code.
SC OOB uses two 128-bit values as OOB data. OOB communication
is possible in one or both directions. Due to the difference in
OOB Data compa... | diff --git a/nimble/host/include/host/ble_sm.h b/nimble/host/include/host/ble_sm.h
index 9bd25adfc1..2227044b8e 100644
--- a/nimble/host/include/host/ble_sm.h
+++ b/nimble/host/include/host/ble_sm.h
@@ -84,7 +84,16 @@ extern "C" {
#define BLE_SM_IOACT_INPUT 2
#define BLE_SM_IOACT_DISP ... | 5 | 5 | 0 | [{"id": "G0", "claim": "Instead of the #if MYNEWT_VAL(BLE_SM_SC)/#else macro stub for ble_sm_sc_oob_generate_data in the header, the function itself should just return BLE_HS_ENOTSUP.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The local and remote OO... | null |
apache__mynewt-nimble__777 | apache/mynewt-nimble | 777 | defect | 2e4d0601bd16ab0f3b65c71f6941ac128a2d4556 | 7f0fe86fdf7eae49a008c402734f853fffb5f8f4 | nimble/host: Clear master and slave states on host reset | Added `ble_gap_reset_state` to clear advertising and discovery states when `ble_hs_reset` is called. This PR addresses #776 | diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c
index 6039f6f775..26d5e8777c 100644
--- a/nimble/host/src/ble_gap.c
+++ b/nimble/host/src/ble_gap.c
@@ -737,6 +737,30 @@ ble_gap_slave_reset_state(uint8_t instance)
#endif
}
+/**
+ * Clears advertisement and discovery state. This function is necess... | 5 | 5 | 3 | [{"id": "G0", "claim": "The new function should be named ble_gap_reset_state instead of ble_gap_master_slave_reset_state.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "On host reset the host should also call ble_gap_adv_finished() so the applic... | null |
apache__mynewt-nimble__790 | apache/mynewt-nimble | 790 | defect | 509040b0e08dc82fc8f327f747474350cc066938 | ee20f5cb81f804af530c9d4a62be6249e26dedf9 | nimble/store: Fix nimble store behavior when CCCDs exceed static defined limit | **Issue reference**: #788
**Description:**
In cases where CCCDs are exceeding MYNEWT_VAL(BLE_STORE_MAX_CCCDS) (overflow event), we can end up in continuous while loop.
**Change list:**
1. In `ble_gap_unpair_oldest_peer` changed return value from `0` to `BLE_HS_ENOENT` when there is no entry found.
2. Modifie... | diff --git a/nimble/host/include/host/ble_store.h b/nimble/host/include/host/ble_store.h
index 30a5666cfe..14f66c7f75 100644
--- a/nimble/host/include/host/ble_store.h
+++ b/nimble/host/include/host/ble_store.h
@@ -290,6 +290,9 @@ int ble_store_clear(void);
int ble_store_util_bonded_peers(ble_addr_t *out_peer_id_addrs... | 3 | 3 | 1 | [{"id": "G0", "claim": "The change of the return value in ble_gap_unpair_oldest_peer when no bonded peer exists should be split out as a separate patch.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CCCD overflow case should not unpair the peer whos... | null |
apache__mynewt-nimble__8 | apache/mynewt-nimble | 8 | defect | 14a9f9f6b128c8f0eeece74f824554720067facc | bd45b30221420a902edd3d6d0159546a01f94a19 | nimble/mesh: Make use of advertising extensions | With this patch Mesh can make use of multi instances which came with
advertising extension. It creates one advertising instance for
PB-ADV and one for PB-GATT and PROXY.
That said, it is possible to create additional instances which are
used for non mesh purpose. Note that this brings limitation on Mesh
Friendsh... | diff --git a/nimble/host/mesh/include/mesh/glue.h b/nimble/host/mesh/include/mesh/glue.h
index bcea0a7cad..7e6b40f67e 100644
--- a/nimble/host/mesh/include/mesh/glue.h
+++ b/nimble/host/mesh/include/mesh/glue.h
@@ -238,7 +238,6 @@ void net_buf_reserve(struct os_mbuf *om, size_t reserve);
#define net_buf_add_be32(a, b)... | 2 | 2 | 2 | [{"id": "G0", "claim": "On failure of os_mbuf_append for the advertising data, bt_le_adv_start returns directly and leaks the allocated mbuf; it should `goto error` so the chain is freed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Failure of os_... | null |
apache__mynewt-nimble__802 | apache/mynewt-nimble | 802 | defect | 6ec9b6b09e1bf5422f465f6ed350cc51fa9e886e | 851b965f8dba08a3d250e912611da857e4031325 | nimble/host: Add return parameter to the ble_hs_misc_conn_chan_find_reqd() | `ble_hs_misc_conn_chan_find_reqd()` did not return an error code if
the connection and or the channel were not found, i.e. in a disconnected state.
When debug is not enabled and `ble_hs_misc_conn_chan_find_reqd()` is called and
the device has disconnected from the peer various functions may attempt to access
memory... | diff --git a/nimble/host/src/ble_att_cmd.c b/nimble/host/src/ble_att_cmd.c
index a123c857c3..81d3ce9d7c 100644
--- a/nimble/host/src/ble_att_cmd.c
+++ b/nimble/host/src/ble_att_cmd.c
@@ -66,11 +66,10 @@ ble_att_tx(uint16_t conn_handle, struct os_mbuf *txom)
ble_hs_lock();
- ble_hs_misc_conn_chan_find_reqd(c... | 1 | 1 | 1 | [{"id": "G0", "claim": "ble_hs_misc_conn_chan_find_reqd() should exit early when ble_hs_misc_conn_chan_find() returns rc != 0, instead of continuing to set the out parameters and return.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__mynewt-nimble__899 | apache/mynewt-nimble | 899 | defect | 5fbb6660a433217b8eaf1b95de410379f868616c | 1cdfcd5ba1f638ad63f6eb0ed7b3a395151a3f0b | NimBLE host: Make set Packet Length API public | This PR makes API setting packet length (OGF = 0x08, OCF = 0x0022) in controller from host public. | diff --git a/nimble/host/include/host/ble_gap.h b/nimble/host/include/host/ble_gap.h
index 20f9e30dfc..69591167b2 100644
--- a/nimble/host/include/host/ble_gap.h
+++ b/nimble/host/include/host/ble_gap.h
@@ -1214,6 +1214,23 @@ struct ble_gap_ext_adv_params {
uint8_t sid;
};
+/**
+ * Configure LE Data Length in c... | 3 | 3 | 1 | [{"id": "G0", "claim": "Building btshell fails with an implicit-declaration error for ble_hs_hci_util_set_data_len even though the app includes host/ble_gap.h.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The new public function should be rename... | null |
apache__mynewt-nimble__941 | apache/mynewt-nimble | 941 | defect | 32621d01b444d99dedba8fe85c44a2bb1b2460c4 | 768f0128148da4f0461ffb6437f9b788ad9b3c25 | ble_sm: add Secure Connections Only mode | Added mode allowing to enforce pairing only in SC mode 1 level 4. This mode is required to pass
GAP/SEC/SEM/BI testcases. Added BLE_SM_SC_LVL config to allow pairing only in selected levels. | diff --git a/nimble/host/src/ble_att_svr.c b/nimble/host/src/ble_att_svr.c
index 0cfbc7d96b..7b2611accf 100644
--- a/nimble/host/src/ble_att_svr.c
+++ b/nimble/host/src/ble_att_svr.c
@@ -284,6 +284,16 @@ ble_att_svr_check_perms(uint16_t conn_handle, int is_read,
}
ble_att_svr_get_sec_state(conn_handle, &sec... | 1 | 1 | 1 | [{"id": "G0", "claim": "In ble_att_svr_check_perms the SC-only check should compare sec_state.key_size against 16 bytes, not 128, since key_size is kept in bytes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__mynewt-nimble__971 | apache/mynewt-nimble | 971 | defect | 1d073cc84d5e387dcca250ff75d77c20f735ced0 | efc7fd66a489052426f6fe444e208c904fb7678f | nimble/host: Fix potential MITM vulnerability in case of secure connection pairing | Issue: In case of secure connection pairing and Paskkey Entry method, there is chance that MITM attacker can reply with same public key as received from vulnerable BLE device. This can potentially authenticate MITM attacker. This PR fixes this potential vulnerability.
Solution: Check if the peer public key is same ... | diff --git a/nimble/host/src/ble_sm_sc.c b/nimble/host/src/ble_sm_sc.c
index 7fae5b1c94..efd4dae832 100644
--- a/nimble/host/src/ble_sm_sc.c
+++ b/nimble/host/src/ble_sm_sc.c
@@ -612,6 +612,14 @@ ble_sm_sc_public_key_rx(uint16_t conn_handle, struct os_mbuf **om,
}
cmd = (struct ble_sm_public_key *)(*om)->om... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new same-public-key branch sets enc_cb/sm_err but does not return, so execution continues to the normal public-key handling instead of failing the pairing as the comment says.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":... | null |
apache__mynewt-nimble__987 | apache/mynewt-nimble | 987 | defect | c337666a34220e63d8eaf97b4f08bd889598092a | 07da470755eb35ff50c333c12be29198062cf1c8 | l2cap: implement echo request-response procedure (l2cap ping) | For doing run-time link quality assessment I am in the need of the echo request-response procedure provided by the L2CAP signalling layer. As of now, this functionality is not exposed through any NimBLE APIs. This PR exposes this functionality by adding the `ble_l2cap_ping()` function to NimBLE's l2cap API.
The usag... | diff --git a/nimble/host/include/host/ble_l2cap.h b/nimble/host/include/host/ble_l2cap.h
index aef9682cc4..5c5383b261 100644
--- a/nimble/host/include/host/ble_l2cap.h
+++ b/nimble/host/include/host/ble_l2cap.h
@@ -246,6 +246,8 @@ struct ble_l2cap_chan_info {
typedef int ble_l2cap_event_fn(struct ble_l2cap_event *ev... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error path in ble_l2cap_sig_ping should not free txom because ble_l2cap_sig_tx is or should be consuming txom regardless of result; the fix should be made coherently in ble_l2cap_sig_tx instead.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__nifi__10294 | apache/nifi | 10,294 | defect | 25912e065c0eb4d43e011bd5e4a03ce343a5bcb6 | 47512d868f0648a617b2e1925ec072e3b4a7bd04 | NIFI-14956 - AWS Credentials Provider - Add support for STS AssumeRoleWithWebIdentity | # Summary
NIFI-14956 - AWS Credentials Provider - Add support for STS AssumeRoleWithWebIdentity
**Given the EOL of the SDK v1, I only implemented a version for the SDK v2**
Steps to setup an AWS only test environment for testing this new feature.
(note the commands are using `--profile perso`, change base on ... | diff --git a/nifi-extension-bundles/nifi-aws-bundle/nifi-aws-processors/pom.xml b/nifi-extension-bundles/nifi-aws-bundle/nifi-aws-processors/pom.xml
index 696fbded23dae..6388d0e9ec4b4 100644
--- a/nifi-extension-bundles/nifi-aws-bundle/nifi-aws-processors/pom.xml
+++ b/nifi-extension-bundles/nifi-aws-bundle/nifi-aws-pr... | 9 | 7 | 2 | [{"id": "G0", "claim": "The WebIdentity strategy's intended use case (authenticated web or mobile application user identities) does not align with how NiFi authenticates to services, and using a user's credentials for service-based authentication is not a good strategy, so the reviewer is not inclined to move forward i... | null |
apache__nifi__10681 | apache/nifi | 10,681 | defect | 41a9406ae671c9e7afbb9ccbc9a51f8ee0165bb7 | 6290415dce2ff68e80281fee6ae25571a0706198 | NIFI-15381 - Improve UX for the view Show/Revert Local Changes to account for environmental changes | # Summary
NIFI-15381 - Improve UX for the view Show/Revert Local Changes to account for environmental changes
## Issue description
As part of the change in [NIFI-14442](https://issues.apache.org/jira/browse/NIFI-14442), when listing local changes we are also listing the fact that bundle versions may have chang... | diff --git a/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/DifferenceDTO.java b/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/DifferenceDTO.java
index 8c3d5e88d81f..d4e8748385bd 100644
--- a/nifi-framework-bundle/nifi-fram... | 6 | 6 | 4 | [{"id": "G0", "claim": "The isEnvironmental method added to LocalChangesTable is unused, and the reviewer asks whether it was meant to be used in the template to render environmental rows differently.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
apache__nifi__10907 | apache/nifi | 10,907 | defect | f61609dfe6ff0abe12a875734a4f343e787b597f | cff9614a1b1b03c7819c8036cd5082ee88d09f83 | NIFI-15606: Connector Mock War implementation. | * Load war files from Connector Nar
* Mock Connector Web Context
* Allow test runner to set http port
<!-- Licensed to the Apache Software Foundation (ASF) under one or more -->
<!-- contributor license agreements. See the NOTICE file distributed with -->
<!-- this work for additional information regarding copy... | diff --git a/nifi-connector-mock-bundle/nifi-connector-mock-api/src/main/java/org/apache/nifi/mock/connector/server/ConnectorTestRunner.java b/nifi-connector-mock-bundle/nifi-connector-mock-api/src/main/java/org/apache/nifi/mock/connector/server/ConnectorTestRunner.java
index 25a5215db392..22b122402db5 100644
--- a/nif... | 4 | 4 | 1 | [{"id": "G0", "claim": "The fully qualified `org.eclipse.jetty.ee.webapp.WebAppClassLoader` used when setting the web app context's class loader should be imported instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`findWars` would incorrec... | null |
apache__nifi__10908 | apache/nifi | 10,908 | defect | da8661d5ba4128a74a1a0a68937ad752c984ef09 | 085137cae8663830d6e4f510869a55c013e1aac8 | NIFI-15614 - ConsumeKafka - Duplicate messages during consumer group rebalance | # Summary
NIFI-15614 - `ConsumeKafka` - Duplicate messages during consumer group rebalance
When using `ConsumeKafka` with `Kafka3ConnectionService`, duplicate messages may be processed when a consumer group rebalance occurs.
[NIFI-15464](https://issues.apache.org/jira/browse/NIFI-15464) addressed a related iss... | diff --git a/nifi-extension-bundles/nifi-kafka-bundle/nifi-kafka-3-integration/src/test/java/org/apache/nifi/kafka/processors/ConsumeKafkaRebalanceIT.java b/nifi-extension-bundles/nifi-kafka-bundle/nifi-kafka-3-integration/src/test/java/org/apache/nifi/kafka/processors/ConsumeKafkaRebalanceIT.java
index d4a8103abee53..... | 4 | 3 | 1 | [{"id": "G0", "claim": "The integration test should be using loggers instead of System.out.println for its output.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rebalance callback should avoid session.commit() and instead ensure that sessio... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.