[OpenNMS/opennms] 12904c: NMS-20119: reload destination paths from disk when...

joseanesONMS via opennms-cvs <[email protected]>
Newsgroups gmane.network.opennms.cvs
Message-ID <OpenNMS/opennms/push/refs/heads/jira/NMS-20119-destination-paths/[email protected]>
  Branch: refs/heads/jira/NMS-20119-destination-paths
  Home:   https://github.com/OpenNMS/opennms
  Commit: 12904c3f16381f47b0e8851f7c9f903bdbb8db96
      https://github.com/OpenNMS/opennms/commit/12904c3f16381f47b0e8851f7c9f903bdbb8db96
  Author: Jose Anes <[email protected]>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M opennms-webapp-rest/src/main/java/org/opennms/web/rest/v1/NotificationConfigRestService.java

  Log Message:
  -----------
  NMS-20119: reload destination paths from disk when a save fails

addPath/replacePath/removePath mutate the in-memory map and only then
saveCurrent(); on a save error (I/O failure, or the marshalled XML
failing schema validation) memory is left ahead of the file and the
factory won't re-read until a restart. Reload from disk in the failure
path of all three mutations so the in-memory notification config matches
what actually persisted.



To unsubscribe from these emails, change your notification settings at https://github.com/OpenNMS/opennms/settings/notifications


_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq
opennms-cvs mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.