Misp: [Bug][Kinda important] Can't add new tags

Created on 1 Mar 2018  路  15Comments  路  Source: MISP/MISP

So we just upgraded to the latest version of MISP and we can't create tags anymore. I'm looking into the problem atm.

Work environment

| Questions | Answers
|---------------------------|--------------------
| Type of issue | Bug
| OS version (server) | Ubuntu
| OS version (client) | 16.04
| PHP version | 7.0
| MISP version / git hash | 2.4.88, https://github.com/MISP/MISP/commit/f44628c31f19de8080c07f3daeb9a34265be5761
| Browser | Chrome/FF/IE

Expected behavior

The tag is saved.

Actual behavior

image

Steps to reproduce the behavior

  1. Go to add tag
  2. Populate name, color
  3. Submit

EDIT: Tested on our production instance and on my local instance.

All 15 comments

So when removing this rule, it works:

image

@iglocska You added this rule 2 days ago in this commit, did it work for you? https://github.com/MISP/MISP/commit/b2f0787d15bf6af9976d2d9355486c31b9fef483

Found a fix, opening a pull request

Strange, it worked for me on the HEAD.

This would be my change:
image
This is strange that it works for you. Right now, with notBlank, I get the expected behaviour...

Ok I read a bit on required, it seems it only applies to other rules as seen here:

https://book.cakephp.org/2.0/en/models/data-validation.html#required

So putting only 'required' => true should not work, it needs to come with another rule, such as notBlank.

Indeed, good catch! Surprised that this went under the radar.

Good catch! Still don't know why it wasn't reproducible on recent versions. Thank you.

it's very new, introduced 1-2 days ago afaik

Np, so if we run the update again on our production instance, it should fix the issue?

yeah, git pull and it should work

Alright thanks for the fast response. And well we went from MISP 2.4.82 to MISP 2.4.88, and now I can add tags (I couldnt before, permission-wise), is that a normal behavior with the new version?

what does your role say?

image

Yes, you should be able to add tags!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

garanews picture garanews  路  6Comments

fl0x2208 picture fl0x2208  路  4Comments

honey4free picture honey4free  路  4Comments

ufo0531 picture ufo0531  路  4Comments

dpicollege picture dpicollege  路  6Comments