MarketSquare / MarketSquare/Rammbock

AttributeError occurs when receive message with fix pdu length

Open
#16 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
64
Forks
48
PR merge metrics
No merged PRs in 30d

Description

I just modify atest key word " Define example protocol", and run case "Client sends server receives", got error "AttributeError: '_StaticLength' object has no attribute 'field'"

Define example protocol
[Arguments] ${name}=Example
New protocol ${name}
u8 version 0x01
u8 reserved 0x00
u16 messageType # Empty on purpose, each message template defines the type for it
Comment u16 length # Empty on purpose, the length is pdu length
u16 flags 0x0000
pdu 4
End protocol

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by modifying the "Define example protocol" keyword and running "Client sends server receives". Trace handling of the fixed PDU length after the `_StaticLength` object is created, and consider the issue done when this scenario completes without the reported AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.