Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share a case if MISP is not enabled raise an error #349

Closed
To-om opened this issue Oct 19, 2017 · 0 comments
Closed

Share a case if MISP is not enabled raise an error #349

To-om opened this issue Oct 19, 2017 · 0 comments
Assignees
Labels

Comments

@To-om
Copy link
Contributor

To-om commented Oct 19, 2017

Request Type

Bug

Work Environment

TheHive version 2.13.x

Problem Description

Even if MISP connector is not enabled, the share button is available on the case detail page. If one clicks on it, the browser console shows:

TypeError: Cannot read property 'servers' of undefined
    at Object.<anonymous> (CaseExportDialogCtrl.js:11)
    at Object.invoke (angular.js:4718)
    at $controllerInit (angular.js:10354)
    at resolveSuccess (ui-bootstrap-tpls.js:4552)
    at processQueue (angular.js:16383)
    at angular.js:16399
    at Scope.$eval (angular.js:17682)
    at Scope.$digest (angular.js:17495)
    at Scope.$apply (angular.js:17790)
    at done (angular.js:11831)

Steps to Reproduce

  1. disable MISP connector
  2. go to case detail
  3. click on share

Possible Solutions

Hide the share button or better, tell to the user that MISP connector is disabled when he clicks on share.

The second solution is better because the sharing count indicator is shown. The case can be shared and then MISP connector disabled.

@To-om To-om added the bug label Oct 19, 2017
@To-om To-om added this to the 3.0.0 milestone Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants