Author Topic: Bad format string broke network map. How to restore ?  (Read 179 times)

Egert143

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Bad format string broke network map. How to restore ?
« on: July 01, 2020, 12:09:49 pm »
Hello

After adding dci container to network map, map is broken. No scroll bars and no tool icons (top right corner). Where are map elements stored in db so i could remove it manualy and restore map?

Also would it be possible to add some check when inserting dci containers so it would not be so easy to break map?

format string that broke map: "Packet Loss: %s %"

Egert

Filipp Sudanov

  • Global Moderator
  • Full Member
  • *****
  • Posts: 242
    • View Profile
Re: Bad format string broke network map. How to restore ?
« Reply #1 on: July 01, 2020, 02:37:12 pm »
What's NetXMS version?

Egert143

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Re: Bad format string broke network map. How to restore ?
« Reply #2 on: July 01, 2020, 03:09:26 pm »
Version 3.4.178

Egert

Filipp Sudanov

  • Global Moderator
  • Full Member
  • *****
  • Posts: 242
    • View Profile
Re: Bad format string broke network map. How to restore ?
« Reply #3 on: July 01, 2020, 03:27:01 pm »
Are you using desktop management console? Can you show it's log - on linux/mac it's in the home folder in .nxmc/data/.metadata/.log
There should be some errors regarding this map

Egert143

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Re: Bad format string broke network map. How to restore ?
« Reply #4 on: July 02, 2020, 07:57:48 am »
Yes, using desktop management console. Unfortunately i dont have log messages.

Fix was to delete last element from DB tabel "network_map_elements". then quick server restart and map started working again.

Simple way how to reproduce: Create costum map and add dci container. Under dci container->Data source add format string "Packet Loss: %s %". This will breake the map. Correct string would be "Packet Loss: %s %%".

Egert

Filipp Sudanov

  • Global Moderator
  • Full Member
  • *****
  • Posts: 242
    • View Profile
Re: Bad format string broke network map. How to restore ?
« Reply #5 on: July 02, 2020, 03:50:33 pm »
Thanks for exact instructions. Created https://track.radensolutions.com/issue/NX-1892 for that.

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 7010
    • View Profile
Re: Bad format string broke network map. How to restore ?
« Reply #6 on: July 10, 2020, 10:14:52 am »
Should be fixed in 3.4.232.

Best regards,
Victor