Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-322

Restfonf returns Status.Ok if delete fails

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • restconf-nb
    • None
    • Operating System: All
      Platform: All

    • 7240

    Description

      RestconfImpl.deleteConfigurationData@973 (1.4.0-Boron)

      Futures.addListener (used by addCallback) says:

      // ListenableFuture's contract is that it will not throw unchecked
      // exceptions, so log the bad runnable and/or executor and swallow it.
      log.log(Level.SEVERE, "RuntimeException while executing runnable "
      + listener + " with executor " + executor, e);

      but RestconfImpl does throw RestconfDocumentedException (RuntimeException)

      in handlerLoggerPost.

      which results in deleteConfigurationData returning Status.OK.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jakubtoth-0 Jakub Toth
            mgradzki Marek Gradzki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: