Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the App-Dochazka-CLI CPAN distribution.

Report information
The Basics
Id: 102671
Status: resolved
Priority: 0/
Queue: App-Dochazka-CLI

People
Owner: Nobody in particular
Requestors: SMITHFARM [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: put param meta FOOBAR 0 -> zero not handled properly?
Zero in body becomes undef? Dochazka(2015-03-10) root ADMIN> put param meta DOCHAZKA_UNIT_TESTING 0 HTTP status: 200 OK Non-suppressed headers: { 'X-Web-Machine-Trace' => 'b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,c3,c4,d4,e5,f6,g7,g8,h10,i12,l13,m16,n16,o16,o14,p11,o20,o18,o18b' } Response: { 'level' => 'OK', 'code' => 'CELL_OVERWRITE_META_PARAM', 'text' => 'Overwriting existing meta parameter DOCHAZKA_UNIT_TESTING with new value ->undef<-', 'http_message' => 'OK', 'http_code' => '200' } Dochazka(2015-03-10) root ADMIN> get param meta DOCHAZKA_UNIT_TESTING HTTP status: 200 OK Non-suppressed headers: { 'X-Web-Machine-Trace' => 'b13,b12,b11,b10,b9,b8,b7,b6,b5,b4,b3,c3,c4,d4,e5,f6,g7,g8,h10,i12,l13,m16,n16,o16,o18,o18b' } Response: { 'http_code' => '200', 'payload' => { 'DOCHAZKA_UNIT_TESTING' => undef }, 'http_message' => 'OK', 'code' => 'MREST_PARAMETER_VALUE', 'text' => 'MREST_PARAMETER_VALUE', 'level' => 'OK' }
My unverified guess is that CLI sends the 0 out OK, but REST somehow mis-interprets it.
REST log says: "There is no request body, assuming JSON null" -> so the CLI is not sending the 0
fixed in 0.151