Skip to content

feat(tedge-p11-server): Improve frame parse error message#3997

Draft
Bravo555 wants to merge 1 commit intothin-edge:mainfrom
Bravo555:feat/tedge-p11-server-incompat-error-msg
Draft

feat(tedge-p11-server): Improve frame parse error message#3997
Bravo555 wants to merge 1 commit intothin-edge:mainfrom
Bravo555:feat/tedge-p11-server-incompat-error-msg

Conversation

@Bravo555
Copy link
Copy Markdown
Member

@Bravo555 Bravo555 commented Feb 17, 2026

Proposed changes

When tedge-p11-server fails to parse received message, error message now contains if frame version is unsupported or if request type is unrecognized. This should provide more of a hint when tedge-p11-server is used with an incompatible version of tedge.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
  • Documentation Update (if none of the other choices apply)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue


Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA (in all commits with git commit -s. You can activate automatic signing by running just prepare-dev once)
  • I ran just format as mentioned in CODING_GUIDELINES
  • I used just check as mentioned in CODING_GUIDELINES
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

When tedge-p11-server fails to parse received message, error message now
contains if frame version is unsupported or if request type is
unrecognized. This should provide more of a hint when tedge-p11-server
is used with an incompatible version of tedge.

Signed-off-by: Marcel Guzik <marcel.guzik@cumulocity.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 17, 2026

Codecov Report

❌ Patch coverage is 89.74359% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...tes/extensions/tedge-p11-server/src/proxy/frame.rs 83.33% 2 Missing ⚠️
...es/extensions/tedge-p11-server/src/proxy/server.rs 92.30% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant