Repository navigation
fix(mactrack): correct Aruba AOS-CX scanner dispatch - #411
Merged
Merged
Conversation
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
force-pushed
the
fix/aruba-oscx-default-dispatch
branch
from
November 9, 2026 01:42
61c2bc5 to
9c815e1
Compare
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>
|
TheWitness
approved these changes
Nov 9, 2026
Closed
2 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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.