It is currently Sun Aug 25, 2019 8:21 pm


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [Bug] Unable to remove Qemu settings from within a topology
PostPosted: Sun Sep 28, 2014 3:40 pm 
Offline

Joined: Sun Feb 23, 2014 5:29 pm
Posts: 40
An error pops up when a setting (say, Kernel image, though others seem to have the same effect too) is removed from an existing Qemu VMs configuration. The error is "correct" in that an empty string shouldn't indeed be allowed as value for said settings, but upon modification, GNS3 should treat that as the removal of the setting itself, and thus output a valid JSON.

Steps to reproduce:
1. Create a Qemu VM in "General > Preferences > Qemu VMs". Make sure it uses the Kernel image setting (even if it's an invalid value... just don't leave it empty).
2. Drag that VM into the topology.
3. Right click on the VM that's in the topology, and select "Configure".
4. Remove the Kernel image setting.
5. Try to Apply the setting, and observe the error in the console:
Code:
request validation error: '' is too short

Failed validating 'minLength' in schema['properties']['kernel_image']:
    {'description': 'QEMU kernel image path',
     'minLength': 1,
     'type': 'string'}

On instance['kernel_image']:



The same things, if done in the preferences window work correctly. It's just the VMs in the topology that have this problem.




Top
 Profile  
 
 Post subject: Re: [Bug] Unable to remove Qemu settings from within a topol
PostPosted: Mon Sep 29, 2014 8:54 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
I am going to fix this.

Thanks for reporting :)



_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO