Skip to content

fix(mactrack): correct Aruba AOS-CX scanner dispatch - #411

Merged
TheWitness merged 3 commits into
developfrom
fix/aruba-oscx-default-dispatch
Nov 9, 2026
Merged

TheWitness merged 3 commits into
developfrom
fix/aruba-oscx-default-dispatch

Conversation

@somethingwithproof

Copy link
Copy Markdown
Member

Related to #399 (AOS-CX callback-name finding). Fixes Aruba 6200/6300 scan and ARP dispatch for new installs and repairs only stale callback values during upgrade. Adds migration and dispatch regression tests; bumps the plugin to 4.10 to run the migration. Validation: focused Pest tests (2 tests, 13 assertions), PHP lint, and diff check pass. Full local suite: 276 passed; 2 existing admin-action tests fail because /bin/true and /bin/false are absent on macOS.

The default Aruba 6200/6300 rows referenced callback names that are not registered by the AOS-CX library. Update fresh-install seeds and migrate only rows still holding the old names.

Related to #399.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@somethingwithproof
somethingwithproof force-pushed the fix/aruba-oscx-default-dispatch branch from 61c2bc5 to 9c815e1 Compare November 9, 2026 01:42
The upgrade path already repaired obsolete callback names. The same
callback strings in mactrack_setup_database() were unmeasured, which
dropped patch coverage below 100%.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
mactrack_setup_database() inserts default device types only when
db_fetch_cell() == 0. The unit stub omitted SQL from the matcher and
defaulted to '', and PHP 8 treats '' == 0 as false, so the fresh-install
INSERTs never ran. Pass SQL into the stub and queue the string '0'.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@sonarqubecloud

sonarqubecloud Bot commented Nov 9, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
3.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@TheWitness
TheWitness merged commit 6450660 into develop Nov 9, 2026
8 of 9 checks passed
@TheWitness
TheWitness deleted the fix/aruba-oscx-default-dispatch branch November 9, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants