Null character in workload from http

Bug #1324687 reported by Jeff Fillmore
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman
New
Undecided
Unassigned

Bug Description

Getting a null character in workload from http:

Workload sent: {"sessionId":"7ov8h862mhqpsilga4e4i3eet5"}

Hex from php:
0000 00 7b 22 73 65 73 73 69 6f 6e 49 64 22 3a 22 37 .{"sessi onId":"7
0010 6f 76 38 68 38 36 32 6d 68 71 70 73 69 6c 67 61 ov8h862m hqpsilga
0020 34 65 34 69 33 65 65 74 35 22 7d 4e4i3eet 5"}

No null character in workloads from php or nodejs.

I know in php a simple trim fixes this but I believe the Null character shouldn't be there.

Tags: http php
description: updated
tags: added: http php
Revision history for this message
chjgcn (chjgcn) wrote :

Check the data sent back from worker to server.
Use the latest version(1.1.12) and patch it with the patch file posted in
    https://bugs.launchpad.net/gearmand/+bug/1352411/comments/4
then do a test.

Revision history for this message
chjgcn (chjgcn) wrote :

The newer patch file is in
    https://bugs.launchpad.net/gearmand/+bug/1348865/comments/6
I forgot to add <cstring> header file into
    libgearman/interface/universal.hpp

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.