• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

enbility / spine-go
94%

Build:
DEFAULT BRANCH: dev
Repo Added 14 Jan 2024 07:47PM UTC
Files 61
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH dev
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • dev
  • feature/analysis-docs
  • feature/binding-subscription-improvements
  • feature/complex-types
  • feature/maintenance
  • feature/nodemanagment-improvements
  • feature/protocol-version-check
  • feature/relative-time-issue
  • feature/rfe-reply
  • feature/spine14
  • feature/update-ignore-key-only
  • feature/update-partial-fixes
  • fix/unset-key-handling
  • fix_issue_49
  • main

22 Aug 2025 03:56PM UTC coverage: 94.0% (-0.03%) from 94.034%
17159964497

push

github

web-flow
🐛 fix: add cmdFunction parameter to FilterType.Data() for partial filter handling (#67)

This critical fix addresses type confusion vulnerabilities and improves
SPINE protocol compliance by properly handling partial filters without
selectors.

## Changes:
- **BREAKING**: FilterType.Data() now requires cmdFunction parameter
- Add cmdFunction parameter to all UpdateList implementations (30+
files)
- Fix critical bug where UpdateList returned slices instead of complete
structs
- Add validation helpers for cmd.Function consistency checking
- Add comprehensive test coverage for function mismatches and edge cases

## Security Improvements:
- Prevent type confusion attacks where cmd.Function doesn't match filter
functions
- Proper fallback to cmdFunction for partial filters without selectors
- Validation methods to detect and report function inconsistencies

## Bug Fixes:
- Fix panic in TestLoadControlLimitListDataType_Update (line 126)
- Correct partial filter logic that incorrectly used selector path when
no selectors present
- Return complete structs from UpdateList, not just data slices
- Fix incorrect field names in multiple *_additions.go files

## Spec Compliance:
- Properly implements SPINE Table 6/7 requirements for partial updates
- Handles "copy to all" pattern when identifiers are missing
- Supports valid partial filters without selectors (meaning "all
fields")

## Testing:
- Add cmd_function_filter_mismatch_test.go for security validation
- Add cmd_validation_additions_test.go for consistency checks
- Add device_local_validation_test.go for local device validation
- Update all existing tests to use new cmdFunction parameter

BREAKING CHANGE: FilterType.Data() signature changed to require
cmdFunction parameter. All code using FilterType.Data() must be updated
to pass the cmdFunction.

310 of 322 new or added lines in 32 files covered. (96.27%)

5609 of 5967 relevant lines covered (94.0%)

28518.13 hits per line

Relevant lines Covered
Build:
Build:
5967 RELEVANT LINES 5609 COVERED LINES
28518.13 HITS PER LINE
Source Files on dev
  • Tree
  • List 61
  • Changed 31
  • Source Changed 31
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
17159964497 dev 🐛 fix: add cmdFunction parameter to FilterType.Data() for partial filter handling (#67) This critical fix addresses type confusion vulnerabilities and improves SPINE protocol compliance by properly handling partial filters without selectors. ## ... push 22 Aug 2025 03:57PM UTC web-flow github
94.0
17159760478 feature/update-partial-fixes Merge 55d4c6730 into c4ae6756e Pull #67 22 Aug 2025 03:47PM UTC web-flow github
94.0
17122433974 dev ✨ feat: implement smart list update filtering to prevent duplicate entries (#66) This commit introduces intelligent filtering for SPINE list updates that prevents duplicate and low-quality entries by distinguishing between meaningful data updates... push 21 Aug 2025 09:12AM UTC web-flow github
94.03
16968953187 feature/update-partial-fixes Merge 7e6551cb3 into 42f8d7feb Pull #67 14 Aug 2025 03:03PM UTC web-flow github
93.89
16968484665 feature/update-partial-fixes Merge 5af7d83cd into 42f8d7feb Pull #67 14 Aug 2025 02:46PM UTC web-flow github
93.66
16249179426 feature/update-ignore-key-only Merge fdbfaf61d into 42f8d7feb Pull #66 13 Jul 2025 12:36PM UTC web-flow github
94.03
16248714521 feature/update-ignore-key-only Merge 7bff17477 into 42f8d7feb Pull #66 13 Jul 2025 11:40AM UTC web-flow github
93.73
16248693467 feature/update-ignore-key-only Merge 668b156e8 into 42f8d7feb Pull #66 13 Jul 2025 11:37AM UTC web-flow github
93.73
16120843816 feature/protocol-version-check Merge fe5c06feb into 42f8d7feb Pull #65 07 Jul 2025 03:14PM UTC web-flow github
94.14
16091045043 feature/protocol-version-check Merge 0badd813e into 42f8d7feb Pull #65 05 Jul 2025 06:46PM UTC web-flow github
94.14
See All Builds (209)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc