Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-13350

Exceptions thrown in CommandOutputHandler.process() method are not propagated

XMLWordPrintable

      Issue Summary

      In Bitbucket 8.1, exceptions thrown by command handlers' process() method are consumed, whereas in Bitbucket 7 they are wrapped and propagated to com.atlassian.bitbucket.scm.Command.call() and therefore can be handled appropriately.

      By adding breakpoints in the Bitbucket source it was determined that BioStdioHandler.RemoteWatchdog.reportError is called, storing the exception. However BioStdioHandler.onComplete() is never called, so the exception is not re-thrown.

      Steps to Reproduce

      1. See above

      Expected Results

      Exceptions thrown in CommandOutputHandler.process() method are propagated (like in Bitbucket 7) and can be handled

      Actual Results

      The exceptions are not propagated since, as mentioned above, BioStdioHandler.onComplete() is never called

      Workaround

      No workaround available at the moment.

            mheemskerk Michael Heemskerk (Inactive)
            dbonotto Dario B
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: