• 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: dev
CHANGE BRANCH
x
Reset
  • 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
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
16087343574 dev 📝 docs: update loop detection analysis and clean up documentation - Updated Loop Detection section in IMPROVEMENT_ROADMAP.md with comprehensive analysis - Clarified that loop detection is NOT a SPINE spec requirement but needed for stability - Do... push 05 Jul 2025 10:46AM UTC DerAndereAndi github
93.81
16086992412 dev 📝 docs: correct architectural understanding of SPINE vs transport layer concerns Remove message size limits as SPINE specification deviation since SPINE is Layer 7 (Application Layer) and transport concerns belong in SHIP protocol. Update analysi... push 05 Jul 2025 10:00AM UTC DerAndereAndi github
93.81
16086514275 dev 📝 docs: fix numbering and update entity depth limit analysis in SPEC_DEVIATIONS.md - Fix duplicate section numbers (two "### 5." entries) - Fix missing section number (### 2. in Major Deviations) - Renumber all sections sequentially within each c... push 05 Jul 2025 08:56AM UTC DerAndereAndi github
93.81
16086124242 dev 📝 docs: convert analysis docs from version numbers to date-based versioning - Create DOCUMENTATION_STANDARDS.md defining date-based approach - Convert all versioned documents (v1.0, v1.1, etc.) to use "Last Updated" dates - Move version/change hi... push 05 Jul 2025 08:05AM UTC DerAndereAndi github
93.81
16086104611 dev 📝 docs: convert analysis docs from version numbers to date-based versioning - Create DOCUMENTATION_STANDARDS.md defining date-based approach - Convert all versioned documents (v1.0, v1.1, etc.) to use "Last Updated" dates - Move version/change hi... push 05 Jul 2025 08:03AM UTC DerAndereAndi github
93.81
16080619012 dev ✅ test: add comprehensive test coverage for partial filter reply behavior (#64) Implements TDD test suite verifying that spine-go correctly ignores partial filters in read requests and returns full data, which is explicitly allowed by SPINE speci... push 04 Jul 2025 08:37PM UTC web-flow github
93.76
16079189529 dev ✨ feat: implement XSD-compliant factory function for NodeManagement entity information (#63) - Add NewEntityInformationForNodeManagement factory function that creates XSD-compliant entity information by omitting device field per specification - I... push 04 Jul 2025 06:25PM UTC web-flow github
93.76
16078846193 dev 📝 docs: add XSD restriction analysis and decision documentation - Add comprehensive XSD_RESTRICTION_ANALYSIS.md documenting scope and impact - Document XSD deviation in SPEC_DEVIATIONS.md as minor deviation - Update documentation navigation and v... push 04 Jul 2025 05:56PM UTC DerAndereAndi github
93.74
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