[Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP requests (and RpcServer stops working)

gambas at ...2524... gambas at ...2524...
Tue Jan 8 19:05:04 CET 2013


Status: New
Owner: ----
Labels: Version Type-Bug Priority-High OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 380 by uAle... at ...626...: RpcClient sends invalid HTTP requests  
(and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380

1) Describe the problem.

gambas3 has a RpcClient and RpcServer component. I use the client to send  
xml requests to the server, only the client sends an invalid request.
The requests has 2 issues:
- The request is incorrectly terminated, because it is missing the "\r\n"  
(hex 0x0d 0x0a)
- In the xml request only "\n" is done, this should be "\r\n" also

The request looks now:
<?xml version="1.0"  
encoding="UTF-8"?>\n<methodCall><methodName>globalvar.get</methodName>  
<params /></methodCall>
This should be:
<?xml version="1.0"  
encoding="UTF-8"?>\r\n<methodCall><methodName>globalvar.get</methodName>  
<params /></methodCall>\r\n

As side-effect the RpcServer stops working completely, only a restart of  
the gambas3 application helps (it should time-out?)

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK
Revision: r5495 (if you use a development version)
Operating system: Linux
Distribution: LUbuntu 10.04
Architecture: x86
GUI component: QT3 / QT4 / GTK+
Desktop used: Gnome / KDE ...

3) Provide a little project that reproduces the bug or the crash.

Attached are the following files:
RpcClient.tar.gz - example project
gambas2-client.eth - tcpdump between gambas2 client and gambas3 server -  
WORKS
gambas3-client-eth - tcpdump between gambas3 client and gambas3 server -  
Does NOT work
gambas3-manual.eth - tcpdump between telnet & copy-paste command and  
gambas3 server - WORKS

4) If your project needs a database, try to provide it, or part of it.

5) Explain clearly how to reproduce the bug or the crash.

6) By doing that carefully, you have done 50% of the bug fix job!

IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!

Attachments:
	RpcClient.tar.gz  5.2 KB
	gambas2-client.eth  8.2 KB
	gambas3-client.eth  1.2 KB
	gambas3-manual.eth  7.2 KB





More information about the User mailing list