Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943190 - net-misc/gns3-gui-2.2.50: GNS3 2.2.50 generates a random directory name in the project folder when using "Save project as..."
Summary: net-misc/gns3-gui-2.2.50: GNS3 2.2.50 generates a random directory name in th...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michael Mair-Keimberger (mm1ke)
URL: https://github.com/GNS3/gns3-gui/issu...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-11-10 17:20 UTC by needle
Modified: 2024-12-08 22:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,6.74 KB, text/plain)
2024-11-10 17:22 UTC, needle
Details
GNS3 2.2.51 console output (GNS3-2.2.51_example_run_output.txt,834 bytes, text/plain)
2024-11-13 10:30 UTC, needle
Details
emerge --info using GNS3-2.2.51 (emerge.info,7.58 KB, text/plain)
2024-11-26 09:20 UTC, needle
Details
GNS3-2.2.51 CLI commands for projects dir inspection (commands-for-directory-inspection.txt,1.04 KB, text/plain)
2024-11-26 09:32 UTC, needle
Details
GNS3 2.2.51 cli output.log (terminal-io-gns3-2.2.51.log,783 bytes, text/x-log)
2024-11-26 09:33 UTC, needle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description needle 2024-11-10 17:20:54 UTC
The current GNS3 version 2.2.50 creates random directory name when using the "Save project as..."
Comment 1 needle 2024-11-10 17:22:41 UTC
Created attachment 908403 [details]
emerge --info
Comment 2 needle 2024-11-10 17:23:44 UTC
Reported this bug directly to the GNS3 projects github website. For details please read https://github.com/GNS3/gns3-gui/issues/3660
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-10 17:25:31 UTC
To be clear, the bug is filed as an FYI/request to please not cleanup old until this gets fixed and to make the maintainer aware of the upstream bug.
Comment 4 Michael Mair-Keimberger (mm1ke) 2024-11-11 17:41:08 UTC
Thanks for the information.
I'll going to open an PR for the latest 2.2.51 soon, maybe this would already fix this issue (even though the release notes doesn't hint on such problem)
Comment 5 needle 2024-11-13 10:11:11 UTC
I have emerged the 2.2.51 version here in local overlay to recheck, and happens here as well. Added a update to the github tracking bug.
Comment 6 needle 2024-11-13 10:30:40 UTC
Created attachment 908634 [details]
GNS3 2.2.51 console output

Adding GNS3 2.2.51 console output.
Comment 7 needle 2024-11-13 11:49:26 UTC
Could narrow the issue down to that GNS3 version 2.2.51 when using the "Save project as..." button takes the GNS3 "project_id" variable for the new projects directory name instead of the GNS3 varialbe called "name".

These are the steps to reproduce this.

* Create completely fresh GNS3 project, directory name created correctly:

----

pwd
/home/needle/GNS3/projects/sandbox-00

head sandbox-00.gns3
{
    "auto_close": true,
    "auto_open": false,
    "auto_start": false,
    "drawing_grid_size": 25,
    "grid_size": 75,
    "name": "sandbox-00",
    "project_id": "c2718184-9091-45d9-80c6-12e945ceddf9",
    "revision": 9,
    "scene_height": 1000,

----

* Stop this current newly created project
* Use the GNS3 File->"Save project as..."
* Give some meaningful name for the project, in example "sanbox-01"
* Saved as project is created, but the directory is named like following:

----

pwd
/home/needle/GNS3/projects/1119c664-eec1-4ab5-9cf5-bcfe6afd2f00


{
    "auto_close": false,
    "auto_open": false,
    "auto_start": false,
    "drawing_grid_size": 25,
    "grid_size": 75,
    "name": "sandbox-01",
    "project_id": "1119c664-eec1-4ab5-9cf5-bcfe6afd2f00",
    "revision": 9,
    "scene_height": 1000,


---

Hoping GNS3 users can reproduce this issue described here.
Comment 8 needle 2024-11-13 11:51:48 UTC
Correcting typo in entry directly above. Forgot to add the command head.
----

pwd
/home/needle/GNS3/projects/1119c664-eec1-4ab5-9cf5-bcfe6afd2f00

 head sandbox-01.gns3
{
    "auto_close": false,
    "auto_open": false,
    "auto_start": false,
    "drawing_grid_size": 25,
    "grid_size": 75,
    "name": "sandbox-01",
    "project_id": "1119c664-eec1-4ab5-9cf5-bcfe6afd2f00",
    "revision": 9,
    "scene_height": 1000,


---
Comment 9 needle 2024-11-26 09:17:56 UTC
Installed official gentoo GNS3-2.2.51 ebuilds n to retest if this bug is reproducable using that particular version. I can reproduce it using the described steps avove, with creating a new project first, then using "Save project as.."

Attaching the emerge --info and the console output to this bug report.
Comment 10 needle 2024-11-26 09:20:00 UTC
Created attachment 911978 [details]
emerge --info using GNS3-2.2.51
Comment 11 needle 2024-11-26 09:32:25 UTC
Created attachment 911980 [details]
GNS3-2.2.51 CLI commands for projects dir inspection
Comment 12 needle 2024-11-26 09:33:11 UTC
Created attachment 911981 [details]
GNS3 2.2.51 cli output.log
Comment 13 needle 2024-11-26 09:45:55 UTC
Now after attaching the tests for GNS3-2.2.51 here in the gentoo bugtracker. 
Spotted afterwards the official GNS3 bug has been solved today with a fix.
Comment 14 needle 2024-12-07 18:35:11 UTC
(In reply to Michael Mair-Keimberger (mm1ke) from comment #4)
> Thanks for the information.
> I'll going to open an PR for the latest 2.2.51 soon, maybe this would
> already fix this issue (even though the release notes doesn't hint on such
> problem)

Hi mm1ke,

https://github.com/GNS3/gns3-gui/releases/tag/v2.2.52

GNS3 released a fixed version. The fix is listed at the server section.

I know about the 2 weeks release wait period in gentoo on recent releases, I would like to request a version bump of GNS3 to the version 2.2.52.

Thanks.
Comment 15 Larry the Git Cow gentoo-dev 2024-12-08 22:05:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73dc43bfd65f7ed586a5e3e52ac011d7de7fb305

commit 73dc43bfd65f7ed586a5e3e52ac011d7de7fb305
Author:     Michael Mair-Keimberger <mmk@levelnine.at>
AuthorDate: 2024-12-08 13:47:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-08 22:04:44 +0000

    net-misc/gns3-gui: add 2.2.52
    
    Closes: https://bugs.gentoo.org/943190
    Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/gns3-gui/Manifest               |  1 +
 net-misc/gns3-gui/gns3-gui-2.2.52.ebuild | 40 ++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)