Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DoubleAttributeModel throws InvalidAttributeException parsing valid float attribute value #1427

Closed
Spongman opened this issue Mar 18, 2023 · 1 comment · Fixed by #1431
Closed
Labels
bug Dysfunctionnal behavior core Impact core of Leshan

Comments

@Spongman
Copy link

Spongman commented Mar 18, 2023

Version(s)

v2.0.0-M11

Which components

leshan-core

Tested With

No response

What happened

             LwM2mCoapResource 2023-03-17 22:40:05,097 [DEBUG] Invalid request [CON-PUT    MID=61734, Token=FCA4E601, OptionSet={"Uri-Host":"172.17.0.1", "Uri-Port":56429, "Uri-Path":["6","0","0"], "Uri-Query":["pmin=7200","pmax=7200","st=1.000000"]}, <empty data>] received on the resource /6 from Identity /172.17.7.91:5683[unsecure]  
org.eclipse.leshan.core.link.attributes.InvalidAttributeException: Unable to parse [1.000000] : unexpected character '.', expected 'DIGIT' after 1

that value (1.000000) is clearly correct according to OMA-TS-LightweightM2M_Core-V1_2-20201110-A which lists the format as 1*DIGIT ["." 1*DIGIT].

How to reproduce

No response

Relevant Output

No response

@Spongman Spongman added the bug Dysfunctionnal behavior label Mar 18, 2023
@sbernard31
Copy link
Contributor

Good catch ! 👍
Thx for reporting this 🙏

@sbernard31 sbernard31 added the core Impact core of Leshan label Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Dysfunctionnal behavior core Impact core of Leshan
Projects
None yet
2 participants