You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a Notebook Object causes OpenMCT with CouchDB causes a "Save Failed" notification message in the UI, and an uncaught exception in the console:
Editor.js?3ce0:82 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'cancel')
at eval (Editor.js?3ce0:82)
at new Promise (<anonymous>)
at Editor.cancel (Editor.js?3ce0:80)
at onCancel (CreateAction.js?95e8:71)
at processQueue (angular.js?21b1:18075)
at eval (angular.js?21b1:18123)
at Scope.$digest (angular.js?21b1:19242)
at eval (angular.js?21b1:19562)
at TaskTracker.completeTask (angular.js?21b1:21403)
at eval (angular.js?21b1:6879)
This prevents Notebook Objects from being used at all when CouchDB is enabled.
Expected vs Current Behavior
The Notebook Object should be created, saved into CouchDB, and updated with changes.
Impact Check List
Data loss or misrepresented data?
Regression? Did this used to work or has it always been broken?
Summary
Creating a Notebook Object causes OpenMCT with CouchDB causes a "Save Failed" notification message in the UI, and an uncaught exception in the console:
This prevents Notebook Objects from being used at all when CouchDB is enabled.
Expected vs Current Behavior
The Notebook Object should be created, saved into CouchDB, and updated with changes.
Impact Check List
Steps to Reproduce
Enable CouchDB for OpenMCT:
https://github.com/nasa/openmct/blob/master/src/plugins/persistence/couch/README.md
Run OpenMCT and drop a Notebook Object.
Environment
Additional Information
For a running investigation of this issue, see:
#3881 (comment)
Suffice to say, adding a null check here:
https://github.com/nasa/openmct/blob/master/src/plugins/persistence/couch/CouchObjectProvider.js#L373
seems to fix the issue.
The text was updated successfully, but these errors were encountered: