responses being truncated by 1 line?

LabKey Support Forum (Inactive)
responses being truncated by 1 line? Ben Bimber  2014-07-18 10:08
Status: Closed
 
I'm running a server using onprc14.2, tomcat 7.0.47 and jdk1.7.0_55. I noticed something odd with several APIs that return JSON. The response is truncated by one line, which usually means the JSON loses the final "}" and becomes unparsable. I have seen this on 2 actions: the action to import a spreadsheet and a custom action in JbrowseController. In both instances, I hit the issue when my request errored out and returned a 400 response.

I couldnt repro this on my dev machine; however, the server has differences including SSL. Has anyone seen anything like this before, or do you have any debugging ideas? It's quite possible this is a server-specific issue, and not a true LabKey bug. Thanks in advance.
 
 
Nick Kerr responded:  2014-07-18 11:45
Thanks for pointing this out, it looks like it is a real issue. Our response writer was not being wrapped up properly, but we now have a fix being prepared for the 14.2 release.

Thanks,
Nick
 
Ben Bimber responded:  2014-07-18 11:47
Yes, saw the bug. Thanks for the quick reply. I'll try this out on our new server (running in production mode, but not really acting as a production server) later today.

-Ben