GNS3 / gns3-server

GNS3 server
GNU General Public License v3.0
793 stars 261 forks source link

[ 2.0 RC2] xml.etree.ElementTree.ParseError: not well-formed #952

Closed AJNOURI closed 7 years ago

AJNOURI commented 7 years ago

Updated to 2.0 RC2, when opening a file created under 1.5.3, it crashes:

** Exception detected, traceback information saved in /home/ajn/.config/GNS3/exceptions.log **

PLEASE REPORT ON https://www.gns3.com

Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/gns3/qt/init.py", line 225, in partial return func(*args, *kwargs) File "/usr/local/lib/python3.4/dist-packages/gns3/http_client.py", line 612, in _processResponse callback(params, server=server, context=context, raw_body=raw_body) File "/usr/local/lib/python3.4/dist-packages/gns3/qt/init.py", line 225, in partial return func(args, **kwargs) File "/usr/local/lib/python3.4/dist-packages/gns3/project.py", line 401, in _listDrawingsCallback topo.createDrawing(drawing) File "/usr/local/lib/python3.4/dist-packages/gns3/topology.py", line 536, in createDrawing svg = ET.fromstring(drawing_data["svg"]) File "/usr/lib/python3.4/xml/etree/ElementTree.py", line 1325, in XML parser.feed(text) File "", line None xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 3, column 20

julien-duponchelle commented 7 years ago

Duplicate of https://github.com/GNS3/gns3-gui/issues/1946

julien-duponchelle commented 7 years ago

Could you share the project directory?

AJNOURI commented 7 years ago

Do you mean content list or the content itself ?

ajn@~/GNS3/projects/vpn1$ls -la

total 180 drwxr-xr-x 3 ajn ajn 4096 Mar 20 09:57 . drwxr-xr-x 131 ajn ajn 4096 Mar 19 09:09 .. drwxr-xr-x 7 ajn ajn 4096 Mar 20 09:44 project-files -rw-r--r-- 1 ajn ajn 100098 Mar 20 09:33 screenshot.png -rw-r--r-- 1 ajn ajn 38403 Mar 20 09:57 vpn1.gns3 -rw-r--r-- 1 ajn ajn 25170 Mar 20 09:43 vpn1.gns3.backup4

julien-duponchelle commented 7 years ago

The content of the .gns3

On Mon, Mar 20, 2017 at 5:22 PM AJ NOURI notifications@github.com wrote:

Do you mean content list or the content itself ?

ajn@~/GNS3/projects/vpn1$ls -la

total 180 drwxr-xr-x 3 ajn ajn 4096 Mar 20 09:57 . drwxr-xr-x 131 ajn ajn 4096 Mar 19 09:09 .. drwxr-xr-x 7 ajn ajn 4096 Mar 20 09:44 project-files -rw-r--r-- 1 ajn ajn 100098 Mar 20 09:33 screenshot.png -rw-r--r-- 1 ajn ajn 38403 Mar 20 09:57 vpn1.gns3 -rw-r--r-- 1 ajn ajn 25170 Mar 20 09:43 vpn1.gns3.backup4

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/GNS3/gns3-server/issues/952#issuecomment-287813455, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVFXe1D6LKFA7gygu1VyzaOKkWIulpCks5rnqfBgaJpZM4MiKIb .

AJNOURI commented 7 years ago

Here you go: vpn1.zip

julien-duponchelle commented 7 years ago

Thanks I found the issue you use < in text we don't correctly escape it.

AJNOURI commented 7 years ago

I removed the signes "<" and ">" from the comments in the .gns3 file. Now it opens. Until next update I'll avoid these signs from the comments. Thanks a lot Julien.

julien-duponchelle commented 7 years ago

Should work now