Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing menu items on systems with no network interface #1985

Open
2 tasks done
smcgu opened this issue Feb 7, 2025 · 2 comments
Open
2 tasks done

Missing menu items on systems with no network interface #1985

smcgu opened this issue Feb 7, 2025 · 2 comments

Comments

@smcgu
Copy link

smcgu commented Feb 7, 2025

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug

Templates and other menu items are not available when the drawio app is run on a system with no network. A portion of this bug was previously reported: #678 (comment)

To Reproduce

Steps to reproduce the behavior:

  1. Network isolate system
  2. Download AppImage
  3. Open draw.io app
  4. Create New Diagram
  5. Observe no template pop-up
  6. Arrange > Insert
  7. Observe no Template menu option
  8. Open Help menu
  9. Observe missing help menu items, it only contains "Keyboard shortcuts" and "v26.0.9"

Expected behavior

Templates, the help menu, and other menu items should be visible offline and online.

Screenshots

Unfortunately, I cannot add screenshots because something appears broken between Firefox and GitHub's CORS config.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://github-production-user-asset-****.s3.amazonaws.com/. (Reason: CORS request did not succeed). Status code: (null).

Some screenshots are available on the other comment: #678 (comment)

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 26.0.9

Desktop (please complete the following information):

  • OS: Linux AppImage

Additional context

None

@smcgu
Copy link
Author

smcgu commented Feb 7, 2025

Correction. This behavior will exhibit at any time while the app is running if the network interfaces change. Access to the Internet is not required. This seems to be solely based on whether there is a network interface.

If there is only a loopback interface, then the menus are broken.

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

If you add an interface (even without actual connectivity to the Internet), the menus work correctly (without needing to restart the app).

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group 1 qlen 1000
    link/ether aa:bb:cc:dd:ee:ff brd ff:ff:ff:ff:ff:ff

@smcgu smcgu changed the title Missing menu items on systems with no network Missing menu items on systems with no network interface Feb 7, 2025
@smcgu
Copy link
Author

smcgu commented Feb 7, 2025

If you then remove the network interface, the menu items will return to their broken, abbreviated state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant