[Gambas-user] Issue 384 in gambas: XmlReader doesn't raise an error on FromString if string is empty, which it did in gambas2

gambas at ...2524... gambas at ...2524...
Thu Jan 10 22:09:43 CET 2013


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

New issue 384 by uAle... at ...626...: XmlReader doesn't raise an error on  
FromString if string is empty, which it did in gambas2
http://code.google.com/p/gambas/issues/detail?id=384

1) Describe the problem.

The XmlReader doesn't raise an error if the FromString("") is used. In  
gambas2 it did this.
I can fix this in my own code, but the gambas components like RpcServer  
(using "gb.xml/src/rpc/gb.xml.rpc/.src/miniServer.class") also depend on  
this. Currently if sending an empty XML form to the RpcServer, causes the  
application to hang (100% cpu usage) in a endless loop.

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

Version: TRUNK gambas3
Revision: r5498 (if you use a development version)
Operating system: Linux
Distribution: Ubuntu
Architecture: x86
GUI component: QT3 / QT4 / GTK+
Desktop used: LXDE

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

Attached is the gambas2 and gambas3 project. The gambas2 project ends  
with "Error #1" and the gambas3 project hangs/100% cpu usage.

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:
	XmlReader.tar  30.0 KB





More information about the User mailing list