Misp: Checkbox-Lists require page reloads to edit multiple items

Created on 9 Nov 2020  路  7Comments  路  Source: MISP/MISP

Work environment

| Questions | Answers
|---------------------------|--------------------
| Type of issue | Bug
| OS version (server) | Ubuntu 18.04
| OS version (client) | Win10, Ubuntu
| PHP version | 7.2
| MISP version / git hash | v2.4.133 (396dedfcfaea6af97c5e595cfd65d8c2c06fd13c)
| Browser | Firefox

Expected behavior

Enabling/Disabling several Warninglists in View /warninglists/index should not raise an error.
Same for /tags/index and the Checkboxes for 'Favourite'

Actual behavior

First Checkbox-Change will be successfull. Every additional change will be declined with Request failed due to an unexpected error.
After reloading the complete page, another (single) edit is possible.

Steps to reproduce the behavior

  • Switch to view /warninglists/index
  • Try to activate/deactivate more than one Checkbox

Logs, screenshots, configuration dump, ...

grafik

bug potential bug needs triage

All 7 comments

Hey @marjatech, do you mind posting the commit ID you are on? Because I can't reproduce it on the current HEAD. Thanks!

Hey @mokaddem, here it is:
v2.4.133 (396dedfcfaea6af97c5e595cfd65d8c2c06fd13c)

However, i think I saw it even on earlier versions.

I confirm I have same issue enabling warninglists:
enable first: ok
enable second: get Request failed due to an unexpected error.
do refresh page
enable second: ok
enable third: get Request failed due to an unexpected error.
do refresh page
enable third: ok

etc etc
image

2.4.134 fix this behavior

@marjatech can you try the solution of @garanews and and see if it fixes after the update? Thanks!

@mokaddem I'm unfortunately not able to do the update until end of this week.
But i'll report as soon as I know.

Can confirm, no issues with this anymore.

  • Not in warningslists (since there even are no checkboxes any more 馃槃)
  • But neither in the Tag-List with the Favourites.

Thank you @mokaddem @garanews

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eCrimeLabs picture eCrimeLabs  路  4Comments

dpicollege picture dpicollege  路  6Comments

RichieB2B picture RichieB2B  路  7Comments

Rafiot picture Rafiot  路  3Comments

WakandaKing picture WakandaKing  路  5Comments