Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1418

Fix the error and conflict notifications' action

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.1
    • Component/s: GUI
    • Environment:
      Windows
    • Tags:
    • Sprint:
      nxDrive 10.10.1
    • Story Points:
      1

      Description

      Clicking on the "Error document" notification can crash Drive with the following stacktrace:

      Traceback (most recent call last):
        File "gui\application.py", line 779, in _handle_notification_action
      
          func = getattr(self.api, action)
      AttributeError: 'QMLDriveApi' object has no attribute 'show_conflicts'
      

      We should be more robust against future identical issue by using something like:

      func = getattr(self.api, action, None)
      if not func:
          log.error(f"Action {action}() is not defined in {self.api}")
          return
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h