Bug 404002 - Command sent to a Lua application that returns error is not acknowledged to the server
Summary: Command sent to a Lua application that returns error is not acknowledged to t...
Status: RESOLVED FIXED
Alias: None
Product: Mihini
Classification: IoT
Component: Agent (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P2 critical (vote)
Target Milestone: 0.9 M1   Edit
Assignee: Fabien Fleutot CLA
QA Contact: Robert Jacolin CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-21 06:34 EDT by Laurent Barthelemy CLA
Modified: 2013-05-22 10:57 EDT (History)
1 user (show)

See Also:


Attachments
debug logs with ack failing to be sent from Lua app. (2.67 KB, text/x-log)
2013-03-21 06:34 EDT, Laurent Barthelemy CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Barthelemy CLA 2013-03-21 06:34:25 EDT
Created attachment 228830 [details]
debug logs with ack failing to be sent from Lua app.

The problem occurs in *Lua* app when:
- the command handler doesn't return a status
- the command handler returns an error


We need to check what happens when no command handler is set (default command handler should return an error) and when no default handler is set at all.

In any case, when the server asks for an ack, it should have it.

See attached debug logs.
Comment 1 Robert Jacolin CLA 2013-03-21 11:14:36 EDT
This issue should be reproduced with the last code.
Comment 2 Laurent Barthelemy CLA 2013-03-21 11:38:40 EDT
I've been informed that it can be reproduced with version R8.0
Comment 3 Fabien Fleutot CLA 2013-04-04 08:47:12 EDT
error in status management (x and y or z idiom gone wrong)
Comment 4 Laurent Barthelemy CLA 2013-04-22 03:55:15 EDT
Fixed by commit	a63491318e0996e59d3521750c765bcba403e638